quickchart
quickchart copied to clipboard
gauge charts working in main domain, but not self-hosted instance
If I try this chart with https://quickchart.io/ it works flawlessly:
but it doesn't seem to be available in the docker image:
Is it something planned, or that I can circumveim in any way?
Thanks in advance !
Code to generate image:
{
type: "gauge",
data: {
datasets: [{
value: 75,
data: [18, 100],
backgroundColor: ["red", "lightgrey"],
borderWidth: 5,
}, ],
},
options: {
needle: {
color: "#838383",
lengthPercentage: 80,
widthPercentage: 8,
radiusPercentage: 4,
},
valueLabel: {
backgroundColor: "transparent",
color: "#838383",
bottomMarginPercentage: 18,
font: {
size: 17,
weight: "bold",
},
formatter: function(value, ctx) {
return "Min: 75%";
}
},
title: {
display: true,
align: "top",
text: "7/37 temas vistos 18,92%",
fontSize: "14",
fontColor: "#000",
},
plugins: {
datalabels: {
display: true,
color: "#fff",
backgroundColor: "transparent",
borderWidth: 0,
borderRadius: 5,
font: {
size: 17,
weight: "bold",
},
formatter: function(value, ctx) {
return ctx.dataIndex == 1 ? "" : (value ? value + "%" : "");
},
},
},
},
}