Highmaps区域的边框颜色

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

我在我的一个基于Web的应用程序中使用Highmaps。到目前为止,很容易根据我的用例修改它,但现在我需要更改区域的边框颜色,我无法做到。

代码我试过但失败了:

chart: {
                plotBorderColor: '#ffffff',
                borderColor: "#ffffff",
       }

请参阅附图我想要实现的目标

想要将轮廓颜色更改为白色

http://jsfiddle.net/qLen614m/

css highcharts highmaps
3个回答
2
投票

您可以使用stroke元素的path属性:

path {
    stroke: white;
}

1
投票

可以选择为地图系列设置边框颜色。它是borderColor,应该串联设置。

series : [{
                borderColor: 'white',
...

API link

示例:http://jsfiddle.net/qLen614m/1/


0
投票

您应该使用borderWidth属性进行系列化。

每个地图区域的边框宽度。

series: [{
        borderWidth: 2
    }]

这是official demo

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