Problem in bar layout using ng2-charts Angular2

0

I'm using the Bar Chart from ng2-charts Angular2 follows the documentation: Documentation
And I'm having to manipulate the width of the bar and I'm not getting any success ... Follow the code:
HTML:

 <canvas baseChart
        id                  ="VisaoGeral"
        [datasets]          ="barChartData"                    
        [colors]            ="chartColorsBarra"
        [labels]            ="barChartLabels"                     
        [options]           ="barChartOptions"                 
        [chartType]         ="barChartType">
 </canvas>            

Angular2

 public vetorLabels: any[] = [  { data: [ 0 , 0 ] , label: 'Series A' },   { 
 data: [0,0 ] , label: 'Series B' }];
 public vetorLabelsGraficos: any[] = [ 'x' , 'a', 'b', 'z'  ];
 public vetorCores: any[] = [ "#5093ce" , "green",  "red", "yellow"  ];

 PopularGraficos()
 {
   let cloneVisaoGeral = JSON.parse(JSON.stringify(this.barChartData));     
   let dataVisaoGeral = [ this.x, this.q, this.w, this.e];
   cloneVisaoGeral[0].data = dataVisaoGeral;
   this.barChartData = cloneVisaoGeral; 
 }

Since Ja Thanks for everyone's help

    
asked by anonymous 20.02.2018 / 14:00

0 answers