Profile Picture

auto range options

Posted By rich dudley 7 Years Ago
Author
Message
rich dudley
Question Posted 7 Years Ago
View Quick Profile
Forum Guru

Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 33, Visits: 76
Are there axis or chart settings to make the automatic ranging tighter?  for example if data on a linear scale is ranging from 325 to 570 I would prefer that the automatic range would be 325 to 575 with increments of 50 but it is currently auto ranging to 300 to 600 with increments of 100.  I know I can force this with custom step and range, but we are generating several hundred graphs with different ranges and it would be nice if it auto ranged instead of being manually set.


Tags
c#
Nevron Support
This post has been flagged as an answer
Posted 7 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: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Rich,

The following code shows how to increase the automatic tick density (by default ticks are placed at about 25pt - this code sets this property to 15pt):
NLinearScaleConfigurator yScale = nChartControl1.Charts[0].Axis(StandardAxis.PrimaryY).ScaleConfigurator as NLinearScaleConfigurator;
yScale.MajorTickMode = MajorTickMode.AutoMinDistance;
yScale.MinTickDistance = new NLength(15, NGraphicsUnit.Point);


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic