danvk / dygraphs

Interactive visualizations of time series using JavaScript and the HTML canvas tag
http://dygraphs.com
Other
3.17k stars 605 forks source link

Remove annotations #403

Open danvk opened 10 years ago

danvk commented 10 years ago

From fernando...@deimos-imaging.com 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 commented 10 years ago

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 commented 10 years ago

From konigsb...@google.com on September 11, 2013 06:39:34

Can this be handled with css?

danvk commented 10 years ago

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

ffischer1984 commented 5 years ago

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