1.0.1 • Published 4 years ago

lovely-chart v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

LovelyChart

🏆 A Telegram Chart Contest 2019 award winning library.

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

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)
1.0.1

4 years ago

1.0.0

5 years ago

1.0.0-7

6 years ago

1.0.0-6

6 years ago

1.0.0-5

6 years ago

1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago

1.0.0-0

6 years ago