blacklabel / annotations

Annotations plugin for Highstock by Black Label
http://blacklabel.github.io/annotations/
Other
22 stars 16 forks source link

How we can edit the title on annotation #37

Closed pranjalps03 closed 9 years ago

pawelfus commented 9 years ago

Use annotation.update().

pranjalps03 commented 9 years ago

I want to update the title like of contentediatble=true or wheather I could inject the id on tspan in svg.

pawelfus commented 9 years ago

I'm not sure, but is condentEditable supported in SVG? I made simple test case: http://jsfiddle.net/7m3Mr/136/ - doesn't work.

And regarding ID's, you can add ID to the annotation text using element.attr(), see: http://jsfiddle.net/7m3Mr/137/

pawelfus commented 9 years ago

Or example to set title.id in options: http://jsfiddle.net/7m3Mr/138/