使用highchart-ng更改图例颜色

时间:2015-06-18 12:04:49

标签: highcharts-ng

我想在高图中更改图例颜色。我使用过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代码是

0 个答案:

没有答案