Hi There,

Chart is not showing defined color in stacked bar chart. Please refer below 
code and chart screen print for your reference. Please help, thanks in 
advance.
   
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Customer', 'Feedback not Received', 'Survey 
Closed','Received','Resent', 'Saved', 'Sent', { role: 'annotation' }],
          ['ABC Corp', 10, 24, 20, 32, 18, 20,''],
        ['XYZ Ltd', 16, 22, 23, 30, 16, 22,''],
        ['Test Company Ltd', 28, 19, 29, 30, 12, 25,'']
        ]);

        var options = {
        isStacked: true,
          chart: {
            title: 'Customer, Status Wise Feedback'
            
          },
          bars: 'horizontal',
          legend:{position: 'top', textStyle: {
          color: 'black', 
          fontSize: 10,
          fontName: 'arial'
          }},
          hAxis: {minValue: 0, title: 'Status', titleTextStyle: 
          {          
          color: 'black',
            bold: true
          }},
          vAxis: {title: 'Customer', titleTextStyle: 
          {
          color: 'black',
            bold: true
          }},          
          height: 400,
          bar: { groupWidth: "70%" },
          colors: ['green', 'red', 'blue', 'gray', 'yellow', 'orange']
        };
        var chart = new 
google.charts.Bar(document.getElementById('chart_div'));
        chart.draw(data, google.charts.Bar.convertOptions(options));        
      }



<https://lh3.googleusercontent.com/-0Fji8WRkEws/Vooe_VGn5JI/AAAAAAAABkQ/fJp1KBoprfk/s1600/Capture.JPG>


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/01bac91b-ca1f-4afe-8025-b80725f65eb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to