0.0.1 • Published 1 year ago

ga-simple-chart v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

GaSimpleChart

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 ga-simple-chart

Usage

<ga-simple-chart
  type="line"
  data="[...]"
  colors='["#00A5FF"]'
  tooltipPos="center"
></ga-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".