How can you have more than 10 colors represented in the graph and legend in highcharts?

StackOverflow https://stackoverflow.com/questions/17604087

  •  02-06-2022
  •  | 
  •  

문제

I currently have 12 lines representing 12 different people in a spline graph. I noticed that once it goes beyond ten, the colors and shapes repeat. This makes it hard to distinguish between different people. In the future I will probably have more than 12, which will make this default behavior an even bigger problem.

Is there any way to extend the default number or perhaps to decide on the colors for a pre-set number of people beforehand? This last option would not be ideal if it couldn't be responsive to dynamic numbers of people.

도움이 되었습니까?

해결책

YOu can define colors in array: http://api.highcharts.com/highcharts#colors

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top