README.md in chartjs-ror-1.0.0 vs README.md in chartjs-ror-1.0.1

- old
+ new

@@ -4,10 +4,12 @@ * All of Chart.js's features via one line of Ruby. * Legends for your charts. * Renders charts on page load rather than DOMContentReady ([reason][browsersupport]). * Animates unless you have Modernizr and it doesn't detect canvas support ([reason][browsersupport]). You can manually override this. +* Optional alternative (better?) abscissa scale calculations. +* Utility method for filling in gaps in integer series. NOTE: this is Rails 3.0 only at the moment, so pre-asset pipeline. I plan to upgrade soon. ## Installation @@ -163,11 +165,11 @@ ### Options You can put anything in the `options` hash that Chart.js recognises. It also supports these non-Chart.js settings: -* `:css_class` - class of the enclosing `<figure/>` - default is `chart`. +* `:class` - class of the enclosing `<figure/>` - default is `chart`. * `:element_id` - id of the `<canvas/>` - default is `chart-n` where `n` is the 0-based index of the chart on the page. * `:width` - width of the canvas in px - default is `400`. * `:height` - height of the canvas in px - default is `400`. * `:legend` - an array of names for the datasets. @@ -210,9 +212,14 @@ * `dataset-m` where `m` is the 0-based index of the item. * The id value of the canvas. This lets you style legends in general but override the styles for specific charts. + + +### Scale calculations + +The plugin implements its own abscissa scale calculations which I prefer to Chart.js's. You can opt-in to these calculations by passing `scaleOverride: true` in the `options` hash, without any of the other scale override keys (`scaleSteps`, `scaleStepWidth`, `scaleStartValue`). ## Inspiration * [Chart.js][] (obviously)