%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/src/public/app-assets/js/scripts/charts/echarts/advance/
Upload File :
Create Path :
Current File : /home/opti/workflow/src/public/app-assets/js/scripts/charts/echarts/advance/timeline.min.js

/*!
 * stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
 * Copyright 2018 PIXINVENT
 * Licensed under the Themeforest Standard Licenses
 */
$(window).on("load",function(){require.config({paths:{echarts:"../../../app-assets/vendors/js/charts/echarts"}}),require(["echarts","echarts/chart/bar","echarts/chart/line"],function(ec){var myChart=ec.init(document.getElementById("timeline"));chartOptions={timeline:{data:["2010-01-01","2011-01-01","2012-01-01","2013-01-01","2014-01-01"],x:10,x2:10,label:{formatter:function(s){return s.slice(0,4)}},autoPlay:!0,playInterval:3e3},options:[{grid:{x:55,x2:110,y:35,y2:100},tooltip:{trigger:"axis"},legend:{data:["GDP","Financial","Real Estate","Primary industry","Secondary industry","Third industry"]},color:["#00A5A8","#626E82","#FF7D4D","#FF4558","#28D094","#FFC400"],toolbox:{show:!0,orient:"vertical",x:"right",y:70,feature:{mark:{show:!0,title:{mark:"Markline switch",markUndo:"Undo markline",markClear:"Clear markline"}},dataView:{show:!0,readOnly:!1,title:"View data",lang:["View chart data","Close","Update"]},magicType:{show:!0,title:{line:"Switch to line chart",bar:"Switch to bar chart",stack:"Switch to stack",tiled:"Switch to tiled"},type:["line","bar","stack","tiled"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Same as image",lang:["Save"]}}},calculable:!0,xAxis:[{type:"category",axisLabel:{interval:0},data:["Paris","Budapest","Prague","Madrid","Amsterdam","Berlin","Bratislava","Munich","Hague","Rome","Milan"]}],yAxis:[{type:"value",name:"GDP(million)",max:53500},{type:"value",name:"Other(million)"}],series:[{name:"GDP",type:"bar",markLine:{symbol:["arrow","none"],symbolSize:[4,2],itemStyle:{normal:{lineStyle:{color:"orange"},barBorderColor:"orange",label:{position:"left",formatter:function(params){return Math.round(params.value)},textStyle:{color:"orange"}}}},data:[{type:"average",name:"Average"}]},data:dataMap.dataGDP[2010]},{name:"Financial",yAxisIndex:1,type:"bar",data:dataMap.dataFinancial[2010]},{name:"Real Estate",yAxisIndex:1,type:"bar",data:dataMap.dataEstate[2010]},{name:"Primary industry",yAxisIndex:1,type:"bar",data:dataMap.dataPI[2010]},{name:"Secondary industry",yAxisIndex:1,type:"bar",data:dataMap.dataSI[2010]},{name:"Third industry",yAxisIndex:1,type:"bar",data:dataMap.dataTI[2010]}]},{series:[{data:dataMap.dataGDP[2011]},{data:dataMap.dataFinancial[2011]},{data:dataMap.dataEstate[2011]},{data:dataMap.dataPI[2011]},{data:dataMap.dataSI[2011]},{data:dataMap.dataTI[2011]}]},{series:[{data:dataMap.dataGDP[2012]},{data:dataMap.dataFinancial[2012]},{data:dataMap.dataEstate[2012]},{data:dataMap.dataPI[2012]},{data:dataMap.dataSI[2012]},{data:dataMap.dataTI[2012]}]},{series:[{data:dataMap.dataGDP[2013]},{data:dataMap.dataFinancial[2013]},{data:dataMap.dataEstate[2013]},{data:dataMap.dataPI[2013]},{data:dataMap.dataSI[2013]},{data:dataMap.dataTI[2013]}]},{series:[{data:dataMap.dataGDP[2014]},{data:dataMap.dataFinancial[2014]},{data:dataMap.dataEstate[2014]},{data:dataMap.dataPI[2014]},{data:dataMap.dataSI[2014]},{data:dataMap.dataTI[2014]}]}]},myChart.setOption(chartOptions),$(function(){function resize(){setTimeout(function(){myChart.resize()},200)}$(window).on("resize",resize),$(".menu-toggle").on("click",resize)})})});

Zerion Mini Shell 1.0