quickchart icon indicating copy to clipboard operation
quickchart copied to clipboard

gauge charts working in main domain, but not self-hosted instance

Open MarcosBL opened this issue 5 months ago • 0 comments

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 !

Link to generate image

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 + "%" : "");
                },
            },
        },
    },
}

MarcosBL avatar Jan 17 '24 05:01 MarcosBL