IV95291: Pie chart shows incorrect data with one filter of one record


This issue happens when you create a simple chart report, of “Pie Chart” type, which displays all employees grouped by status. This in itself works fine. However, the user then adds a filter on Status = “Active User”. Now, instead of displaying a pie chart with a full 100% view of all “Active User” employee records, the chart says “No data to display”. If a second status is added to filter the chart, it displays as expected.

An issue with chart displaying data when filtered to a single record set. The issue is that the chart type reports GraphDataSource “hasData” method had a check of the “currentItem” value when the data size is equal to 1. However, “currentItem” is always null at the point when “hasData” is called, causing the method to return false.

The “currentItem” check is an artifact from before the AnyChart 7 upgrade. The fix is to modify the “hasData” check to go directly at the data when the data size is 1, instead of using “currentItem”. Moving forward, we resolved a chart type report issue, where charts having only one data result indicated that no data was found.

Continue reading

Advertisements

One thought on “IV95291: Pie chart shows incorrect data with one filter of one record

  1. Pingback: Are there any known limitations when creating a pie chart? – TRIRIGAFEEDIA

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s