Socket
Book a DemoInstallSign in
Socket

lovely-chart

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lovely-chart

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

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
8
700%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

chart

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.