This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
lovely-chart with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
🏆 A Telegram Chart Contest 2019 award winning library.
import * as LovelyChart from 'lovely-chart'; import '~/lovely-chart/dist/LovelyChart.css'; LovelyChart.create(container, data);
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.
|Chart type. Supported types: |
|Array of UNIX timestamps in milliseconds|
|Array of params for each dataset|
|Array of dataset values|
|Optional function which returns |