Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何在 extjs 中自定义柱形图的形状?默认情况下,顶部边缘或角的柱形图显示为平坦的。我想用圆角显示它的顶部边缘。
任何帮助将不胜感激。
谢谢
如果不重写条形图代码的某些部分,我认为您无法做到这一点。您可以为系列定义渲染器,如下所示:
series: [{ renderer: function(sprite, record, barAttr, index, store){ barAttr.radius=5; return barAttr; }, ...
但这会使所有的角落都变圆。条形图的 sprite 类型在 Bar.js drawSeries 中硬编码为“rect”,这不能是半圆的。您可能想用“路径”精灵重写它。很想知道更好的解决方案..