Profile Picture

Cannot get propery X-axis values

Posted By Chaitanya Belwal 15 Years Ago
Author
Message
Chaitanya Belwal
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 2, Visits: 1
Issue is fixed. Thanks

Milen Metodiev
Posted 15 Years Ago
View Quick Profile
Forum Member

Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)

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

 



Chaitanya Belwal
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

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




Similar Topics


Reading This Topic