Profile Picture

Interlace to minor ticks

Posted By John Burcher 15 Years Ago
Author
Message
John Burcher
pinch Posted 15 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: 15 Years Ago
Posts: 15, Visits: 1
Hi,

I have been able to get the minor tick functionality, and the interlacing functionality working as expected.

However how do I marry them both together? Please see the attached screenshot, the interlacing goes over 2 lines which is one major tick. How do I get it to also include the minor ticks, so that it acts like normal?

Thank you!

Attachments
NevronChartCAEBK5LO.png (42 views, 11.00 KB)
bob milanov
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi John,

 

You can set the sampler provider of the strip to NMinorTickRangeSamplerProvider - by default it's NMajorTickRangeSamplerProvider. There is probably a bug when using interlacing in the control, which we'll investigate - but it should work Ok with bars as it starts from 0. I tested with the following code:

 

// configure chart

NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];

 

// add dummy data

NBarSeries bar = new NBarSeries();

bar.Values.Add(10);

bar.Values.Add(20);

bar.Values.Add(30);

 

chart.Series.Add(bar);

 

NLinearScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NLinearScaleConfigurator;

scale.MinorTickCount = 1;

 

NScaleStripStyle strip = new NScaleStripStyle();

strip.SetShowAtWall(ChartWallType.Back, true);

strip.RangeSamplerProvider = new NMinorTickRangeSamplerProvider();

 

scale.StripStyles.Add(strip);

 

Hope this helps - let me know if you meet any problems.

 

Best regards,
Bob





Similar Topics


Reading This Topic