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
Crosshair is rendered on top of tooltips #48
Comments
Has anyone resolved this? |
Not to my knowledge @jclusso |
@CreativeCoders actually this guys version adds an option |
@daraeman could make a PR to include this feature maybe, it would be great! |
Here's is a very simple workaround, if you have the plugin globally registered in ChartJS: // Fix for crosshair plugin drawing over the chart and tooltip
let crosshairPlugin = Chart.registry.plugins.get("crosshair");
const afterDraw = crosshairPlugin.afterDraw.bind(crosshairPlugin);
crosshairPlugin.afterDraw = function (chart, args, options) {};
crosshairPlugin.afterDatasetDraw = function (chart, args, options) {
afterDraw(chart, args, options);
}; This plugin is rendering the crosshair during the |
Crosshair is rendered on top of tooltips (and the datalabels plugin annotations). It would be nice to be able to push it behind elements in the chart.
The text was updated successfully, but these errors were encountered: