Chart.js: Add offsetGridLines option to Line charts

Created on 21 Mar 2015  路  4Comments  路  Source: chartjs/Chart.js

Sometimes you want to display non numeric values on the X axis of a Line Chart. For now it looks like this :
chartwithoutcenter

It would be nice to have the offsetGridLines option that exists on the Bar Charts that would output this :
chartcentered

I forked your repo and coded the modification. I can submit a pull request with this option (false by default) if you think it's interesting.

Most helpful comment

I am having a problem with this functionality in Chart.[email protected]. I have a Codepen example with some strange behaviour: http://codepen.io/anon/pen/GjNpdg

Don't know if this is a bug or me failing.

Hope someone can help!

All 4 comments

Did you submit the pull request ? It would be great, I think.

Just submitted the PR #1023

Closing since the fix for this was merged

I am having a problem with this functionality in Chart.[email protected]. I have a Codepen example with some strange behaviour: http://codepen.io/anon/pen/GjNpdg

Don't know if this is a bug or me failing.

Hope someone can help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SylarRuby picture SylarRuby  路  3Comments

HeinPauwelyn picture HeinPauwelyn  路  3Comments

joebirkin picture joebirkin  路  3Comments

gabrieldesouza picture gabrieldesouza  路  3Comments

bytesnz picture bytesnz  路  3Comments