Removing the white line between slices in Flot pie chart

后端 未结 1 1312
予麋鹿
予麋鹿 2021-01-19 06:35

How can I remove the white line between slices and background in Flot pie chart?

My jsfiddle

<
相关标签:
1条回答
  • 2021-01-19 07:29

    You can add the STROKE Property

    pie: {               
      radius: 0.2,  
      innerRadius: 0.125,
      show: true,
      stroke: { 
          width: 0.1
      }
    }
    

    Set the value to 0 totally hide the pie.

    So you could also add a stroke color, with the value set to the same color as your background :

    pie: {
        radius: 0.2,
        innerRadius: 0.125,
        show: true,
        stroke: {
            width: 0.1,
            color: '#808080'
        }
    }
    

    See the Fiddle : http://jsfiddle.net/hSmVH/

    0 讨论(0)
提交回复
热议问题