Ben McCann
Ben McCann
To share some details about impact, it looks like this is: - blocking Netlify's migration to ESM: https://answers.netlify.com/t/netlify-serverless-typescript-functions-fail-with-dynamic-requires/52379/13 - blocking Shopify from dropping CJS support: https://github.com/Shopify/hydrogen/issues/1155
Or better yet, 3.0 which is out now
I'd love to drop CJS and do ESM-only if possible
Personally, I have no objection to using static properties. They look to be fairly well supported and users can use something like Babel if they need to support older browsers....
> I've heard suggestions of rendering the tooltip outside of the canvas so its visible regardless of canvas sizing You can do that today. See https://www.chartjs.org/docs/latest/configuration/tooltip.html#external-custom-tooltips
It's an interesting thought. It'd probably be much better performance too since redrawing the canvas whenever the mouse is moved is quite expensive
Couldn't we have a default implementation that's just pure DOM though? I'm not sure why we'd necessarily need to integrate with other frameworks.
You can make a custom html legend: https://www.chartjs.org/docs/latest/configuration/legend.html#html-legends
I wonder if you could just handle manually by removing the last label and adding a new one with the max value of the axis
If I do a Google images search for histogram none of the results have vertical gridlines. I think I'd just turn off the gridlines in the fiddle and call it...