echarts icon indicating copy to clipboard operation
echarts copied to clipboard

echarts 画饼图的时候会会出现白边,两个色块之间会有缝隙

Open shangxinbo opened this issue 10 years ago • 3 comments

两个扇形之间会有白色的间隙,就是背景色,,很难看,怎么样才能去掉之间的缝隙

shangxinbo avatar May 23 '16 08:05 shangxinbo

请具体描述代码,环境,效果截图

pissang avatar May 23 '16 10:05 pissang

官方的demo就有这种效果,随意找一个饼图,白背景不明显,把背景色改成黑色就会出现很清晰的黑边,这里不能上传截图

shangxinbo avatar May 23 '16 10:05 shangxinbo

            series: [
              {
                  type: "pie",
                  radius: "65%",
                  itemStyle: {
                      normal: {
                          borderColor: '#fff',
                          borderWidth: '1'
                      },
                      emphasis: {
                          borderColor: '#fff',
                          borderWidth: '1'
                      }
                  },

... 会出现白边,borderWidth:'0', 就会消除白边。

Hongmei225 avatar May 23 '16 10:05 Hongmei225