admin管理员组文章数量:1122832
for heatmap like that where we show max value per row enter image description here we use
"fill": [
{
"test": "datum['MySumma'] == datum['max']",
"value": "white"
}
maybe it's not good, so please give an idea how to do it better, but if it's ok then we need something like
"fill": [
{
"test": "contrast('white', datum.fill) > contrast('black', datum.fill)",
"value": "white"
},
{"value": "black"}
]
so the question is: how instead of "value": "white" from first snippet use test contrast from second snippet?
i've read vega site but can't find a solution
本文标签: vega mark text fill condition based on another conditionStack Overflow
版权声明:本文标题:vega mark text fill condition based on another condition - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307867a1933459.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论