Comments (4)
The current version of this gem bundles Chart.js v1.0.2. It doesn't know about plugins; I imagine you could add a plugin by getting the asset pipeline to pick it up after Chart.js, but I haven't tried it.
The gem doesn't do anything to the x axis; you get whatever Chart.js gives you.
What sort of error are you seeing?
from chartjs-ror.
Using <%= line_chart @data, {width: 1000, generateLegend: true, scaleOverride: true} %>
chartjs-ror (2.2.0) lib/chartjs/axis_helpers.rb:27:in `each'
chartjs-ror (2.2.0) lib/chartjs/axis_helpers.rb:27:in `max'
chartjs-ror (2.2.0) lib/chartjs/axis_helpers.rb:27:in `ordinate_scale'
chartjs-ror (2.2.0) lib/chartjs/chart_helpers.rb:25:in `chart'
chartjs-ror (2.2.0) lib/chartjs/chart_helpers.rb:7:in `block (2 levels) in '
app/views/datastores/compare.html.erb:4:in `_app_views_datastores_compare_html_erb__3985059706827773447_70232126434220'
No error on scaleSteps: 2 example above anymore, i think i had a dodgy chartjs.scatter mucking up the assets dir. I got rid of it and this is the only error i am getting now, but i don't know what scaleOverride:true does anyways, just thought i'd report.
from chartjs-ror.
You didn't include the actual exception message so I'm not sure what the problem is. Could you post the message please?
However I suggest you leave out the scaleOverride: true
altogether. I originally put it in because I wanted the y-axis scale handled differently in my app (see chartjs/Chart.js#132) – but now I think this gem should be a simple wrapper around Chart.js, without any extra functionality.
from chartjs-ror.
Closing this because I've upgraded the plugin (v3.0.0) to use Chart.js v2.1.4, which has a different way of scaling.
from chartjs-ror.
Related Issues (20)
- support chartjs 2.0 HOT 1
- Pie, Doughnut, and Polar charts not working. HOT 14
- Provide a CHANGELOG HOT 2
- new chart undefined HOT 2
- No way to access chart object HOT 9
- Series data type HOT 5
- Typo in Readme
- Options variable mutability
- Weird behaviour of height and width options HOT 3
- Chart JS adding a blank block at the beginning of the chart, when label is more than a word. HOT 1
- Can you format decimals to become currency values? HOT 2
- Content Security Policy Errors
- ticks formatting HOT 2
- JavaScript functions passed as string won't execute
- labels: 3rd value becomes a "-" HOT 2
- Update Chart.js to version 2.7.3 HOT 1
- New maintainer? HOT 1
- Enabling Plugins - Waterfall Plugin
- Update Chart.js to version 2.8.0 HOT 1
- Update README for Rails 6 with webpacker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-ror.