orbcharts
TypeScript icon, indicating that this package has built-in type declarations

3.0.8 • Public • Published

OrbCharts

logo - light mode

OrbCharts is a "data-driven JavaScript chart library" that currently supports 6 data types, 23 chart types, 50 plugins, and 100 preset style combinations.

Official Website

Features

(1) 6 Major Data Formats

OrbCharts is centered around 6 "data formats", each corresponding to unique visualizations. You can manipulate the data through parameters - filtering, axis transformation, scaling, etc., dynamically mapping to the chart's visual presentation.

(2) Modular Plugins

All chart elements are embedded plugins that can be dynamically extended or replaced within the same data category, stacking or expanding functionality like building blocks.

(3) Based on D3.js and RxJS

To create the most "data-driven" chart design framework, D3.js and RxJS are used as the main development technologies. Both are very popular libraries in the front-end development field, with high application and expansion potential.

Get Started!

Installation

OrbCharts supports CDN downloads and npm installation, is not limited to specific front-end frameworks, and supports both JavaScript and TypeScript development environments.

Here are several installation methods:

  1. npm installation
npm i orbcharts
  1. ESM format CDN download
<script type="module">
import * as orbcharts from 'https://cdn.jsdelivr.net/npm/orbcharts@3.0.7/+esm'
</script>
  1. UMD format CDN download
<script src="https://cdn.jsdelivr.net/npm/orbcharts@3.0.7/dist/orbcharts.umd.min.js"></script>

Execution

This is an executable program to start creating your first pie chart:

import { SeriesChart, Pie, PRESET_PIE_BASIC } from 'orbcharts'

const element = document.querySelector('#chart')

const chart = new SeriesChart(element, {
  preset: PRESET_PIE_BASIC
})

chart.plugins$.next([new Pie()])

chart.data$.next([
  [80,120,45],
  [50,30,15,28],
  [55,13,38,10,5]
])

License

OrbCharts is released under the Apache License 2.0.

/orbcharts/

    Package Sidebar

    Install

    npm i orbcharts

    Weekly Downloads

    21

    Version

    3.0.8

    License

    Apache-2.0

    Unpacked Size

    2.2 MB

    Total Files

    11

    Last publish

    Collaborators

    • upstairs0102