lc

lovely-chart

🏆 A [Telegram Chart Contest 2019](https://contest.dev/chart-js) award winning library.

Showing:

Popularity

Downloads/wk

17

GitHub Stars

47

Maintenance

Last Commit

4mos ago

Contributors

2

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

LovelyChart

🏆 A Telegram Chart Contest 2019 award winning library.

mobile friendly, high performance, extra lightweight, zero dependency, production ready, open source

lightweight chart js library

Demo

https://ajaxy.github.io/lovely-chart/

Usage

import * as LovelyChart from 'lovely-chart';
import '~/lovely-chart/dist/LovelyChart.css';

LovelyChart.create(container, data);

Arguments for LovelyChart.create

  • container — DOM Node in which the chart is rendered. The chart layout resizes automatically to occupy the entire available width.
  • data — Parameters for a chart.
ParameterDescription
titleChart headline
typeChart type. Supported types: line, area, bar, pie
labelsArray of UNIX timestamps in milliseconds
datasetsArray of params for each dataset
datasets[*].nameDataset name
datasets[*].colorDataset color
datasets[*].valuesArray of dataset values
isPercentagetrue for percentage based values
isStackedtrue for values stacking on top of each other
hasSecondYAxistrue for charts with 2 Y axes
onZoomOptional function which returns Promise with data for the zoomed chart (new data object)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100