mcaule / d3-timeseries

Time series charting library based on d3.js
143 stars 39 forks source link

Label is not working #10

Closed saumilsdk closed 6 years ago

saumilsdk commented 6 years ago

Specified legend label doesn't appear.

let chart1 = d3_timeseries() .addSerie(b1Items, { x: 'date', y: 'signalStrength', }, {interpolate: 'monotone', label:"B1 Signal Strength"})

WillFleming commented 6 years ago

@saumilsdk Is your data sorted by ascending date? I think unsorted data was causing this issue for me.

saumilsdk commented 6 years ago

Yes you are right as my data is descending order but that should not matter i suppose.

saumilsdk commented 6 years ago

Data has to be in sorted order