Jump to content
Software FX Community

getting chartfx 7.0 to display data I have in an array


timcyberbanjo

Recommended Posts

HiI am new to chartFX 7.0 but have used 6.2.

In version 6.2, I would get the data from the database and then post process it to put it in the format I need to populate the chart. It would be held in an array. I then do this sort of thing

 

Chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 1, UBound(a))

For i = 0 To UBound©

Chart1.Value(0, i) = (c(i).Plant_MetalMassVariation)

Chart1.Value(1, i) = (c(i).Line2_MetalMassVariation)

Chart1.Value(2, i) = (c(i).Line3_MetalMassVariation)

Chart1.Value(3, i) = (c(i).Line4_MetalMassVariation)

Chart1.AxisX.Label(i) = (c(i).TapDate)

Chart1.AxisX.Label(i) = Format((c(i).TapDate), "dd-MMM")

Next i

Chart1.CloseData(SoftwareFX.ChartFX.COD.Values)

I am trying to find an example of doing the same sorth of thing in 7.0, but have not had any luck so far. 

Can you point me in the right direction?

 

 

 

 

 

Link to comment
Share on other sites

You can do the same in CHart FX 7 but the API chas changed:

Chart1.Data.Series = 1;

Chart1.Data.Points = UBound(a);

For i = 0 To UBound©

Chart1.Data(0, i) = (c(i).Plant_MetalMassVariation)

Chart1.Data(1, i) = (c(i).Line2_MetalMassVariation)

Chart1.Data(2, i) = (c(i).Line3_MetalMassVariation)

Chart1.Data(3, i) = (c(i).Line4_MetalMassVariation)

Chart1.AxisX.Labels(i) = (c(i).TapDate)

Chart1.AxisX.Labels(i) = Format((c(i).TapDate),
"dd-MMM")

Next i
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.

Guest
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...