Sha256: c0980774d15c0bd5fe2e82c3dce5bd11163d9f38f55426820a9bb13a076768b7

Contents?: true

Size: 1.97 KB

Versions: 1

Compression:

Stored size: 1.97 KB

Contents

<div class="row">
  <div class="col-md-12">
    <!-- BEGIN EXAMPLE TABLE PORTLET-->
    <div class="portlet light bordered">
      <div class="portlet-title">
        <div class="caption">
          <i class="icon-bar-chart font-green-haze"></i>
          <span class="caption-subject bold uppercase font-green-haze"> 统计分析</span>
        </div>
        <div class="tools">
          <a href="javascript:;" class="collapse">
          </a>
        </div>
      </div>
      <div class="portlet-body">
        <div class="row">
          <div class="col-md-12">
            <div id="main" style="height: 400px;"></div>
          </div>
        </div>
      </div>
    </div>
    <!-- END EXAMPLE TABLE PORTLET-->
  </div>
</div>
<script type="application/javascript" src="/echarts3/echarts.min.js"></script>
<script type="text/javascript">
  var myChart = echarts.init(document.getElementById('main'));
  var option = {
    title : {
      text: '某站点用户访问来源',
      x:'center'
    },
    tooltip : {
      trigger: 'item'
    },
    legend: {
      orient : 'vertical',
      x : 'left',
      data: <%= raw @category_names %>,
      textStyle:{
        color: '#000000'
      }
    },
    toolbox: {
      show : true,
      feature : {
        mark : {show: true},
        dataView : {show: true, readOnly: true},
        magicType : {
          show: true,
          type: ['pie'],
          option: {
            funnel: {
              x: '25%',
              width: '50%',
              funnelAlign: 'left'
            }
          }
        },
        restore : {show: true},
        saveAsImage : {show: true}
      }
    },
    calculable : true,
    series : <%= raw @series %>
  }
  for(var i=0; i<option.series.length; i++){
    option.series[i].roseType = 'area';
  }

  myChart.setOption(option);

  function eConsole(param) {
    console.log(param);
  }

  myChart.on("click", eConsole);
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin-sys-1.1.0 plugins/report/app/views/templates/echarts3/one_ndgr.html.erb