Repeating hAxis labels when slanting text - Google Charts

Viewed 2817

We are using Google Charts within an MVC project.

We have managed to get the chart implemented however we are having a slight issue.

Whenever we slant the text 90 degrees the hAxis labels are repeating (see below). enter image description here

We would like the text to be slanted at 90 degree but only have the label appear once on the hAxis (see below).

enter image description here

Things we've tried (that had no effect on the chart):

Setting the hAxis grid lines :

 hAxis: {
           slantedText: true,
           slantedTextAngle: 90,
           gridlines: {count: 7}
        },

Setting the hAxis minor grid lines:

hAxis: {
          slantedText: true,
          slantedTextAngle: 90,
          minorGridlines: { count: 5 }
       },

Is there a way we can achieve the desired result for the hAxis labels?

2 Answers
Related