1

The annotations in the following Google line chart output are overlapping each other. How can I separate those?

It would be great if I can re-position the annotations like for first line (blue in the screenshot) I can bring the annotations beneath it and for the top most line put the annotations above it.

I am not sure if the above it possible without implementing any logic which I don't know! But at least if I can separate the annotations and make it clear to understand which annotation is for what, that would be excellent for now.

enter image description here

WhiteHat
  • 59,912
  • 7
  • 51
  • 133
Subrata Sarkar
  • 2,975
  • 6
  • 45
  • 85

1 Answers1

1

in the chart options, you can adjust the length of the annotation stem, per series.

to move the annotations below the line, you would use a negative stem length.

add the annotation options, to the series option...

var options = {
  series: {
    0: {  // <-- series 0
      annotations: {
        stem: {
          length: -10
        }
      }      
    },
    1: {  // <-- series 1
      annotations: {
        stem: {
          length: 10
        }
      }      
    },
    2: {  // <-- series 2
      annotations: {
        stem: {
          length: 20
        }
      }      
    }
  }
};
WhiteHat
  • 59,912
  • 7
  • 51
  • 133