Anychart DataArea背景笔画部分不可见

问题描述 投票:0回答:1

我想在图表的数据区域周围绘制边框。因此,我使用chart.dataArea().background().stroke(),但笔划部分隐藏在数据区域的背景填充颜色的后面。

请参见此游乐场示例:https://playground.anychart.com/LfsMXtpR

当然,我可以使其更厚,但是我希望它周围的厚度相同。我认为描边不应被背景填充隐藏。

谢谢。

charts background fill stroke anychart
1个回答
0
投票

原因是yAxis具有比数据区域更大的zIndex。您可以减少yAxis zIndex来解决它,请检查the modified sample

© www.soinside.com 2019 - 2024. All rights reserved.