Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarcosBL opened this issue Jan 17, 2024 · 0 comments
Open

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

MarcosBL opened this issue Jan 17, 2024 · 0 comments

Comments

@MarcosBL
Copy link

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 + "%" : "");
                },
            },
        },
    },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant