# echart_echartformat

name: 柱形图
remark: .
owner: system
update_time: 2020-11-29 04:26:00.048783
option_format:
  //select 维度,维度,值

  var series =[];
  var dataset = __dataset__;
  for (var i=1;i<dataset[0].length;i++){
      series.push({type: 'bar'})
  }

  option__name__= {
      legend: {},
      tooltip: {},
  dataset:{source:dataset },
      xAxis: {
          type: 'category',
      },
      yAxis: {
          type: 'value'
      },
      series: series
  };
  charts.push(myChart__name__);

option_format_x:
  var series=[];var dataset={dataset};for(var i=1;i<dataset[0].length;i++){{series.push({{type:'bar'}})}}
  option{name}={{legend:{{}},tooltip:{{}},dataset:{{source:dataset}},xAxis:{{type:'category',}},yAxis:{{type:'value'}},series:series}};charts.push(myChart{name});


name: 表格
remark: .
owner: system
update_time: 2020-11-29 04:26:00.052791
option_format:
  let dataset=__dataset__;
  let table = '<table class="table">';
  table += "<thead><tr>";
  for(let j=0; j<dataset[0].length;j++){
    table = table + "<td>" + dataset[0][j] + "</td>";
  };
  table += "</thead></tr>";
  table += "<tbody>";
   for(let i=1;i<dataset.length;i++){
   if(i%2==0){
    table += "<tr>";}
   else{table += "<tr class='info'>"};
    for (j=0; j<dataset[i].length;j++){
     table = table + "<td>" + dataset[i][j] + "</td>";
    };
    table += "</tr>";
   };
   table += "</tbody></table>";
  dom__name__.innerHTML=table;

option_format_x:
  let dataset={dataset};let table='<table class="table">';table+="<thead><tr>";for(let j=0;j<dataset[0].length;j++){{table=table+"<td>"+dataset[0][j]+"</td>";}};table+="</thead></tr>";table+="<tbody>";for(let i=1;i<dataset.length;i++){{if(i%2==0){{table+="<tr>";}}
  else{{table+="<tr class='info'>"}};for(j=0;j<dataset[i].length;j++){{table=table+"<td>"+dataset[i][j]+"</td>";}};table+="</tr>";}};table+="</tbody></table>";dom{name}.innerHTML=table;


name: 线形图
remark: .
owner: system
update_time: 2020-11-29 04:26:00.055917
option_format:
  //select 维度,维度,值

  var series =[];
  var dataset = __dataset__;
  for (var i=1;i<dataset[0].length;i++){
      series.push({type: 'line'})
  }

  option__name__= {
      legend: {},
      tooltip: {},
  dataset:{source:dataset },
      xAxis: {
          type: 'category',
      },
      yAxis: {
          type: 'value'
      },
      series: series
  };
  charts.push(myChart__name__);

option_format_x:
  var series=[];var dataset={dataset};for(var i=1;i<dataset[0].length;i++){{series.push({{type:'line'}})}}
  option{name}={{legend:{{}},tooltip:{{}},dataset:{{source:dataset}},xAxis:{{type:'category',}},yAxis:{{type:'value'}},series:series}};charts.push(myChart{name});


name: 饼图
remark: .
owner: system
update_time: 2020-11-29 04:26:00.060872
option_format:
  //select 指标名, 值

  var dataset = __dataset__; //传入dataset
  legend_label = ds_rowname(dataset) //可选, 自动获取legend
  var series =[];
  for (var i=1;i<dataset.length;i++){
      series.push({name: dataset[i][0],value: dataset[i][1]})
  }

  option__name__ = {
     // backgroundColor: '#2c343c',

      title: {
          text: dataset[0][1],
          left: 'center',
          top: 20,
          textStyle: {
        //      color: '#ccc'
          }
      },
      tooltip : {
          trigger: 'item',
          formatter: "{b} <br/>{c} ({d}%)"
      },

      visualMap: {
          show: false,
          min: 80,
          max: 600,
          inRange: {
      //        colorLightness: [0, 1]
          }
      },
      series : [
          {
              name:dataset[0][1],
              type:'pie',
              radius : '55%',
              center: ['50%', '50%'],
              roseType: 'radius',
              label: {
                  normal: {
                      textStyle: {
                    //      color: 'rgba(255, 255, 255, 0.3)'
                      }
                  }
              },
              labelLine: {
                  normal: {
                      lineStyle: {
                     //     color: 'rgba(255, 255, 255, 0.3)'
                      },
                      smooth: 0.2,
                      length: 10,
                      length2: 20
                  }
              },
              itemStyle: {
                  normal: {
                  //    color: '#8B2500',
                   //   shadowBlur: 200,
                   //   shadowColor: 'rgba(0, 0, 0, 0.5)'
                  }
              },

              animationType: 'scale',
              animationEasing: 'elasticOut',
              animationDelay: function (idx) {
                  return Math.random() * 200;
              },
              data: series
          }
      ]
  };
  charts.push(myChart__name__);

  //动态播放
  startSelectAnimate(myChart__name__,legend_label.length,1000,1);

option_format_x:
  var dataset={dataset};legend_label=ds_rowname(dataset)
  var series=[];for(var i=1;i<dataset.length;i++){{series.push({{name:dataset[i][0],value:dataset[i][1]}})}}
  option{name}={{title:{{text:dataset[0][1],left:'center',top:20,textStyle:{{}}}},tooltip:{{trigger:'item',formatter:"{{b}} <br/>{{c}} ({{d}}%)"}},visualMap:{{show:false,min:80,max:600,inRange:{{}}}},series:[{{name:dataset[0][1],type:'pie',radius:'55%',center:['50%','50%'],roseType:'radius',label:{{normal:{{textStyle:{{}}}}}},labelLine:{{normal:{{lineStyle:{{}},smooth:0.2,length:10,length2:20}}}},itemStyle:{{normal:{{}}}},animationType:'scale',animationEasing:'elasticOut',animationDelay:function(idx){{return Math.random()*200;}},data:series}}]}};charts.push(myChart{name});startSelectAnimate(myChart{name},legend_label.length,1000,1);


# echart_echartreportsetup

div_format:
  <div class="col-xs-12 col-md-12" style="padding:0.5% 0.5%;" >
    <div style="height:50%;" id="container_{name}"></div>
  </div>


# django_session

session_key: lr6o4vreez1kmb5cvwghouz64rk3fqr8
expire_date: 2020-12-13 04:25:16.087516
session_data:
  .eJxVjDkOwjAUBe_iGln-JrENJT1nsPw3HECxlKVC3B0ipYD2zcx7mVzWpeZ1likPbM4GzOF3w0IPGTfA9zLemqU2LtOAdlPsTmd7bSzPy-7-HdQy12_dA4N2XYQUXCDuJTIJQZLQKaGWlI5OtVfHGBmDhFMU5wFQEWL03rw_9oQ4Zw:1kjEGy:bv4vYCL7zVLS2U9XJlV01aqQoIbpkZuYm-U1nynfoTI


session_key: zpcrcx8hy1mkmiwltg4m4oz7ecvk0g5b
expire_date: 2020-12-13 04:30:58.475552
session_data:
  .eJxVjDkOwjAUBe_iGln-JrENJT1nsPw3HECxlKVC3B0ipYD2zcx7mVzWpeZ1likPbM4GzOF3w0IPGTfA9zLemqU2LtOAdlPsTmd7bSzPy-7-HdQy12_dA4N2XYQUXCDuJTIJQZLQKaGWlI5OtVfHGBmDhFMU5wFQEWL03rw_9oQ4Zw:1kjEMU:mQeMve8IPtTz9JVJwJeJNUHifaQRWsrd0EuH-S4oiGo


session_key: fojonk13hpo17w4hajv48dzjbofzzqjm
expire_date: 2020-12-15 13:54:22.487698
session_data:
  .eJxVjDkOwjAUBe_iGln-JrENJT1nsPw3HECxlKVC3B0ipYD2zcx7mVzWpeZ1likPbM4GzOF3w0IPGTfA9zLemqU2LtOAdlPsTmd7bSzPy-7-HdQy12_dA4N2XYQUXCDuJTIJQZLQKaGWlI5OtVfHGBmDhFMU5wFQEWL03rw_9oQ4Zw:1kjycI:PnGd2pTzdyru_bAtBSEjWcLomsRLtz8vsW5k5ZBgJCA


session_key: ejkz3jp6e5n7tj30e1hhs8yrxcwem3kv
expire_date: 2020-12-24 21:31:48.140579
session_data:
  .eJxVjDkOwjAUBe_iGln-JrENJT1nsPw3HECxlKVC3B0ipYD2zcx7mVzWpeZ1likPbM4GzOF3w0IPGTfA9zLemqU2LtOAdlPsTmd7bSzPy-7-HdQy12_dA4N2XYQUXCDuJTIJQZLQKaGWlI5OtVfHGBmDhFMU5wFQEWL03rw_9oQ4Zw:1knM2u:ntBdjh5s5wOmIe16rpUh7_sAu2yJSYUz4A-vAEtlRok


session_key: crk01b58721kismmfi8v5vfvq5n5d2vp
expire_date: 2020-12-24 23:25:06.734408
session_data:
  .eJxVjDkOwjAUBe_iGln-JrENJT1nsPw3HECxlKVC3B0ipYD2zcx7mVzWpeZ1likPbM4GzOF3w0IPGTfA9zLemqU2LtOAdlPsTmd7bSzPy-7-HdQy12_dA4N2XYQUXCDuJTIJQZLQKaGWlI5OtVfHGBmDhFMU5wFQEWL03rw_9oQ4Zw:1knNoY:4BVPuOcnfmBug2YWjkKaB2Eq3hPRX7_9CUqxwGj1dSc


