ability to download results
grain209 opened this issue · 1 comments
grain209 commented
Similar functionality to the one from the Explorer's table view.
Add ability to display a "download" button under a chart.
3 download methods:
- as flattened CSV (eg https://github.com/keen/explorer/blob/99d7c33d990c155cc6fa35802e7ffa07e4fc41a6/lib/js/app/utils/csv.js )
- as JSON
- as PNG
Configuration:
new KeenDataviz({
[...] // some other options
ui: {
buttons: {
download: {
label: 'Download as a CSV file', // optinal - by default it's just "Download"
type: 'csv', // optional - by default it's JSON
position: 'bottom' // optional, to be discussed
}
}
}
})