Closed kentforth closed 3 years ago
var options = {
chart: {
type: "bar",
height: "auto"
},
series: [
{
name: "sales",
data: [30, 40, 45, 50]
}
],
plotOptions: {
bar: {
distributed: true
}
},
fill: {
type: "image",
opacity: 1,
image: {
src: [
"https://cdn.pixabay.com/photo/2017/07/03/20/17/abstract-2468874_1280.jpg",
"https://cdn.pixabay.com/photo/2016/10/29/10/16/abstract-1780386_1280.png",
"https://cdn.pixabay.com/photo/2016/12/15/20/21/texture-1909992__340.jpg",
"https://cdn.pixabay.com/photo/2020/01/06/16/20/abstract-4745656_1280.jpg"
]
}
},
xaxis: {
categories: [1991, 1992, 1993, 1994]
},
legend: {
show: false
}
};
Example - https://codepen.io/apexcharts/pen/GRqYWdQ?editors=0010
Thank you!
I have a column chart with datalables. I want to use images instead of color for every column in chart Is it possible to make image as background for every column? How can I do it?
My Chart: