Skip to content
Snippets Groups Projects
Commit 820837b6 authored by mperezsa's avatar mperezsa
Browse files

Upload New File

parent f27068cc
No related branches found
No related tags found
No related merge requests found
define(["highcharts","highcharts/highcharts-3d","highcharts/highcharts-more","highcharts/modules/heatmap","highcharts/modules/exporting","highcharts/modules/export-data","highcharts/modules/accessibility","highcharts/modules/no-data-to-display"],function(t){return{template:'<div v-bind:id="container"></div>',props:["container","chart","lang","test"],data:()=>({}),mounted(){let o=this;this.lang&&t.setOptions({lang:this.lang,credits:{enabled:!1},exporting:{buttons:{contextButton:{menuItems:[{text:this.lang.downloadPNG,onclick:function(){this.exportChart({type:"image/png"}),o.$parent.$root.addLogsIntoDB("downloaded",o.$el.id,"chart","A chart")}},{text:this.lang.downloadJPEG,onclick:function(){this.exportChart({type:"image/jpeg"}),o.$parent.$root.addLogsIntoDB("downloaded",o.$el.id,"chart","A chart")}},{text:this.lang.downloadPDF,onclick:function(){this.exportChart({type:"application/pdf"}),o.$parent.$root.addLogsIntoDB("downloaded",o.$el.id,"chart","A chart")}},{text:this.lang.downloadSVG,onclick:function(){this.exportChart({type:"image/svg+xml"}),o.$parent.$root.addLogsIntoDB("downloaded",o.$el.id,"chart","A chart")}},{text:this.lang.downloadXLS,onclick:function(){this.downloadXLS(),o.$parent.$root.addLogsIntoDB("downloaded",o.$el.id,"chart","A chart")}},{text:this.lang.downloadCSV,onclick:function(){this.downloadCSV(),o.$parent.$root.addLogsIntoDB("downloaded",o.$el.id,"chart","A chart")}}],symbol:"menuball",symbolStroke:"#118AB2"}}}}),this._highchart=t.chart(this.container,this.chart);let a=this._highchart.legend.allItems,n="",e="",d="",h="";a.forEach(t=>{t.legendGroup.element.addEventListener("click",function(){n="filtered",e=o.$el.id,d="chart",h="Filtered a part of the "+e+" chart","function"==typeof o.$parent.$root.addLogsIntoDB&&o.$parent.$root.addLogsIntoDB(n,e,d,h)})})}}});
//# sourceMappingURL=chartstatic.min.js.map
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment