본문 바로가기

퍼블리싱/highchart

seriese의 특정 data만 색상 다르게 넣기 highchart series one data color differnt

See the Pen highchart series one data color differnt by publisher.kim (@publisherkim) on CodePen.

 

 

* 하이차트 전역 옵션 먼저 적용됨 (https://umings.github.io/file/highchart_common.js)

Highcharts.chart('chart', {
  xAxis: {
    categories: ["'22.09", "'22.10", "'22.11", "'22.12", "'23.01", "'23.02", "'23.03", "'23.04", "'23.05", "'23.06", "'23.07", "'23.08"],
    labels: {
      y: 20,
    },
  },
  series: [{
    name: '시리즈',
    type: 'column',
    data: [7000, 7598, 6765, 5645, 8978, 7874, 6712, 5246, 8978, 7874, 6712, {y: 5246,color: '#059f43'}],
  }]
});
728x90