TfrxChartView

I'm going insane the manual for this is horrible.

I'm using C++ Rad Studio 10.2, I've seen enough Delphi code (searching this topic) today to last a lifetime.

In my report, I added a TfrxChartView, I added a series, a Pie Chart.

I just want a simple pie chart with a few values in my report. Please explain how to have a pie chart with just 88 and 12 as the 2 values [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> This is what I tried, nothing works TfrxChartView *pChart = ((TfrxChartView *)ReportRacerStats->FindObject("Chart1")); pChart->SeriesData->Items[0]->XSource = "88;12"; pChart->SeriesData[0].Items[0]->Values2 = "12"; pChart->Chart1->Series[0]->AddXY(88, 12); pChart->SeriesData[0].XValues = "88;12"; pChart->SeriesData->Items[0]->XSource = "88;12"; Thanks![/img]

Comments

  • gpigpi
    edited 11:15AM
    pChart->SeriesData->Items[0]->Source1 = "88;12";
    pChart->SeriesData->Items[0]->Source2 = "88;12";
    

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.