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 4:25PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.