Skip to content

A COPRL presenters plugin for charts - uses the C3 chart library

License

Notifications You must be signed in to change notification settings

coprl/chart_presenter_plugin

 
 

Repository files navigation

Chart Presenter Plugin

A plugin for COPRL the provides easy to use charts.

Based on the C3 charting library.

Installation

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

Usage

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: Line Chart

Use the DEMO and view source or to get started with more examples.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/coprl/chart_presenter_plugin.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the COPRL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

A COPRL presenters plugin for charts - uses the C3 chart library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.4%
  • Other 1.6%