User (Legacy) Posted January 12, 2004 Report Share Posted January 12, 2004 Hi FP Thanks for you'r reply. I have beed looking at the doc, but I cannot get the data correct. This code: chart1.chartfx.Gallery = SoftwareFX.ChartFX.Gallery.Lines; chart1.chartfx.OpenData(COD.Values,1,19); chart1.chartfx.Value[0,0] = 0; chart1.chartfx.Value[0,1] = 56; chart1.chartfx.Value[0,2] = 63; chart1.chartfx.Value[0,3] = 70; chart1.chartfx.Value[0,4] = 77; chart1.chartfx.Value[0,5] = 84; chart1.chartfx.Value[0,6] = 91; chart1.chartfx.Value[0,7] = 98; chart1.chartfx.Value[0,8] = 105; chart1.chartfx.Value[0,9] = 112; chart1.chartfx.Value[0,10] = 119; chart1.chartfx.Value[0,11] = 126; chart1.chartfx.Value[0,12] = 133; chart1.chartfx.Value[0,13] = 140; chart1.chartfx.Value[0,14] = 147; chart1.chartfx.Value[0,15] = 154; chart1.chartfx.Value[0,16] = 161; chart1.chartfx.Value[0,17] = 168; chart1.chartfx.Value[0,18] = 210; chart1.chartfx.CloseData(COD.Values); gives this chart "fx_line.jpg". But I want these values (0-210) on the x-axis like "chart.jpg"... Can you show me what I need to change in my code to create a chartfx that looks like "chart.jpg" ? With data on the x-axis and data on the y-axis. Regards Tom Link to comment Share on other sites More sharing options...
Software FX Posted January 14, 2004 Report Share Posted January 14, 2004 You are not setting X-Values anywhere. You need to do: chart1.chartfx.OpenData(COD.XValues,1,19); chart1.chartfx.XValue[0,0] = 0; chart1.chartfx.XValue[0,1] = 56; chart1.chartfx.XValue[0,2] = 63; ... chart1.chartfx.CloseData(COD.XValues); In ADDITION to setting the y-Axis values (Value property). -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.