# Chartkick

Create beautiful charts with one line of JavaScript

Repository: https://github.com/ankane/chartkick.js
Canonical: https://ross.abutalabs.com/products/chartkick
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-06-29T08:09:47+00:00
Link (homepage): https://chartkick.com

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 35, longevity 100
- inputs: {"age_days": 4858, "days_push": 65, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1241, forks 151 (observed 2026-08-28T04:04:06.405404+00:00)

## What it is
Chartkick is a Ruby gem (with React and JS variants) that lets you create beautiful JavaScript charts with a single line of code in Rails views or React components. It supports Chart.js, Google Charts, and Highcharts as backends and accepts data as hashes, arrays, or URLs.

## Use cases
- add a line chart of users per day in a Rails view
- render a pie chart from grouped ActiveRecord counts
- create column, bar, area, and scatter charts with one line of Ruby
- build admin dashboards with quick charts
- load chart data asynchronously from a URL endpoint
- add charts to a React app with minimal code

## When to choose
- you're building a Rails or Ruby web app and want charts without hand-writing JavaScript
- you want a simple, batteries-included wrapper over Chart.js, Google Charts, or Highcharts
- you need quick charts for admin panels and dashboards
- you want charts fed directly from ActiveRecord group queries

## When to avoid
- you need fine-grained control over chart rendering beyond what the underlying libraries expose
- you're not using Ruby, Rails, or React
- you need server-side rendering of charts to static images
- you need highly custom or exotic chart types not supported by the backends

## Facets
- artifact type: library
- maturity: stable
- function: data-visualization, charts
- domain: data-visualization, web-development, frontend
- platform: ruby
- tags: chartkick, chartjs, google-charts, highcharts, rails, react, ruby-gem, nodejs, web-server

## Member repositories
- ankane/chartkick.js (main) score 73
- ankane/chartkick (sdk) score 76
- ankane/react-chartkick (sdk) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.405404+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:44:09.086809+00:00, confidence not recorded.
  - readme: https://github.com/ankane/chartkick.js (fetched 2026-08-28T04:04:06.405404+00:00, sha 51c3b7cce8de)
  - homepage: https://chartkick.com (fetched 2026-08-29T08:40:59.388391+00:00, sha 8a6e2b5fce45)
  - registry_npm: https://registry.npmjs.org/react-chartkick (fetched 2026-08-29T08:40:59.397559+00:00, sha 9f893cbc66ee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
