A plugin for COPRL the provides easy to use charts.
Based on the C3 charting library.
Add this line to your application's Gemfile:
gem 'chart_presenter_plugin', git: 'https://github.com/coprl/chart_presenter_plugin', require: false
And then execute:
$ bundle
All the charts avaialble in C3 are avaialble with this plugin.
Example POM:
plugin :chart
title 'Line Chart'
text '[Line chart with sequential data](https://c3js.org/samples/simple_multiple.html).'
chart data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
}
Results in the following chart:
Use the DEMO and view source or to get started with more examples.
Bug reports and pull requests are welcome on GitHub at https://github.com/coprl/chart_presenter_plugin.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the COPRL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.