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]
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