Group: Forum Members
Last Active: 15 Years Ago
Posts: 2,
Visits: 1
|
Issue is fixed. Thanks
|
Group: Nevron Team
Last Active: 14 Years Ago
Posts: 48,
Visits: 1
|
Hi Chait, You just have to set the UseXValues property of the line series to true. m_Line.UseXValues = true; Please note that the X axis may show 10, 20, 30, 40, or it may show more major ticks and values if it has enough space (like 10, 15, 20, 25, 30, 35, 40). There are different options in the axis scale configurator that control this behavior. I hope this helps. Best Regards, Milen
|
Group: Forum Members
Last Active: 15 Years Ago
Posts: 2,
Visits: 1
|
Hello,
I add the following DataPoint to get my Line Graphs:
m_Line.AddDataPoint(10,100); m_Line.AddDataPoint(20,200); m_Line.AddDataPoint(30,300); m_Line.AddDataPoint(40,400);
However my X-axis labels show 1,2,3,4. I'm trying the X-axis to display 10,20,30 and 40. Using customLabels work but then it reduces the scale of the graph. The main problem is that for some reason NChart reads the X-axis values as 1,2,3 and 4 rather than 10,20,30,40.
Any clues how I can get the chart to show correct values ?
Thanks, Chait
|