0

我想在高图中更改图例颜色。我使用了 highchart-ng,下面的代码不起作用,请帮助我

            scope.dvBarChartNG = {      
                options: {
                    chart: {
                        type: 'column',
                        backgroundColor: '#ffffff'
                    }
                },           
                xAxis: {

                },
                yAxis: {

                },                
                plotOptions: {
                    column: {
                        pointPadding: 0.2,
                        borderWidth: 0
                    },
                },
                *legend: {
                    itemStyle: {                            
                        'color' : '#000'
                    },
                    itemHoverStyle: {
                        'color' : '#000'
                    },
                    itemHiddenStyle: {  
                        'color' : '#000'
                    }
                },*
                series: [{
                    name: 'xxxx',
                    data: scope.yyyy.series.user,           
                    color: '#cfffac',
                    borderColor: "#cfffac",
                    showInLegend: true
                }, {
                    name: 'xxxx',
                    data: scope.yyyy.series.entity,
                    color: '#82c84c',
                    borderColor: "#82c84c",
                    showInLegend: true
                }]
            };

我的html代码是

4

0 回答 0