File tree Expand file tree Collapse file tree 7 files changed +215
-215
lines changed Expand file tree Collapse file tree 7 files changed +215
-215
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ import {SharedStyles} from './shared-styles.js';
11
11
* @appliesMixin HighchartsPolymer.BaseBehavior
12
12
*/
13
13
class HighchartsChart extends HighchartsPolymer . ChartBehavior ( HighchartsPolymer . BaseBehavior ( PolymerElement ) ) {
14
- static get is ( ) { return "highcharts-chart" }
15
- static get template ( ) { return html `
16
- ${ SharedStyles }
17
- < div id ="Chart " width ="100% " on-click ="_checkSelected "> </ div >
18
- < slot > </ slot >
19
- ` }
20
- static get properties ( ) { return {
21
- type : { type : String , value : 'line' , observer : '_updateType' }
22
- } }
23
- ready ( ) { super . ready ( ) ; this . __createChart ( ) }
14
+ static get is ( ) { return "highcharts-chart" }
15
+ static get template ( ) { return html `
16
+ ${ SharedStyles }
17
+ < div id ="Chart " width ="100% " on-click ="_checkSelected "> </ div >
18
+ < slot > </ slot >
19
+ ` }
20
+ static get properties ( ) { return {
21
+ type : { type : String , value : 'line' , observer : '_updateType' }
22
+ } }
23
+ ready ( ) { super . ready ( ) ; this . __createChart ( ) }
24
24
}
25
25
26
26
window . customElements . define ( HighchartsChart . is , HighchartsChart ) ;
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ import {SharedStyles} from './shared-styles.js';
11
11
* @appliesMixin HighchartsPolymer.BaseBehavior
12
12
*/
13
13
class HighchartsMap extends HighchartsPolymer . BaseBehavior ( PolymerElement ) {
14
- static get is ( ) { return "highcharts-map" }
15
- static get template ( ) { return html `
16
- ${ SharedStyles }
17
- < div id ="Chart " width ="100% "> </ div >
18
- < slot > </ slot >
19
- ` }
20
- static get properties ( ) { return {
21
- type : { type : String , value : 'line' , observer : '_updateType' }
22
- } }
23
- ready ( ) { super . ready ( ) ; this . __createChart ( "Map" ) }
14
+ static get is ( ) { return "highcharts-map" }
15
+ static get template ( ) { return html `
16
+ ${ SharedStyles }
17
+ < div id ="Chart " width ="100% "> </ div >
18
+ < slot > </ slot >
19
+ ` }
20
+ static get properties ( ) { return {
21
+ type : { type : String , value : 'line' , observer : '_updateType' }
22
+ } }
23
+ ready ( ) { super . ready ( ) ; this . __createChart ( "Map" ) }
24
24
}
25
25
26
26
window . customElements . define ( HighchartsMap . is , HighchartsMap ) ;
Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ import {SharedStyles} from './shared-styles.js';
10
10
* @appliesMixin HighchartsPolymer.BaseBehavior
11
11
*/
12
12
class HighchartsStock extends HighchartsPolymer . ChartBehavior ( HighchartsPolymer . BaseBehavior ( PolymerElement ) ) {
13
- static get is ( ) { return "highcharts-stock" }
14
- static get template ( ) { return html `
15
- ${ SharedStyles }
16
- < div id ="Chart " width ="100% " on-click ="_checkSelected "> </ div >
17
- < slot > </ slot >
18
- ` }
19
- static get properties ( ) { return {
20
- type : { type : String , value : 'line' , observer : '_updateType' }
21
- } }
22
- ready ( ) { super . ready ( ) ; this . __createChart ( 'StockChart' ) }
13
+ static get is ( ) { return "highcharts-stock" }
14
+ static get template ( ) { return html `
15
+ ${ SharedStyles }
16
+ < div id ="Chart " width ="100% " on-click ="_checkSelected "> </ div >
17
+ < slot > </ slot >
18
+ ` }
19
+ static get properties ( ) { return {
20
+ type : { type : String , value : 'line' , observer : '_updateType' }
21
+ } }
22
+ ready ( ) { super . ready ( ) ; this . __createChart ( 'StockChart' ) }
23
23
}
24
24
25
25
window . customElements . define ( HighchartsStock . is , HighchartsStock ) ;
Original file line number Diff line number Diff line change 1
1
<!doctype html>
2
2
< html >
3
- < head >
4
- < meta charset ="utf-8 ">
5
- < meta http-equiv ="refresh " content ="0;url=demo/ " />
6
- < title > highcharts-chart</ title >
7
- </ head >
8
- < body >
9
- <!--
10
- Visit demo/index.html to see live examples of your element running.
11
- This page will automatically redirect you there when run in the browser
12
- with `polymer serve`.
13
- -->
14
- < script > window . location = "demo/" </ script >
15
- </ body >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta http-equiv ="refresh " content ="0;url=demo/ " />
6
+ < title > highcharts-chart</ title >
7
+ </ head >
8
+ < body >
9
+ <!--
10
+ Visit demo/index.html to see live examples of your element running.
11
+ This page will automatically redirect you there when run in the browser
12
+ with `polymer serve`.
13
+ -->
14
+ < script > window . location = "demo/" </ script >
15
+ </ body >
16
16
</ html >
Original file line number Diff line number Diff line change 1
1
{
2
- "npm" : true ,
3
- "lint" : {
4
- "rules" : [
5
- " polymer-3"
6
- ]
7
- }
2
+ "npm" : true ,
3
+ "lint" : {
4
+ "rules" : [
5
+ " polymer-3"
6
+ ]
7
+ }
8
8
}
Original file line number Diff line number Diff line change 1
1
// Shared styles of highcharts-chart for polymer 3.0
2
- import { html } from '@polymer/polymer/polymer-element.js' ;
2
+ import { html } from '@polymer/polymer/polymer-element.js' ;
3
3
4
4
export const SharedStyles = html `
5
5
< style >
6
- : host {width: 100%;dis play: inline-block;min- height: var(--highcharts-min-height , 26em)}
7
- : host [height-responsive ] {min-height : initial}
8
- : host [height-responsive ] # Chart {height : 100% }
9
- # Chart {@apply --highcharts-container}
6
+ : host {width: 100%;dis play: inline-block;min- height: var(--highcharts-min-height , 26em)}
7
+ : host [height-responsive ] {min-height : initial}
8
+ : host [height-responsive ] # Chart {height : 100% }
9
+ # Chart {@apply --highcharts-container}
10
10
</ style > `;
You can’t perform that action at this time.
0 commit comments