Profile Picture

Add a Chart margin

Posted By Brian J Warren 14 Years Ago
Author
Message
Brian J Warren
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 26, Visits: 28

Hello,

I have a chart with an NLineSeries -- the most recent point shows just before the right axis.  Is there a way to create a margin so that this point appears perhaps only 90% of the chart width away from the right axis?

Thanks, Brian Warren



Nevron Support
Posted 14 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 Brian,

You can use view range inflate for this purpose - for example the following code applies a 10% margin on the right of the x axis:

NStandardScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NStandardScaleConfigurator;

scale.ViewRangeInflateMode = ScaleViewRangeInflateMode.Absolute;
scale.InflateViewRangeEnd = true;

You can also take a look at the following example:
All Examples\Axes\General\View Range Inflate



Best Regards,
Nevron Support Team



Brian J Warren
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 26, Visits: 28
Thank you, I appreciate it.

Matt Hawkins
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 2, Visits: 1
I have a similar problem however I am using nevron chart 2008 version and the inflate feature does not seem to be available. Was this a new feature added in the 2010 version?

Nevron Support
Posted 14 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 Matt,

Yes it was added in later versions. You can work around it by using invisible data series but it will work in scale units, not absolute.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic