Open rockneverdies55 opened 10 years ago
:+1: Same issue here
Please, someone fix it already... 11 months since originally discovered already.
As workaround, I commented out lines 2880-2884 in v 2.1.2 : // if (!this.interact) { // // not interactive so no need to keep the shapes array // this.shapes = {}; // this.shapeseq = []; // }
I have tested this with both v2.1.1 and v2.1.2 and the problem exists in both.
In order to have double sparklines in the same canvas, you should pass
composite: true
in the options of the second sparkline.However if you set disableInteraction to true on the fist sparkline, then it fails to draw the 2nd line without overriding the first line.
Example:
So if you replace
disableInteraction: false
bydisableInteraction: true
in the snippet above, you only get one sparkline instead of 2.