updateTimeFormat
Usage: Updates the time format. ONLY to be used with multi-line charts. Notice how chaining this method after make
but before using
and in
turns the line chart into a multi-line chart.
updateTimeFormat(timeFormat)
Params | Type | Units |
---|---|---|
timeFormat | d3.time.format | N/A |
Example:
tld3.upload('./data/multiLineData.csv')
.then((data) => {
tld3.make('LineChart')
.updateTimeFormat('%Y%m%d')
.using(data)
.in('#linechart');
})
.catch((err) => {
console.error(err);
});