Skip to content

Commit

Permalink
Merge branch 'graphs_insights_issues' into 'master'
Browse files Browse the repository at this point in the history
Graphs insights issues

See merge request mistio/polyana-dashboard!34
  • Loading branch information
d-mo committed Nov 16, 2017
2 parents 05c844b + 0e6df93 commit c3bed5c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polyana-dashboard",
"version": "0.3.5",
"version": "0.4.0",
"authors": [
"Dimitris Moraitis <[email protected]>",
"Christina Papakonstantinou <[email protected]>"
Expand Down
1 change: 0 additions & 1 deletion dashboard-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="import" href="../iron-ajax/iron-ajax.html">
<link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html">

<script src="../echarts/dist/echarts.js"></script>
<script src='../moment/min/moment.min.js'></script>
<script src='../timerange-picker/relative.time.parser.js'></script>

Expand Down
1 change: 1 addition & 0 deletions echarts-import.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="../echarts/dist/echarts.min.js"></script>
11 changes: 10 additions & 1 deletion polyana-dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,16 @@
},

attached: function() {
console.debug('dashboard attached');
if (typeof echarts == 'undefined'){
this.importHref(this.resolveUrl('echarts-import.html'), this.initDashboard, function(e) {
console.error('Failed to load echarts', e);
}, true);
} else {
this.initDashboard();
}
},

initDashboard: function(){
moment = initializeMomentRelative(moment);
this._updateDashboard();
},
Expand Down

0 comments on commit c3bed5c

Please sign in to comment.