Profile Picture

Bar chart with string X-axis scale values

Posted By Naveen Anne 11 Years Ago
Author
Message
Naveen Anne
Posted 11 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 I've to plot a bar chart with String X-axis values but I'm unable to add the string values to X-axis scale as its only allowing double[] & collection but collections its giving an error if I assign an Icollection object of string type.

Fyr attched is the image of the graph which I'm trying to plot.

Can you please guide me with some code snippet to acheive the above

Thanks,
Naveen Anne

Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Naveen,

We could not find the attachment, but most likely you want to insert categorical labels - for example:

   NOrdinalScaleConfigurator scaleX = chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NOrdinalScaleConfigurator;

   scaleX.AutoLabels = false;
   scaleX.Labels.Add("One");
   scaleX.Labels.Add("Two");
   scaleX.Labels.Add("Three");



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic