在Spiderweb上发表Highchaert填充不透明度和图例颜色 [英] Issue on Highchaert Fill Opacity and Legend Color on Spiderweb

查看:117
本文介绍了在Spiderweb上发表Highchaert填充不透明度和图例颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可以看看这个演示并告诉我:

1-为什么Legend Color仍然显示线条颜色,而我已经将图表类型更改为:

Can you please take a look at this demo and let me know :
1- why the Legend Color still showing the lines color while I already changed the chart type to :

type: 'area'

并为该系列填充颜色为:

and fill color for the series as:

fillColor: 'yellow',



<2>我不是也设置不透明的工作。正如你在下面的代码中看到的那样:

2- I am not also set the opacity working. As you can see in the following code:

 series: [{
        name: 'Allocated Budget',
        data: [43000, 19000, 60000, 35000, 17000],
        pointPlacement: 'on',
        fillColor: 'red',
        fillOpacity: 0.2
    }, {
        name: 'Actual Spending',
        data: [50000, 39000, 42000, 31000, 26000],
        pointPlacement: 'on',
        fillColor: 'yellow',
        fillOpacity: 0.2
    }]

我使用 fillOpacity:0.2 有一个半透明的区域,但它没有工作

I used the fillOpacity: 0.2 to have a semi transparent area but it didn't work

推荐答案


  1. 因为您已经设置了 fillColor 而不是 color 。设置 color 可以改变图例的颜色。 code> #XXYYZZ 颜色。

  1. Because you have set fillColor not color. Set color to change color in legend.
  2. fillOpacity works only with #XXYYZZ colors.

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

这篇关于在Spiderweb上发表Highchaert填充不透明度和图例颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆