0

I want to change legend color in highchart. I have used highchart-ng, the below code its not working, Please help me

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

my html code is

Himanshu
  • 4,327
  • 16
  • 31
  • 39
Jeyabalan
  • 33
  • 6
  • the above asking my question is not properly rendered. my html code is – Jeyabalan Jun 18 '15 at 12:19
  • Finally i got a sollution options: { chart: { type: 'column', backgroundColor: '#ffffff' }, legend: { itemStyle: { 'color' : '#000' }, itemHoverStyle: { 'color' : '#000' }, itemHiddenStyle: { 'color' : '#000' } } } – Jeyabalan Jun 18 '15 at 12:47
  • Awesome I was also stuck here , your solution helped me :) – BhagyashriK Jun 29 '15 at 09:26

0 Answers0