Profile Picture

Highlight a number in the axis

Posted By Enjoyear Guo 12 Years Ago
Author
Message
Enjoyear Guo
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 30, Visits: 1
Hi,

How can I highlight a certain number on the axis, as notable as possible. And make it always visible, even if it's not a major/minor grid number.
Thank you.

Enjoyear

Nevron Support
Posted 12 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: Last Week
Posts: 3,054, Visits: 4,009

Hi,

You can create a custom label and merge it with the auto labels:

            NLinearScaleConfigurator scaleY = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NLinearScaleConfigurator;
            NCustomValueLabel valueLabel = new NCustomValueLabel();
            valueLabel.Value = 50;
            valueLabel.Text = "50";
            valueLabel.Style.ZOrder = 1;
            valueLabel.Style.TextStyle.FillStyle = new NColorFillStyle(Color.Red);
            scaleY.CustomLabelFitModes = new LabelFitMode[] { LabelFitMode.RemoveOverlap };
            scaleY.CustomLabels.Add(valueLabel);
            scaleY.CreateNewLevelForCustomLabels = false;

That will also remove any auto labels that overlap with the custom label.



Best Regards,
Nevron Support Team



Enjoyear Guo
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 30, Visits: 1
Thank you.
I like the LabelFitMode.RemoveOverlap feature. Pretty good!




Similar Topics


Reading This Topic