liveUpdateFirebaseData

Usage: If using Firebase database as data source, chaining this method will capture data updates in real-time. The chart will update without browser window refresh!

liveUpdateFirebaseData(url)
Params Type Units
url String N/A

Example:


const chart = tld3.uploadFirebase('https://tld3.firebaseio.com/')
                  .then((data) => {
                    tld3.make('BarChart')
                        .using(data)
                        .in('#barchart') .liveUpdateFirebaseData('https://tld3.firebaseio.com/'); // link up to Firebase for real-time data updates!
                    })
                    .catch((err) => {
                      console.error(err);
                    });