-
-
Notifications
You must be signed in to change notification settings - Fork 280
Description
Problem
I do not manage to generate annotations when running a self-hosted instance of the quickchart docker image.
This is an issue for self-hosted only. Everything works fine when using https://quickchart.io/
Test
docker image:
ianw/quickchart:latest
chartjs target version:
v4
chart config:
{
type: 'line',
options: {
scales: {
y: {
min: 0,
max: 2,
stacked: true
}
},
plugins: {
annotation: {
annotations: [
{
type: 'line',
borderColor: 'black',
borderWidth: 3,
scaleID: 'y',
value: 1
}
]
}
}
}
};
corresponding chart url slug:
/chart?w=800&h=400&v=4&c=%7B%0A%20%20type%3A%20%27line%27%2C%0A%20%20options%3A%20%7B%0A%20%20%20%20scales%3A%20%7B%0A%20%20%20%20%20%20y%3A%20%7B%0A%20%20%20%20%20%20%20%20min%3A%200%2C%0A%20%20%20%20%20%20%20%20max%3A%202%2C%0A%20%20%20%20%20%20%20%20stacked%3A%20true%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20plugins%3A%20%7B%0A%20%20%20%20%20%20annotation%3A%20%7B%0A%20%20%20%20%20%20%20%20annotations%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20type%3A%20%27line%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20borderColor%3A%20%27black%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20borderWidth%3A%203%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20scaleID%3A%20%27y%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20value%3A%201%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%3B

