Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.

Total labels overlaps series labels

Numbers are overlapping when using option 'Show data label' on any stacked visual, including bars, area, and lines


as of this post Since 2020 this is a problem

0 1 18
1 REPLY 1

You can use the Chart Config Editor to specify where you want the data labels to be positioned. For example, if you have 3 series, the following code would move the position of the data values for the 1st series so they were 20 pixels higher:

  // Series 1 = the first column in the data table
  series: [{ // series 1
    dataLabels: {
      enabled: true,
      x: 0, // offset the horizontal position of label
      y: -20, // offset the vertical position of label
    }
  }, { // series 2
    dataLabels: {
      enabled: true,
    }
  }, { //series 3
    dataLabels: {
      enabled: true,
    }
  }],

 

Top Labels in this Space
Top Solution Authors