Profile Picture

Chart Data Label

Posted By cho seongho 5 Years Ago
Author
Message
cho seongho
Question Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 15, Visits: 73

I want to customize the scale label on the chart.

First, I want to know how to hide the scale label.

Second, I want to replace the label with a string.
For example, if the X axis value is 1, replace it with the string "One" and if it is 2, replace it with the string "Two".

please answer about my question.
Thank you.



Nevron Support
Posted 5 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: 42 minutes ago
Posts: 3,054, Visits: 4,009
Hi Cho,
You need to turn off automatic labels and provide custom ones - for example:

   NOrdinalScaleConfigurator scaleX = nChartControl1.Charts[0].Axis(StandardAxis.PrimaryX).ScaleConfigurator as NOrdinalScaleConfigurator;
    scaleX.AutoLabels = false;
    scaleX.Labels.Add("One");
    scaleX.Labels.Add("Two");

Please take a look at the All Examples \ Axes examples that show how to configure different types of axes as well as how to control labels, ticks etc. Let us know if you meet any problems.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic