Profile Picture

Providing offset for major ticks when using an NNumericValueFormatter

Posted By Gino Blommaert 10 Years Ago

Providing offset for major ticks when using an NNumericValueFormatter

Author
Message
Gino Blommaert
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 3, Visits: 1
Hello, I am using my own NNumericValueFormatter object to alter the values displayed in the labels on a NLinearScaleConfigurator. In my formatter I have the following scenario..

The real value which is in the Nevron axis is 10
I then format this value to 10.01

The problem I have is that the major tick is generated using the real value and not the formatted value. Therefore I have a major tick (and therefore a label) at the real value of 10, but at the displayed value of 10.01.

I want to have my major ticks displayed to the user aligned with whole numbers (in this case 10).

I'm therefore looking for some sort of offset I can apply. I see there is also the option of specifying all the CustomMajorTick values in the scale configurator, but this is a rather complex solution given the highly varied data sets we display.

Many thanks in advance.
Heath

Nevron Support
Posted 10 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 Gino,

We're not sure what you mean, but probably you want to offset the value at which the tick/label are generated? In this case if the offset is constant for all labels / ticks you can use a custom origin - for example:

NLinearScaleConfigurator scaleY = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NLinearScaleConfigurator;
scaleY.UseOrigin = true;
scaleY.Origin = 0.1;

Hope this helps...


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic