highcharts 饼图常用设置项

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26769677/article/details/80229195

highcharts 饼图常用设置项

 legend: {
    enabled: false,      //不显示图例
    /* layout: 'vertical',   //图例布局:竖直方向排列
     backgroundColor: '#fff',  //图例背景颜色
     borderRadius: '5',   //图例背景边框圆角
     maxHeight: 200,     // 最大高度
     lineHeight: 200,    // 行高
     padding: 0,      //内边距
     itemMarginTop: 20,    //图例每行举上高度
     squareSymbol: true,
     x: 0,          //x,y设置图例位置
     y: 0,
     align: 'left',   //居左显示
     */    
  },
plotOptions: {
       pie: {
            size:90,   //饼图外圈直径大小
            innerSize: '40',  //饼图的内圈直径大小

        }
    },
 tooltip: {
        headerFormat: '{series.name}<br>',
         pointFormat: '{point.name}: <b>{point.percentage:.2f}%</b>'  ///小数点保留位数
     },
chart: {

    marginLeft: 170,    //饼图距左距离

   },

猜你喜欢

转载自blog.csdn.net/qq_26769677/article/details/80229195
今日推荐