fc-experiment-simple-chart

0.0.3 • Public • Published

fc-experiment-simple-chart

A custom element for creating GaChart with base simple options in a LitElement web component.

Features

Supports multiple chart types such as line, bar. Dynamic data and options property to easily update chart information. Ability to set colors for the chart series. Tooltip position can be adjusted for better visibility.

Installation

To install the package, run the following command:

npm install fc-experiment-simple-chart

Usage

<fc-experiment-simple-chart
  type="line"
  data="[...]"
  colors='["#00A5FF"]'
  tooltipPos="center"
></fc-experiment-simple-chart>

Properties

  • type: (String) Specifies the type of chart to be created. Default value is "line".
  • data: (Object) Data to be used for creating the chart.
  • colors: (Array) Colors to be used for chart series. Default value is ['#00A5FF'].
  • tooltipPos: (String) Specifies the position of the tooltip on the chart. Default value is "center".

/fc-experiment-simple-chart/

    Package Sidebar

    Install

    npm i fc-experiment-simple-chart

    Weekly Downloads

    0

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    270 kB

    Total Files

    10

    Last publish

    Collaborators

    • guy-avraham-com