我正在使用highchart来创建一个蜘蛛网图表。我想添加一个填充颜色和透明度像我已经添加了下面的图像。我已经尝试了以下代码。但这并不工作。Using this chart
3hvapo4f1#
对于面积系列,需要使用chart.backgroundColor、series.color和series.fillOpacity。例如:
chart.backgroundColor
series.color
series.fillOpacity
chart: { polar: true, type: 'line', backgroundColor: '#07292c' }, series: [{ color: '#30bb00', fillOpacity: 0.2, type: 'area', ... }, { color: '#71c6d1', ... }, { color: '#d1be75', ... }]
现场演示:https://jsfiddle.net/BlackLabel/t7mkvq1u/API参考:
https://api.highcharts.com/highcharts/chart.backgroundColorhttps://api.highcharts.com/highcharts/series.area.fillOpacity
1条答案
按热度按时间3hvapo4f1#
对于面积系列,需要使用
chart.backgroundColor
、series.color
和series.fillOpacity
。例如:现场演示:https://jsfiddle.net/BlackLabel/t7mkvq1u/
API参考:
https://api.highcharts.com/highcharts/chart.backgroundColor
https://api.highcharts.com/highcharts/series.area.fillOpacity