The requirement is, there is a column in the datagrid showing sum of subtypes of current row, while click on the number, a popover should be displayed to show a pie chart of all subtypes.
Vaadin’s Popover can be used here, but I have no idea how to add the pie chart dynamically into the popover? Could you please share example code?
Another question about charts, how to support function in some cases, for example, in this chart: Examples - Apache ECharts, the tooltip position is set to a function which changes the tooltip’s position according to mouse position such that the tooltip doesn’t overlay the chart. Similar function configuration is also available in series.itemStyle.color, is there a way we can do the same in Jmix?
This is a bit of a specific case, so I would recommend using nativeJson property to set this value: UI Samples :: Native JSON. This can also be done programmatically.