flrs / visavail

A D3.js Time Data Availability Visualization
https://flrs.github.io/visavail/docs/samples/basic.html
MIT License
310 stars 59 forks source link

Cannot update title #56

Open tsulatsitamim opened 3 years ago

tsulatsitamim commented 3 years ago

Hi, thanks for this library, i can make downtime graph easily with this library.

I try to update existing chart by passing new options contain new title on updateGraph method, but the title doesn't change.

I try to console log the parameter on updateGraph method it show the old options, event if I pass object with title key only 2021-08-26_18-52_1

thank you

tanganellilore commented 3 years ago

Please, check you code, probably you passed a wrong options. You need to pass all json options, not only one keyword.

Standard code work perfectly with updateGraph and updateOptions, check it: https://codesandbox.io/s/flamboyant-cdn-44mnl