trading-peter / chart-elements

Chart.js as Polymer Elements
https://robdodson.github.io/chart-elements
267 stars 70 forks source link

Half shown labels #4

Closed benzen closed 10 years ago

benzen commented 10 years ago

I'm not quite sure why, but my labels are half shown like this. capture d ecran 2014-09-03 a 17 55 16

I've tryed to add padding and marging without success.

robdodson commented 10 years ago

Can you show me the code you're using to generate that graph?

benzen commented 10 years ago

sure

chart-line(values="{{distanceSeries(tracks)}}", labels="{{seriesDate(tracks)}}", colors="{{colorsSeries(0)}}")

where

distanceSeries = => [[10,20]]
seriesDate = => ['2014-01-01','2014-01-02']
colors = => ['253,180,92']
benzen commented 10 years ago

I've just made the swtich to version 0.1.1 (for the caching). And the issue with the labels disparears. Now my labels are rotated. So I assume it was an issue with the old version of chart.js