Draw lines to the top of a datapoint in with a small, lightweight and reliable ChartJS plugin for Line charts specifically. This plugin was made to be compatible with the react-chartjs-2 library, but it is available as a commonjs and umd module, as well.
Thanks for this plugin. We use it in our project. Currently while trying to test the react app, we seem to encounter the following error with respect to this library.
/**/**/**/Project_name/node_modules/chartjs-plugin-lineheight-annotation/src/plugin.js:1 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import Chart from "chart.js";
` SyntaxError: Unexpected token import
2 | import { Line, Chart } from "react-chartjs-2";
3 | import { Component } from "react";
> 4 | import "chartjs-plugin-lineheight-annotation";
| ^
5 | import mixpanel from 'mixpanel-browser';
6 | import { withTranslation } from "react-i18next";
7 |
`
Do you have any insights on this? This seems to happen when running any test. For eg, we have written a shallow test for App.js.
Hi,
Thanks for this plugin. We use it in our project. Currently while trying to test the react app, we seem to encounter the following error with respect to this library.
/**/**/**/Project_name/node_modules/chartjs-plugin-lineheight-annotation/src/plugin.js:1 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import Chart from "chart.js";
` SyntaxError: Unexpected token import
`
Do you have any insights on this? This seems to happen when running any test. For eg, we have written a shallow test for App.js.