Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noma4i/chartism
Chartists.js with plugins for Rails
https://github.com/noma4i/chartism
Last synced: 3 days ago
JSON representation
Chartists.js with plugins for Rails
- Host: GitHub
- URL: https://github.com/noma4i/chartism
- Owner: noma4i
- Created: 2015-12-12T04:16:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T00:09:13.000Z (almost 9 years ago)
- Last Synced: 2024-05-08T22:16:49.068Z (6 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WIP
# Chartism for Chartist.js
[Chartist - Simple Responsive Charts](http://gionkunz.github.io/chartist-js/index.html)
Works with Rails
## Installation
```ruby
gem "chartism", git: "https://github.com/noma4i/chartism"
```## Usage
Line chart
In the controller:
```ruby
@chart_data = {
labels: ['M', 'T', 'W', 'T', 'F'],
series: [
[12, 9, 7, 8, 5]
]
}
``````erb
<%= line_chart @chart_data %>
```### Global Options
In progress...
## Contributing
- [Report bugs](https://github.com/noma4i/chartism/issues)
- Fix bugs and [submit pull requests](https://github.com/noma4i/chartism/pulls)
- Suggest or add new features