Skip to content
CAI
Software that uses CAICheck a score

c3js/c3

40.1

Weak · 15 November 2026

70.2k

lines of production code

JavaScript

with TypeScript

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add PhantomJS-based chart exporter for C3.js

A new exporter extension has been added to generate PNG or JPEG images of C3.js charts using PhantomJS. This feature introduces a \phantom-exporter.js\ script and a \config.json\ file that loads the necessary D3 and C3 libraries, allowing users to render charts to static image files via command-line arguments.

extensions/exporter · high confidence

The distribution now includes a RequireJS sample configuration (htdocs/js/samples/requirejs.js) that loads D3 and C3 via CDN, along with a supporting plugin sample (htdocs/js/samples/plugin.js) and a zoom-reduction sample (htdocs/js/samples/zoom\_reduction.js). Additionally, htdocs/js/extensions is now a symbolic link pointing to ../../extensions/js, making the external extension scripts directly accessible from the web root.

htdocs/js · high confidence

Add bubble chart extension

A new bubble chart extension has been added to the charting library. This feature allows users to create bubble charts by specifying data pairs with x, y, and value attributes. The extension leverages the underlying C3.js and D3.js libraries to render the bubbles, with bubble sizes proportional to the specified values. An example HTML file is included to demonstrate the usage of this new chart type.

extensions/chart-bubble · high confidence

Added Bootstrap v3.0.0 CSS framework

The project now includes the minified CSS styles for Bootstrap v3.0.0 in htdocs/css/bootstrap.min.css. This adds the standard Bootstrap grid system, responsive utilities, form controls, navigation components, and icon fonts (Glyphicons) to the application's styling, enabling developers to use Bootstrap classes for layout and UI elements.

htdocs/css · high confidence

Added C3.js zoom extension with data reduction

The \extensions/js/c3ext.js\ file introduces a new extension for C3.js charts that enables zooming functionality with automatic data reduction. When enabled via the \zoom2\ option, the extension intercepts chart data to slice and aggregate points based on the current zoom level and a configurable \maxItems\ limit, ensuring performance remains stable when displaying large datasets. It also provides methods to enhance or reduce the zoom range and integrates with the chart's load and unload events to keep the reduced data in sync.

extensions/js · high confidence

Added sample data files for C3 charting library

Added a collection of sample data files in JSON, CSV, and TSV formats (including Stanford diagram data and various test datasets) to support the C3 charting library's data loading capabilities.

htdocs/data · high confidence

Initial release of C3.js v0.7.20

This change introduces the initial commit for the C3.js charting library, establishing the project structure with version 0.7.20. It adds the core distribution files (c3.js, c3.min.js, c3.esm.js, c3.css, c3.min.css) and configures the build and development environment through .editorconfig, .gitignore, .jshintrc, .prettierrc.json, and .travis.yml. The package is defined in bower.json and package.json with a dependency on D3.js ^5.0.0, and includes documentation files such as README.md, CONTRIBUTING.md, and MAINTAINANCE.md.

(repo-wide) · high confidence

New API and configuration sample pages for C3.js

Added a comprehensive set of new HTML sample files in the htdocs/samples directory demonstrating C3.js API usage and configuration options. These include examples for dynamic axis labels and ranges, categorized axes, data color updates, flow animations (including timeseries), legend visibility, tooltip control, chart type transformation, and grid line management. Additional samples cover zoom behavior, area and bar zero-based settings, log scales, axis padding, local time handling, tick culling/fitting/rotation, and various chart types like arc, area, and stacked areas.

htdocs/samples · high confidence

New samples index page with Stanford chart support

The htdocs/index.html file has been added to serve as a central navigation hub for the library's sample gallery. This page organizes available examples by category, including Line, Area, Bar, Pie, Donut, Gauge, Scatter, and Combination charts, as well as detailed sections for Axes configuration. Notably, it introduces a new 'Stanford Chart' section, linking to samples for standard and custom Stanford diagrams, reflecting the addition of Stanford Diagrams support in the library.

htdocs · high confidence

Behavioural changes

1 commit (0 fixes) modifying design

A change to existing behaviour in design — 1 commit, 1 file: “design: add favicon (\#2590)” (refs \#2590).

design · low confidence · unverified

Chart library migrated to TypeScript

The core source files in the \src\ directory have been converted from JavaScript to TypeScript. This migration introduces static typing to the public API (including methods for axes, data, zoom, and selection) and internal chart logic, which improves code maintainability and provides better type definitions for consumers of the library.

src · high confidence

Splits C3.js CSS into modular SCSS files

The single c3.css file has been split into multiple SCSS modules (arc, area, axis, bar, brush, chart, focus, grid, legend, line, point, region, select\_drag, text, title, tooltip, zoom) and reassembled via a main.scss entry point. This modularization allows users to import only the specific chart components they need, reducing unused CSS and making it easier to customize individual visual elements like tooltips, arcs, or zoom interactions without affecting the entire chart style.

src/scss · high confidence

Test coverage

Added TypeScript test suite for C3 chart APIs

Added a comprehensive set of TypeScript test specifications covering the C3 charting library's public API and core behaviors. The new tests in the spec directory verify functionality for axis configuration (labels, types, ranges), data manipulation (loading, naming, coloring, axes mapping), chart interactions (focus/defocus, zoom/unzoom), visual elements (donut/pie padAngle, regions, grids), and internal utilities (caching, class generation, initialization).

spec · high confidence

Dependencies

Upgrade documentation site to Middleman 4.6 and update build toolchain

The documentation site has been upgraded to Middleman 4.6, requiring Ruby dependencies defined in the new Gemfile and Gemfile.lock. The JavaScript build toolchain has been updated to use Rollup 2.79.2, Babel 7.29.7, and Sass (dart-sass) instead of the previous Grunt-based setup, with corresponding updates to devDependencies in package.json and the yarn.lock file.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 45 → 40 (-5.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 38 → 28 (-10.0)
  • Architecture 99 → 99 (+0.0)
  • Maturity 52 → 41 (-10.1)
  • Readiness 53 → 53 (-0.0)
  • Security 68 → 82 (+14.6)
  • Accessibility 45 → 48 (+2.9)

Resolved (109)

  • Critical CVE: [GHSA redacted] (yarn.lock)
  • FileTooLong: js/c3.js (docs/js/c3.js)
  • FunctionTooLong: c3.AxisInternal.generateAxis (c3.js)
  • FunctionTooLong: c3.AxisInternal.generateAxis (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.generateFlow (c3.js)
  • FunctionTooLong: c3.ChartInternal.generateFlow (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.getDefaultConfig (c3.js)
  • FunctionTooLong: c3.ChartInternal.getDefaultConfig (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.initWithData (c3.js)
  • FunctionTooLong: c3.ChartInternal.initWithData (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.redraw (c3.js)
  • FunctionTooLong: c3.ChartInternal.redraw (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.redrawArc (c3.js)
  • FunctionTooLong: c3.ChartInternal.redrawArc (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.redrawEventRect (c3.js)
  • FunctionTooLong: c3.ChartInternal.redrawEventRect (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.updateLegend (c3.js)
  • FunctionTooLong: c3.ChartInternal.updateLegend (docs/js/c3.js)
  • FunctionTooLong: c3.ChartInternal.updateStanfordElements (c3.js)
  • FunctionTooLong: c3.ChartInternal.updateStanfordElements (docs/js/c3.js)
  • …and 89 more

New (96)

  • Concentrated knowledge decay
  • FunctionTooLong: api.flow.ChartInternal.generateFlow.<returned closure> (src/api.flow.ts)
  • FunctionTooLong: axis-internal.AxisInternal.generateAxis.axis (src/axis-internal.ts)
  • FunctionTooLong: c3.esm.AxisInternal.generateAxis.axis (c3.esm.js)
  • FunctionTooLong: c3.esm.AxisInternal.generateAxis.axis (docs/js/c3.esm.js)
  • FunctionTooLong: c3.esm.ChartInternal.generateFlow.<returned closure> (c3.esm.js)
  • FunctionTooLong: c3.esm.ChartInternal.generateFlow.<returned closure> (docs/js/c3.esm.js)
  • High CVE: [GHSA redacted] (Gemfile.lock)
  • High CVE: [GHSA redacted] (Gemfile.lock)
  • Medium CVE: [GHSA redacted] (Gemfile.lock)
  • Most significant orphaned file (c3.esm.js)
  • Most significant orphaned file (c3.js)
  • Most significant orphaned file (src/polyfill.ts)
  • No ADRs found (package.json)
  • Orphaned file (extensions/chart-bubble/bubble.js)
  • Orphaned file (extensions/exporter/phantom-exporter.js)
  • Orphaned file (extensions/js/c3ext.js)
  • Orphaned file (src/api.flow.ts)
  • Orphaned file (src/api.selection.ts)
  • Orphaned file (src/arc.ts)
  • …and 76 more

Changes since last survey

  • 4 commits — 4 feature/other, 0 fixes

By area

  • (root) — 4 commits

Notable commits

  • change: chore(deps): bump brace-expansion from 1.1.16 to 1.1.21 (#2933)
  • change: chore(deps): bump follow-redirects from 1.16.0 to 1.16.1 (#2934)
  • change: chore(deps): bump follow-redirects from 1.16.1 to 1.16.2 (#2935)
  • change: chore(deps): bump shell-quote from 1.10.0 to 1.12.0 (#2932)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

c3js/c3 was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 995eafa357a8acc8d88e6172288e0125d115e572 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.