-
Notifications
You must be signed in to change notification settings - Fork 26
/
highcharts-chart.js
26 lines (24 loc) · 905 Bytes
/
highcharts-chart.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import {PolymerElement, html} from '@polymer/polymer/polymer-element.js'
import {HighchartsPolymer} from './highcharts-behavior.js'
import {SharedStyles} from './shared-styles.js';
/**
* @polymer
* @polymerElement
* @memberof Polymer
* @polymerMixin
* @appliesMixin HighchartsPolymer.ChartBehavior
* @appliesMixin HighchartsPolymer.BaseBehavior
*/
class HighchartsChart extends HighchartsPolymer.ChartBehavior(HighchartsPolymer.BaseBehavior(PolymerElement)) {
static get is() {return "highcharts-chart"}
static get template() {return html`
${SharedStyles}
<div id="Chart" width="100%" on-click="_checkSelected"></div>
<slot></slot>
`}
static get properties() {return {
type: {type: String, value: 'line', observer: '_updateType'}
}}
ready() {super.ready();this.__createChart()}
}
window.customElements.define(HighchartsChart.is, HighchartsChart);