Remove legend color boundary

巧了我就是萌 提交于 2019-12-02 18:53:44

问题


I have the following implementation. It works and functional.

However, I want to remove legend color boundary which is black. I could not able to figure out how?

 var marker = new kendo.drawing.Path({
    fill: {
        color: color
    }
  }).moveTo(10, 0).lineTo(10, 10).lineTo(0, 10).lineTo(0,0).close();

http://jsfiddle.net/1ost124j/3/


回答1:


You can set the stroke ( border color ) same as you set the fill

var marker = new kendo.drawing.Path({
  fill: {
    color: color
  },
  stroke: {
    color: color
  }
}).moveTo(10, 0).lineTo(10, 10).lineTo(0, 10).lineTo(0,0).close();

You could also remove the stroke by setting its color to none.

stroke: {
  color: "none"
}

or

stroke: {
  color: ""
}


来源:https://stackoverflow.com/questions/30675620/remove-legend-color-boundary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!