Y axis scaled per series
Posted: Fri Mar 13, 2015 7:39 pm
Using TeeChart Pro 7.07 with BCB6
I need to create a chart showing multiple line series, each with it's own Y-axis and each Y axis scaled to fill the entire chart. For example, Series1 may range from 250 to 1000 while Series2 ranges from 55 to 80. Hopefully, I can click on either of the line series and make only the Y-axis for that series visible.
I need to create a chart showing multiple line series, each with it's own Y-axis and each Y axis scaled to fill the entire chart. For example, Series1 may range from 250 to 1000 while Series2 ranges from 55 to 80. Hopefully, I can click on either of the line series and make only the Y-axis for that series visible.
Code: Select all
TLineSeries *ser;
ser = (TLineSeries *) chrt->AddSeries(__classid(TLineSeries));
ser->Title = String("Series") + String(i);
ser->Pen->Visible = true;
ser->Pen->Width = 2;
ser->LinePen->OwnerCriticalSection = NULL;
// This is the part I can't get the syntax right for...all the examples seem to be in Pascal
TChartAxis *v= new TChartAxis(chrt);
ser->CustomVertAxis = v;