dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

Remove annotations

Open danvk opened this issue 11 years ago • 4 comments

From [email protected] on May 31, 2013 05:59:33

It would be nice to add a method that toggles on/off all the annotations for the N-series of the graph.

Original issue: http://code.google.com/p/dygraphs/issues/detail?id=474

danvk avatar Oct 20 '14 22:10 danvk

From danvdk on August 12, 2013 13:55:00

You can do this in user-land with:

// Hide all annotations var a = g.annotations(); g.setAnnotations([]);

// Restore annotations g.setAnnotations(a);

But it would be convenient to have a global switch for this.

Status: Accepted
Labels: -Type-Defect Type-Enhancement

danvk avatar Oct 20 '14 22:10 danvk

From [email protected] on September 11, 2013 06:39:34

Can this be handled with css?

danvk avatar Oct 20 '14 22:10 danvk

I don't think so -- at least one part of the annotation (the "tick") is drawn on the canvas.

danvk avatar Oct 21 '14 04:10 danvk

I think the tick not the problem..you can specify the tickColor with your background-color

ffischer1984 avatar Jan 25 '19 20:01 ffischer1984