Open r-niyati opened 1 day ago
The easiest way to make markers circular in shape is like this:
legend.markerRectangles.template.setAll({
cornerRadiusTR: 20,
cornerRadiusBR: 20,
cornerRadiusTL: 20,
cornerRadiusBL: 20
});
This code worked. However, unable to add stroke width and shadow to tooltip as well not able to add stroke to the legend markers.
Since markers inherit stroke and fill information from the related series, you can only override it with an adapter:
legend.markerRectangles.template.adapters.add("stroke", function() {
return am5.color(0x000000);
});
Thanks this worked as well. Is there a way to add hand cursor to legends?
Legend uses pointer symbol over legends by default.
Bug description
I have tried to reuse the following demo:
https://www.amcharts.com/demos/stacked-column-chart/
Aim is to create the legend markers circular in shape. I have tried using marker template but it still returns legends in square shape. Here's my code:
function getJsonData(chartId) { // Create root element var root = am5.Root.new(chartId);