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.