In my project, I have integrated Google Charts to display a pie chart as a tooltip within a column chart.
However, I am facing an issue where using legend: { position: 'labeled' }
in the pie-chart settings is causing the bars of the column chart not to be displayed. As a result, the pie chart itself cannot be displayed, only showing the gridlines.
Below is a snippet of my current code:
// Your code goes here...
When I change legend: { alignment: 'center' }
in the 'tooltipOptions', both the Column chart and Pie-chart are displayed correctly.
Nevertheless, I prefer to use 'legend: { position: 'labeled' }' for the Pie-Chart slices to show percentages even for small values.