Skip to content Skip to sidebar Skip to footer

How To Apply Svg And Font Filters To Amcharts4?

I am trying to apply filters to my JS object, where <%=strKey%> is a dynamically scripted object name, so, each iteration, the name changes. // dynamically writing JS

Solution 1:

You can just use a DropShadowFilter to add a shadow to your chart:

chart.filters.push(new am4core.DropShadowFilter());

You can use blur, dx and dy to customize the shadow:

var shadow = new am4core.DropShadowFilter();
shadow.blur = 3.5;
shadow.dx = 5;
shadow.dy = 7;
chart.filters.push(shadow);

Here is a code pen showing that shadow. To create a custom SVG filter you can follow this official tutorial.

Post a Comment for "How To Apply Svg And Font Filters To Amcharts4?"