Page 1 of 1

Axis value repeat

Posted: Thu Jun 18, 2020 6:25 am
by 15687497
The line is composed of continuous points. When I zoom the chart, duplicate numbers appear on the axis. How should I avoid this situation.

The normal chart is shown in 2.png, and the zoomed chart is shown in 3.png. The figure below shows some of the data.

Re: Axis value repeat

Posted: Thu Jun 18, 2020 10:20 am
by Christopher
Elite wrote:
Thu Jun 18, 2020 6:25 am
The line is composed of continuous points. When I zoom the chart, duplicate numbers appear on the axis. How should I avoid this situation.
You can set the ValueFormat of series points and axis label values to any of the Standard or Custom numeric format strings, e.g.

Code: Select all

        private void InitializeChart()
        {
            _tChart.Aspect.View3D = false;
            var fastLine = new FastLine(_tChart.Chart);

            fastLine.Add(1.96583, 0.2855);
            fastLine.Add(1.96667, 0.2825);
            fastLine.Add(1.9675, 0.2795);
            fastLine.Add(1.96833, 0.27683);
            fastLine.Add(1.96917, 0.2745);

            _tChart.Axes.Bottom.Labels.ValueFormat = "N5";
        }
TeeChartPro_2020-06-18_12-23-17.png
TeeChartPro_2020-06-18_12-23-17.png (17.1 KiB) Viewed 14076 times

Re: Axis value repeat

Posted: Fri Jun 19, 2020 1:59 am
by 15687497
Thanks for your suggestions, the problem was successfully solved.