@conectate/ct-chartjs

HTML5 Chartjs made with Web Components and Lit

Usage no npm install needed!

<script type="module">
  import conectateCtChartjs from 'https://cdn.skypack.dev/@conectate/ct-chartjs';
</script>

README

Published on webcomponents.org

ct-chartjs

It's a simple wrapper of chart.js for LitElement

Installation

To include this, type:

$ yarn add @conectate/ct-chartjs
# or
$ npm i @conectate/ct-chartjs

Usage

import '@conectate/ct-chartjs'

export class xElement extends LitElement {
    render(){
        return html`<ct-chartjs
                    delay="200"
                    type="doughnut"
                    .data=${{ ... }}
                    .options=${{ ... }}
                ></ct-chartjs>`
    }
}

Follow me

Herberth Obregón

https://twitter.com/herberthobregon

https://www.conectate.today/herberthobregon

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

  • v0.1.0 Initial Release

License

See LICENSE