Chart Data Label


Author
Message
cho seongho
cho seongho
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search