移除图例颜色边界 [英] Remove legend color boundary

查看:20
本文介绍了移除图例颜色边界的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下实现.它有效且功能强大.

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/

推荐答案

您可以设置 stroke ( 边框颜色 ) 与设置 fill

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

您也可以通过将 stroke 的颜色设置为无来删除它.

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

stroke: {
  color: "none"
}

stroke: {
  color: ""
}

这篇关于移除图例颜色边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆