Profile Picture

Chart Data Label

Posted By cho seongho 2 Years Ago
Author
Message
cho seongho
Question Posted 2 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: Last Year
Posts: 14, Visits: 66

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 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: 1 hour ago
Posts: 2,945, Visits: 3,306
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