Remove legend color boundary

2019-03-03 09:40发布

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();

enter image description here

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

1条回答
甜甜的少女心
2楼-- · 2019-03-03 10:44

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: ""
}
查看更多
登录 后发表回答