Wednesday 15 February 2012

javascript - Is there an Dygraph has loaded event? -



javascript - Is there an Dygraph has loaded event? -

i want show checkboxes every column in dygraph. can't figure out when names of columns dygraph using

g.getlabels().

it works when phone call manually after know graph has loaded. how can automate this? couldn't find event "dygraph.loaded" or property "dygraph.hasloaded". there way this?

this .ready() method designed do:

class="lang-js prettyprint-override">g = new dygraph(div, "/path/to/data.csv"); g.ready(function() { var labels = g.labels(); ... });

the function pass ready() called after chart has been drawn first time.

if pass csv info or array dygraphs constructor, called synchronously. if pass url, called asynchronously.

javascript html dygraphs

No comments:

Post a Comment