1.0.4 • Published 1 year ago

@meveo-org/mv-chart v1.0.4

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

mv-chart

MvChart is a Meveo chart component (based on lit-element) that renders a content chart. This is a component wrapper for chartjs

Quick Start

To experiment with the MvChart component.

  1. Clone this repo.

  2. Serve the project from the root directory with some http server (best served with meveo itself)

  3. Update the chart demo component in demo.js file

Sample usage

<mv-chart
  .type="${DOUGHNUT_CONFIG.type}"  // can be any of the chartjs chart types
  .data="${DOUGHNUT_CONFIG.data}"  // data properties are in chartjs data type
  .options="${DOUGHNUT_CONFIG.options}" // options are in chartjs options type
  .plugins="${DOUGHNUT_CONFIG.options}" // plugins are in chartjs plugins type
  .theme="${this.theme}" // theme is either "light" or "dark"
></mv-chart>

You can also check this demo

Acknowledgement

Uses chartjs library for rendering the charts

1.0.2

1 year ago

1.0.1

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

2 years ago