Profile Picture

Vertical scale value

Posted By Naveen Anne 8 Years Ago
Author
Message
Naveen Anne
Posted 8 Years Ago
View Quick Profile
Junior Member

Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 13, Visits: 10
Hi There,

As per our requirement we have to display x axis values vertically I couldn't find the option I tried the angle but no luck.
Please let me know how to acheive the behavior. Attaching the screen shot FYR...

We have a release this Friday any help is highly appreciated

Attachments
Scale_verticalorientation.png (782 views, 12.00 KB)
Nevron Support
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:50 AM
Posts: 3,043, Visits: 3,777

Hi Naveen,
You can generate custom multiline labels in order to achieve this look - for example:

   NChart chart = nChartControl1.Charts[0];

   NPointSeries bar = new NPointSeries();

   bar.Values.Add(10);
   bar.Values.Add(20);
   bar.Values.Add(30);

   chart.Series.Add(bar);

   NOrdinalScaleConfigurator ordinalScale = new NOrdinalScaleConfigurator();

   ordinalScale.AutoLabels = false;

   ordinalScale.Labels.Add("1\r\n1");
   ordinalScale.Labels.Add("1\r\n2");
   ordinalScale.Labels.Add("1\r\n3");

   chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = ordinalScale;

Hope this helps - let us know if you have any questions.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic