TfrxChartView - multiple Y axis (RightAxis)

Hi,
in my application (C++ Embarcadero Tokyo 10.2, FR VCL5 - Embarcadero edition) is the report created dynamically at runtime.

I am trying to create a Chart with multiple Y axis as follows:

TfrxChartView * cv = new TfrxChartView;
.
... //some axis settings, min, max and so on....
.
cv->AddSeries(csLine); //left axis series
cv->SeriesData->Items[0]->XType = xtNumber;
cv->SeriesData->Items[0]->DataType = dtFixedData;
cv->SeriesData->Items[0]->XSource = "0;30;90;250;300";
cv->SeriesData->Items[0]->YSource = "950;950;50;50;1000";

cv->AddSeries(csLine); //should be right axis series !!!
cv->SeriesData->Items[1]->XType = xtNumber;
cv->SeriesData->Items[1]->DataType = dtFixedData;
cv->SeriesData->Items[1]->XSource = "0;30;90;170;300";
cv->SeriesData->Items[1]->YSource = "50;50;950;950;0";

Both series are displayed correctly with left axis, but I am not able to assign the second series to right axis.
And what about third axis ? (TCustomAxis...)

Any ideas, please ?


Comments

  • gpigpi
    edited 5:26PM
    Try to set cv->Chart->Series->VertAxis
  • edited August 2017
    gpi wrote: »
    Try to set cv->Chart->Series->VertAxis

    Excellent ! Thank you very much.

Leave a Comment