Skip to content

The best G2 alternatives

8 tools that do a similar job to G2, 8 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

G2

A JavaScript library for building charts from data using a declarative, layered grammar.

  1. 1

    Chart.js

    Open source · MIT · ★ 67.8k

    A JavaScript library for drawing simple, customizable charts on web pages using canvas.

    Best for: Web developers adding standard charts such as line or bar charts to a site; Designers who want chart styling they can configure in code

  2. 2

    visx

    Open source · MIT · ★ 21.1k

    A set of reusable React building blocks for drawing custom charts, built on d3 math.

    Best for: React developers who want full control over how a chart looks and behaves; Teams building their own reusable chart library on top of shared components

  3. 3

    Rough.js

    Open source · MIT · ★ 21.3k

    A small JavaScript library that draws shapes in a sketchy, hand-drawn style on Canvas or SVG.

    Best for: Web developers who want a casual, hand-drawn look for diagrams or illustrations; Developers building whiteboard-style or sketch-style interfaces

  4. 4

    three.js

    Open source · MIT · ★ 117k

    A JavaScript library for drawing and animating 3D scenes in web browsers.

    Best for: Web developers adding interactive 3D graphics to a website; Developers building browser-based visualizations or simple 3D animations

  5. 5

    mo · js

    Open source · MIT · ★ 18.9k

    A JavaScript library for building motion graphics and animations on web pages.

    Best for: Front-end developers who want decorative animated effects like bursts, shapes, or icon animations; Developers who already use a bundler such as webpack or rollup and want to install via npm

  6. 6

    Anime.js

    Open source · MIT · ★ 74.2k

    A JavaScript library for animating CSS properties, SVG, DOM attributes and plain objects.

    Best for: Front-end developers adding motion to websites or web apps; Developers animating SVG graphics or DOM elements

  7. 7

    plotly.py

    Open source · MIT · ★ 18.9k

    A Python library for making interactive, browser-based charts and graphs.

    Best for: Python users who want hoverable, zoomable charts without writing JavaScript; Data analysts working in Jupyter notebooks

  8. 8

    Plotly.js

    Open source · MIT · ★ 18.4k

    A JavaScript library for drawing interactive charts in web pages, also the engine behind Plotly in Python and

    Best for: Web developers who want interactive charts in their own site or app; Data analysts who already use Python or R Plotly and want to understand the JavaScript side

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to G2. We don't take payment for placement.