Vue Chartkick
Create beautiful JavaScript charts with one line of Vue.
Charts
Line chart
Pie chart
Column chart
Bar chart
Area chart
Scatter chart
Geo chart - Google Charts
Timeline - Google Charts
Multiple series
Say Goodbye To Timeouts
Make your pages load super fast and stop worrying about timeouts. Give each chart its own endpoint.
Options
Id, width, and height
Min and max values
min
defaults to 0 for charts with non-negative values. Use null
to let the charting library decide.
Colors
Stacked columns or bars
Discrete axis
Label (for single series)
Axis titles
Straight lines between points instead of a curve
Show or hide legend
Specify legend position
Donut chart
Prefix, useful for currency - Chart.js, Highcharts
Suffix, useful for percentages - Chart.js, Highcharts
Set a thousands separator - Chart.js, Highcharts
Set a decimal separator - Chart.js, Highcharts
Show a message when data is empty
Refresh data from a remote source every n
seconds
You can pass options directly to the charting library with:
See the documentation for Google Charts, Highcharts, and Chart.js for more info.
Data
Pass data as an array or object
Times can be a Date
, a timestamp, or a string (strings are parsed)
Download Charts
Chart.js only
Give users the ability to download charts. It all happens in the browser - no server-side code needed.
Set the filename
Note: Safari will open the image in a new window instead of downloading.
Installation
Run
Chart.js
Run
And add
Google Charts
Add
And include on the page
Highcharts
Run
And add
Without Yarn or NPM
Include the charting library
And then the Chartkick libraries