Hi,
I have implemented a function to change chart type for a chart bounded to a pivot grid control.
I the stacked bar version, everything is displayed as expected. But in the Pie version, items are missing in the legend and in the pie labels. See attached images. In this specific case, terrain class numbers are not displayed in the pie chart.
The pie chart image
I have tried to replicate the problem on my side but have not noticed any issue. You can find my test project in the attachment. Please change it to replicate the problem or provide us with your sample project replicating the issue. We will review it and do our best to find a solution for you.
I am awaiting your response.
The Pivot Chart integration is optimized to correctly colorize pie points with non-matching values. I have modified the sample project to illustrate this functionality. You can find it in the attachment.
I am afraid the original problem is not quite clear to me. Would you please modify the sample project to demonstrate it? We will research the case and check whether it is possible to optimize the integration functionality to avoid this issue in future versions.
The comment I wrote above was for another ticket, sorry.
I will have a look at your example, but to clarify the problem: Each color in each of the two pie charts represents a certain terrain class. The upper chart represents the distribution of terrain classes for FinalFelling, and the lower chart for Thinning. But there is no information in the legend of terrain classes. Instead one single item is displayed in the legend (Final Felling) and that color has nothing to do with the corresponding color in the charts.
I am afraid the problem is not clear to me. Would you please provide me with a screenshot demonstrating actual pivot grid control layout and mockup of the required chart? I am looking forward to hearing from you.
Here is the picture of the pie chart. Compare to the image with the bar chart concerning terrain classes.
…and here is the pivotgrid content. As you can see, the chart does not display information on what each pie slice represents.
I have managed to reproduce the described problem on my side. The problem appears because the Legend.UseCheckBoxes Property is enabled. It will require some time to research the issue in greater detail. I have passed it to our developers for further research. We will update the thread once we have any results.
In the meantime disable this option to get rid of this problem.
Good that you solved the mystery!