javascript - Highcharts - Guage - 改变中心黑点(圆)的颜色和半径

标签 javascript jquery css highcharts

http://jsfiddle.net/fwxbfu1u/2/

这是 highcharts 量图的 jsfiddle。我试图更改所有选项并自定义图表。但是想不出改变中心点的半径和颜色的方法。

如下图所示

In this example .. how do i change the color and radius of the centre black dot.?

enter image description here

最佳答案

您可以使用 plotOptions,请参阅下面的链接

plotOptions: {
            gauge: {
                pivot: {
                    radius: 10,
                    borderWidth: 1,
                    borderColor: 'gray',
                    backgroundColor: {
                        linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
                        stops: [
                            [0, 'white'],
                            [1, 'gray']
                        ]
                    }
                }
            }
        },

http://jsfiddle.net/fwxbfu1u/8/

关于javascript - Highcharts - Guage - 改变中心黑点(圆)的颜色和半径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28274507/

相关文章:

javascript - 使用 JavaScript 将按钮按下情况传达给另一个页面?

javascript - 使用 React hooks 将 setState 传递给子组件

javascript - 加载youtube视频后打开网站

javascript - jquery 名称选择器在 ie6 中不起作用

php - 为什么将字符串中的加号替换为空格

html - 样式化嵌入对象中的 SVG

html - 加载大量图像并将前 100 张设置为可见

javascript - 将多个属性更改绑定(bind)到 Backbone.js 模型的正确方法

jquery - 添加、添加 添加到购物袋 onclick 按钮状态

javascript - 这是依赖于浏览器的 javascript 代码吗?