How to add values in Pie chart at runtime

How can I add values to a Pie chart object at run time. If I use the example provided in the user manual (as shown below) it works fine for a Bar Chart but does not work for a Pie Chart:

Chart1.SeriesData[0].XSource := 'Jan; Feb; Mar';
Chart1.SeriesData[0].YSource := '31;28;31';

I simply want to set values for the "Label" and "Pie" at runtime.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:56PM
    Tariq works fine for me fr3 &4
    make sure your series is active your chart id is correct and your index is correct, and your series is set to fixed data.
    write your code in obp event of chartview

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.