chartkick 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chartkick might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/{ISSUE_TEMPLATE.md → .github/ISSUE_TEMPLATE.md} +0 -0
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +4 -3
- data/LICENSE.txt +1 -1
- data/README.md +35 -4
- data/lib/chartkick/version.rb +1 -1
- data/vendor/assets/javascripts/chartkick.js +2091 -1695
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c337ade357df03e6f2696c9a3a0286f680be8a0
|
4
|
+
data.tar.gz: ad699b7126c8453c7940c2856a4fb5b364b40ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 338c912c54d819b763c75b9a4285b8053db75acd4e25d2f92107f43db5fc4adcf6b67594d623018346985c101eec99b9ee14c94d018c66d4a491b1c6273ac819
|
7
|
+
data.tar.gz: 0f860d947e6d76893b6c591392ca3c638e06e061441a89bfc0a017f86dbdb7befc2ccd44208c19de5b68e310e5a2ba4f4ebf931434dab96f234c65700db4dca5
|
File without changes
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -21,10 +21,11 @@ Think you’ve discovered an issue?
|
|
21
21
|
gem "chartkick", github: "ankane/chartkick"
|
22
22
|
```
|
23
23
|
|
24
|
-
If the above steps don’t help, create an issue.
|
24
|
+
If the above steps don’t help, create an issue. Include:
|
25
25
|
|
26
|
-
-
|
27
|
-
-
|
26
|
+
- Detailed steps to reproduce
|
27
|
+
- JavaScript rendered by Chartkick
|
28
|
+
- Complete backtraces for exceptions
|
28
29
|
|
29
30
|
## Pull Requests
|
30
31
|
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -224,7 +224,7 @@ You can pass options directly to the charting library with:
|
|
224
224
|
<%= line_chart data, library: {backgroundColor: "#eee"} %>
|
225
225
|
```
|
226
226
|
|
227
|
-
See the documentation for [Chart.js](http://www.chartjs.org/docs/), [Google Charts](https://developers.google.com/chart/interactive/docs/gallery), and [Highcharts](
|
227
|
+
See the documentation for [Chart.js](http://www.chartjs.org/docs/), [Google Charts](https://developers.google.com/chart/interactive/docs/gallery), and [Highcharts](https://api.highcharts.com/highcharts) for more info.
|
228
228
|
|
229
229
|
### Global Options
|
230
230
|
|
@@ -310,7 +310,9 @@ gem "chartkick"
|
|
310
310
|
|
311
311
|
Next, choose your charting library.
|
312
312
|
|
313
|
-
|
313
|
+
### Charting Libraries
|
314
|
+
|
315
|
+
**Note:** In the instructions below, `application.js` must be included **before** the charts in your views, unless using the `:content_for` option.
|
314
316
|
|
315
317
|
#### Chart.js
|
316
318
|
|
@@ -337,7 +339,7 @@ In your views, before `application.js`, add:
|
|
337
339
|
|
338
340
|
#### Highcharts
|
339
341
|
|
340
|
-
Download [highcharts.js](https://code.highcharts.com/highcharts.js) into `vendor/assets/javascripts
|
342
|
+
Download [highcharts.js](https://code.highcharts.com/highcharts.js) into `vendor/assets/javascripts` (or use `yarn add highcharts` in Rails 5.1+).
|
341
343
|
|
342
344
|
In `application.js`, add:
|
343
345
|
|
@@ -348,6 +350,35 @@ In `application.js`, add:
|
|
348
350
|
|
349
351
|
Works with Highcharts 2.1+
|
350
352
|
|
353
|
+
### Webpacker
|
354
|
+
|
355
|
+
For Webpacker, use Yarn to install the JavaScript libraries:
|
356
|
+
|
357
|
+
```sh
|
358
|
+
yarn add chartkick
|
359
|
+
yarn add chart.js # or highcharts
|
360
|
+
```
|
361
|
+
|
362
|
+
Then include them in your pack.
|
363
|
+
|
364
|
+
```es6
|
365
|
+
import Chartkick from "chartkick";
|
366
|
+
window.Chartkick = Chartkick;
|
367
|
+
|
368
|
+
// for Chart.js
|
369
|
+
import Chart from "chart.js";
|
370
|
+
window.Chart = Chart;
|
371
|
+
|
372
|
+
// for Highcharts
|
373
|
+
import Highcharts from "highcharts";
|
374
|
+
window.Highcharts = Highcharts;
|
375
|
+
|
376
|
+
// for Google Charts
|
377
|
+
// just include https://www.gstatic.com/charts/loader.js in your views
|
378
|
+
```
|
379
|
+
|
380
|
+
You pack must be included **before** the charts in your views, unless using the `:content_for` option.
|
381
|
+
|
351
382
|
### Sinatra and Padrino
|
352
383
|
|
353
384
|
You must include `chartkick.js` manually. [Download it here](https://raw.githubusercontent.com/ankane/chartkick/master/vendor/assets/javascripts/chartkick.js)
|
@@ -459,7 +490,7 @@ Chartkick uses [iso8601.js](https://github.com/Do/iso8601.js) to parse dates and
|
|
459
490
|
|
460
491
|
View the [changelog](https://github.com/ankane/chartkick/blob/master/CHANGELOG.md)
|
461
492
|
|
462
|
-
Chartkick follows [Semantic Versioning](
|
493
|
+
Chartkick follows [Semantic Versioning](https://semver.org/)
|
463
494
|
|
464
495
|
## Contributing
|
465
496
|
|
data/lib/chartkick/version.rb
CHANGED