timcyberbanjo Posted June 3, 2008 Report Share Posted June 3, 2008 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 iChart1.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? Quote Link to comment Share on other sites More sharing options...
Frank Posted June 3, 2008 Report Share Posted June 3, 2008 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 Quote Link to comment Share on other sites More sharing options...
timcyberbanjo Posted June 3, 2008 Author Report Share Posted June 3, 2008 great. thanks. works a treat. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.