New:Socket for Asana Is Now Available.Learn more
Get Started

artificial-chart

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artificial-chart

The SVG D3.js based charting solution used for the Jamstack Community Survey.

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
16
6.67%
Maintainers
1
Weekly downloads
 
Created
Source

artificial-chart

The SVG D3.js based charting solution used for the Jamstack Community Survey.

Demo

All of the charts are viewable on https://jamstack.org/survey/2021/

Features

  • Responsive Web Design friendly charts
  • Progressive-enhancement friendly, draws data from HTML tables. Warning: does not include a No-JS visual view.
  • Horizontal and vertical bar chart type
    • Supports grouped data visualized side by side or stacked.
    • Supports proportional data (scaling to 100%)
    • Option to show inline labels inside or outside of the bars.
  • Bubble chart type
  • Styles nicely with gradients
  • Customizable margins
  • Wrapping on axis labels
  • Supports customized label precision
  • Supports auto-generated HTML legends (outside of the SVG).
  • Uses IntersectionObserver and ResizeObserver (when available) for better performance on initialization and resize.

Changelog

  • v2.0.0 swap to ESM

Usage

import "https://d3js.org/d3.v7.min.js";

import { HorizontalBar, VerticalBar, Bubble } from "./artificial-chart.js";

new VerticalBar("chart-id", "source-table-id", {
  showInlineBarValues: "outside",
});

FAQs

Package last updated on 04 Aug 2022

Related posts