You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I seem to have stumbled on an issue with images as labels. If I use relative paths Safari won't show the icon. At first I thought there was an issue with using svg or jpg/png, (top ones are jpg/png, bottom ones are svg) but it is the path that apparently causes the icon to not show.
Absolute paths > OK
Relative paths: no icon showing in Safari
Same code. Chrome on the left, Safari on the right.
I seem to have stumbled on an issue with images as labels. If I use relative paths Safari won't show the icon. At first I thought there was an issue with using svg or jpg/png, (top ones are jpg/png, bottom ones are svg) but it is the path that apparently causes the icon to not show.
Absolute paths > OK
Relative paths: no icon showing in Safari
Same code. Chrome on the left, Safari on the right.
plugins: {
labels: {
render: 'image',
images: [{
src: 'https://emn178.github.io/chartjs-plugin-labels/samples/demo/usa.png', // WORKS
width: 20,
height: 20
}, {
src: '../assets/svg/fa-unlink.svg', // DOESN'T WORK
width: 20,
height: 20
}, {
src: 'http://tomhermans.com/wp-content/themes/th_tomhermans_foundation_child/img/tomhermans_bol.svg', // WORKS
width: 20,
height: 20
}, {
src: '../assets/img/ava.jpg', // DOESN'T WORK
width: 20,
height: 20
}
],
// render: 'value',
showZero: true,
fontColor: 'white',
position: 'inside',
overlap: true
}
}
The text was updated successfully, but these errors were encountered: