How to add data in TfrxChartVew by code

johnnixjohnnix Serrai, Greece
edited 10:40AM in FastReport 3.0
Greetings to all,

Can anyone please share some code on how to add data values on a Chart object by code?

Thank you very much for your time

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:40AM
    one could read the user manual.
    assuming you have created a series in the chart object and selected fixed data type
    Chart completion from Script

    leave empty XValues and YValues fields in chart editor. In report script obp event of chart object write the following:

    begin
    Chart1.SeriesData[0].XSource := 'January;February;Маrch;Арril';
    Chart1.SeriesData[0].YSource := '31;28;31;30';
    end.
    SeriesData[0] in this case allows us to set parameters for the first series in the chart. If chart has several series, you can address them via SeriesData[data_number].

    ;)

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.