Can't edit data in iReport Chart tool


I'm trying to prepare a chart using iReport. When I drop the chart tool on template and try to edit data (right click-> chart data), and defining series name, I'm not getting the right data reflected in chart. Is there something that can be done to see the data showing up in chart?



gnyanendra's picture
Joined: Dec 3 2010 - 12:25am
Last seen: 6 years 11 months ago
See the answer for clarifications.
Ankur Gupta - 7 years 10 months ago

1 Answer:





     I suppose that you know that there is a requirement of a seperate sub dataset other than the main dataset of the report. That subdataset has its diffrent SQL query and could be customized accordingly . But the thing which you need to take care of is that the fields for various entities in the chart should be chosen perfectly, so that they reflect the right data. And the last thing you need to focus is that there should be right placement of the chart element in the report ,i.e. mostly in the summary section . I am attaching a example of a pie chart  which uses a subdataset as New Dataset 1 and in the next pane is the specification for the Details like in this case Key Expression,Label Expression and Value Expression which should be carefully set

Hope that it helps



Image icon chartdetails1.png55.95 KB
Ankur Gupta's picture
Joined: Jan 21 2013 - 10:36pm
Last seen: 3 months 4 days ago