Cant' set the zoom to the chart
Posted: Mon Feb 15, 2016 1:40 pm
var m_Chart = new TChart();
m_Chart.Aspect.View3D = false;
m_Chart.Legend.Visible = false;
m_Chart.Chart.Name = "TestChart";
m_Chart.Chart.Dock = DockStyle.Fill;
m_Chart.Chart.Header.Text = "";
m_Chart.Chart.Aspect.SmoothingMode = SmoothingMode.AntiAlias;
m_Chart.Chart.Series.Clear();
m_Chart.Chart.Tools.Clear();
m_Chart.Chart.Series.Add(line); // some line series with IsoHorizAxes = true;
m_Chart.Chart.Axes.Bottom.Automatic = true;
m_Chart.Chart.Axes.Bottom.Visible = false;
m_Chart.Chart.Axes.Left.Automatic = true;
m_Chart.Chart.Axes.Left.Visible = false;
Chart.Zoom.ZoomPercent(90.0); // This is not working rather shows empty chart. But if I unzoom using mouse chart appears again.
Why ZoomPercent(double value) is not working?
m_Chart.Aspect.View3D = false;
m_Chart.Legend.Visible = false;
m_Chart.Chart.Name = "TestChart";
m_Chart.Chart.Dock = DockStyle.Fill;
m_Chart.Chart.Header.Text = "";
m_Chart.Chart.Aspect.SmoothingMode = SmoothingMode.AntiAlias;
m_Chart.Chart.Series.Clear();
m_Chart.Chart.Tools.Clear();
m_Chart.Chart.Series.Add(line); // some line series with IsoHorizAxes = true;
m_Chart.Chart.Axes.Bottom.Automatic = true;
m_Chart.Chart.Axes.Bottom.Visible = false;
m_Chart.Chart.Axes.Left.Automatic = true;
m_Chart.Chart.Axes.Left.Visible = false;
Chart.Zoom.ZoomPercent(90.0); // This is not working rather shows empty chart. But if I unzoom using mouse chart appears again.
Why ZoomPercent(double value) is not working?