Charts ยท console.warn
a chart marker image could not be loaded ({s...
Printed by Charts, prefixed [lattice], since 1.86.0.
Warnings reference › chart:marker:image-failed:*
- Identifier
chart:marker:image-failed:*- Raised by
- Charts
- Since
- 1.86.0
What happened
The browser tried to load a marker image once and could not (a 404, a blocked cross-origin request, a file that is not an image). The outcome is remembered for the page, so the URL is not retried, and the points keep the default marker. The key ends with the full URL.
The fix
Fix the URL, or serve the image with a header that lets the page load it.
The smallest fix
createChart({ grid, container, type: 'line', x: 'day', y: 'value', marker: { image: '/img/pin.png' } });
Reference
Covered in full at the API reference.