Jump to content
Software FX Community

Create a chart with a data base connection with asp


Recommended Posts

Once you create and open the connection, you need to set the chart's DataType so ChartFX and properly populate the data, and then pass your result set to the chart. You can do something like the following: 

' Database code

  Set Conn = Server.CreateObject("ADODB.Connection")

  Conn.Open Application("CfxIEConn")

  Set RS = Conn.Execute("SELECT ClosingDate,Sales,Projected From CIEDemoSales")

  ' Specify how SQL fields are used

  Chart.DataType(0) = CDT_XVALUE

  Chart.DataType(1) = CDT_VALUE

  Chart.DataType(2) = CDT_VALUE

  Chart.AdoResultset RS

For more information, please refer to the samples provided on our support website for ChartFX Internet 5.5:


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...