amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.

Home Page:https://www.amcharts.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove Fill color from Pictorial Stacked Chart

MohitKandpal opened this issue · comments

Hi,

I am using Pictorial Stacked chart in my application and the image I am using is of tyre -
image

While rendering this image, I want to use the fill colors of this image and not of amcharts color pallet. Below is the codepen URL - https://codepen.io/mohit_k/pen/abMaZex. Is there any way to achieve this ??

I tried series.slices.template.fill property but it can take only one color and this image is using multiple colors. Attaching SVG as well for the reference.

WINSUPER X3-D-3

Thanks & Regards,
Mohit Kandpal

You can set the fillOpacity = 0 to make slices transparent:

series.slices.template.fillOpacity = 0;

However that will not reveal the image itself as it is used only as a mask. You will need to add the image to the series as well.

Can you please guide me on how to add an image to a series and exactly on which attribute to bind the image?

I do know about adding an image but not sure about where to bind it in Pictorial Stacked chart.

I have attached the image above, so if you can please update the codepen.

amCharts 4 support has reached end-of-life Dec 31, 2023.

If you still have support subscription, try contacting amCharts support directly: contact@amcharts.com

Otherwise, you might try posting your questions on StackOverflow.

I hope that sounds reasonable.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.