shifu
shifu

Reputation: 670

Setting color on label gridline Highcharts

Is there a way to change the color of a line on my label? enter image description here

Here is my code:

  xAxis: {
    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    lineColor: '#FF0000',
    labels:{
        lineColor: '#FF0000',
    },
    gridLineColor: 'red',
  },

  yAxis: {
    lineColor: '#FF0000',
    lineWidth: 1,
    labels:{
    x: -50,
    }
  },

For reference: http://jsfiddle.net/vq1tqhrs/

Upvotes: 1

Views: 37

Answers (1)

ewolden
ewolden

Reputation: 5803

You need to set tickColor, like this:

xAxis: {
  tickColor: 'red'
  ...
}

Working example: http://jsfiddle.net/ewolden/vq1tqhrs/1/

Upvotes: 1

Related Questions