Skip to content

Commit

Permalink
Added graph export
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Jul 16, 2020
1 parent ecb7e18 commit 76670a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- Charts -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/offline-exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>

<!-- Other libraries -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
Expand Down
14 changes: 14 additions & 0 deletions templates/graphs.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
console.log(event);
}
},
exporting: {
buttons: {
contextButton: {
menuItems: ['viewFullscreen','downloadPNG', 'downloadXLS']
}
}
},
series: [{
name: 'Total',
data: default_y
Expand Down Expand Up @@ -106,6 +113,13 @@
console.log(e);
}
},
exporting: {
buttons: {
contextButton: {
menuItems: ['viewFullscreen','downloadPNG', 'downloadXLS']
}
}
},
series: [{
name: 'Total',
data: default_y
Expand Down

0 comments on commit 76670a7

Please sign in to comment.