- Excel Scatter Chart Example
- Excel Scatter Chart.png (16.49 KiB) Viewed 7133 times
- TeeChart Scatter Chart 1
- Scatter Chart Error.png (24.45 KiB) Viewed 7130 times
- TeeChart Scatter Chart 2
- Scatter Chart.png (25.39 KiB) Viewed 7135 times
I think the code you need you should already have in the following method:Quant wrote:But we need to achieve the same programmatically at run time (instead of design time) by setting the axis relative position according to (0,0) coordinates.
Code: Select all
private void InitializeComponent()
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Christopher,I think the code you need you should already have in the following method:
Code: Select all
private void InitializeComponent()
Code: Select all
ColorLine vertiColorLine = new ColorLine(tChart1.Chart);
vertiColorLine.Axis = tChart1.Axes.Left;
vertiColorLine.Value = 0;
vertiColorLine.AllowDrag = false;
ColorLine horizColorLine = new ColorLine(tChart1.Chart);
horizColorLine.Axis = tChart1.Axes.Bottom;
horizColorLine.Value = 0;
horizColorLine.AllowDrag = false;
this.tChart1.Axes.Left.AxisPen.Visible = false;
this.tChart1.Axes.Left.MinorTicks.Visible = false;
this.tChart1.Axes.Left.Ticks.Visible = false;
this.tChart1.Axes.Bottom.AxisPen.Visible = false;
this.tChart1.Axes.Bottom.MinorTicks.Visible = false;
this.tChart1.Axes.Bottom.Ticks.Visible = false;