Directory

← Back

google-chart

Google Charts API web components

Author

Contributors

Rating

google-chart

Google Charts API web components.

See: Documentation

Build Status Published on NPM Published on webcomponents.org

Usage

Installation

npm i @google-web-components/google-chart

In HTML file

<html>
  <head>
    <script type="module">
      import '@google-web-components/google-chart/google-chart.js';
    </script>
  </head>
  <body>
    <google-chart data='[["Month", "Days"], ["Jan", 31]]'></google-chart>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@google-web-components/google-chart/google-chart.js';

class NewElement extends PolymerElement {
  static get template() {
    return html`
      <google-chart data='[["Month", "Days"], ["Jan", 31]]'></google-chart>
    `;
  }
}
customElements.define('new-element', NewElement);

More usage examples

See examples in the demo or try this live JS bin.

Contributing

Instructions for running the tests and demo locally:

Installation

git clone https://github.com/GoogleWebComponents/google-chart.git
cd google-chart
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --open

and visit http://127.0.0.1:8081/components/@google-web-components/google-chart/demo/.

Running the tests

polymer test --npm

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • @polymer/iron-ajax#^3.0.0-pre.18
  • @polymer/polymer#^3.0.0
Released
2019-03-08
Maturity
IMPORTED
License
Apache License 2.0

Compatibility

Framework
Polymer 3.0+
Polymer 2.0+ in 2.0.1
Polymer 1.0+ in 1.1.2
Browser
Browser Independent

google-chart - Vaadin Add-on Directory

Google Charts API web components google-chart - Vaadin Add-on Directory
# google-chart [Google Charts API](https://developers.google.com/chart/) web components. See: [Documentation](https://www.webcomponents.org/element/@google-web-components/google-chart) [![Build Status](https://travis-ci.org/GoogleWebComponents/google-chart.svg?branch=master)](https://travis-ci.org/GoogleWebComponents/google-chart) [![Published on NPM](https://img.shields.io/npm/v/@google-web-components/google-chart.svg)](https://www.npmjs.com/package/@google-web-components/google-chart) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@google-web-components/google-chart) ## Usage ### Installation ```sh npm i @google-web-components/google-chart ``` ### In HTML file ```html ``` ### In a Polymer 3 element ```js import {PolymerElement, html} from '@polymer/polymer'; import '@google-web-components/google-chart/google-chart.js'; class NewElement extends PolymerElement { static get template() { return html` `; } } customElements.define('new-element', NewElement); ``` ### More usage examples See examples in the demo or try this live [JS bin](https://jsbin.com/taximobici/edit?html,output). ## Contributing Instructions for running the tests and demo locally: ### Installation ```sh git clone https://github.com/GoogleWebComponents/google-chart.git cd google-chart npm install npm install -g polymer-cli ``` ### Running the demo locally ```sh polymer serve --open ``` and visit `http://127.0.0.1:8081/components/@google-web-components/google-chart/demo/`. ### Running the tests ```sh polymer test --npm ```
Online