Issue on Highchaert Fill Opacity and Legend Color on Spiderweb

こ雲淡風輕ζ 提交于 2019-12-13 05:03:54

问题


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- 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
    }]

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


回答1:


Answers for you:

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

Example: http://jsfiddle.net/przJs/1/



来源:https://stackoverflow.com/questions/24739632/issue-on-highchaert-fill-opacity-and-legend-color-on-spiderweb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!