lovely-chart
    Overview
    Chat
    Issues
    Code
    Discussions
    Contributors
    Alternatives
    Dependencies
    Tutorials

lovely-chart

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

1.0.0-7  •  Updated 8 months ago  •  by Alexander Zinchuk  •  MIT License

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.
Parameter Description
title Chart headline
type Chart type. Supported types: line, area, bar, pie
labels Array of UNIX timestamps in milliseconds
datasets Array of params for each dataset
datasets[*].name Dataset name
datasets[*].color Dataset color
datasets[*].values Array of dataset values
isPercentage true for percentage based values
isStacked true for values stacking on top of each other
hasSecondYAxis true for charts with 2 Y axes
onZoom Optional function which returns Promise with data for the zoomed chart (new data object)

Popularity

Stars
37

Maintenance

Development

Last ver 8 months ago
Created 8 months ago
Last commit 8 months ago
7 hours between commits

Technology

Node version: 10.11.0
240.3K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

3 contributors
Alexander Zinchuk
Maintainer, 217 commits, 6 merges
Works at Anyway Labs
Олег Семенов
Maintainer, 87 commits, 1 merges, 9 PRs
Works at Anyway Labs

Tags

chart
graph
plot
Ready for the next level?
Join Openbase's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookLinkedIn
© 2020 Devstore, Inc.