返回顶部

收藏

jsplot示例

更多
:javascript
      series = [ [['I?laidos', #{money(expense_total.abs)}], ['Pajamos', #{money(revenue_total.abs)}] ]]
      labels = ["I?laidos (#{money(expense_total.abs)} Lt)", "Pajamos (#{money(revenue_total.abs)} Lt)"]
      $.jqplot('chart', series, {
          seriesDefaults: {
            seriesColors: ['#ff8000', '#ADC042'],
            renderer:$.jqplot.PieRenderer,
            rendererOptions: {
              showDataLabels: true,
              dataLabels: 'value'
            }
          },
          legend: { 
            show:true, 
            location: 'e', 
            labels: labels,
            fontSize: '12pt',
            rowSpacing: "0",
            placement: 'outside'
          }
        });

标签:javascript

收藏

0人收藏

支持

0

反对

0

发表评论