Add a Chart margin


Author
Message
Brian J Warren
Brian J Warren
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
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


Reply
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 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


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