@fluid-topics/ft-chart
TypeScript icon, indicating that this package has built-in type declarations

1.1.37 • Public • Published

Display charts from datas.

Install

npm install @fluid-topics/ft-chart
yarn add @fluid-topics/ft-chart

Usage

import { html } from "lit"
import "@fluid-topics/ft-chart"

function render() {
    return html` <ft-chart 
        xAxisName="date"
        yAxisName="items" 
        valueLabels="['items', 'errors']",
        valueSingular="['item', 'error']",
        barChart
        period="DAY"
        data="[[1643673600, 120, 1], [1643760000, 1, 32], [1643846400, 150, 42],
         [1643932800, 80, 61], [1644019200, 70, 69], [1644105600, 110, 98], 
         [1644192000, 130, 123]]" >
    </ft-chart> `
}

Readme

Keywords

Package Sidebar

Install

npm i @fluid-topics/ft-chart

Weekly Downloads

118

Version

1.1.37

License

ISC

Unpacked Size

249 kB

Total Files

12

Last publish

Collaborators

  • antidot
  • mike.antidot