britzbay
Posts: 1
Joined: Sun Mar 21, 2021 8:30 am

Value as Series Name in Heatmaps

Hi Everyone,

In Heatmaps, when I pass the data for series, I need to parse the series name from Value it self.
Example:

Code: Select all

 
 {value=CORING, x=2020-09-05 05:00:00.0, y=0},
 {value=CORING, x=2020-09-05 05:00:00.0, y=1},
 {value=SAND, x=2020-09-05 05:00:00.0, y=2},
 {value=SAND, x=2020-09-05 05:00:00.0, y=3}, 
 {value=Air, x=2020-09-05 05:00:00.0, y=4},
 {value=Air, x=2020-09-05 05:00:00.0, y=5},
 {value=Mud, x=2020-09-05 05:00:00.0, y=6},
 {value=Mud, x=2020-09-05 05:00:00.0, y=7}, 
 {value=Mud, x=2020-09-05 05:00:00.0, y=8}
when I pass the above Json data, there is different colors for different values. Is there any way, so that I can pass the series name same as value so that I can see them in legend and color by value.
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Value as Series Name in Heatmaps

Hello @britzbay,

Thank you for contacting us!

I don't fully understand your problem, so could you describe it in more details? It would be best if you prepare a live example in some online code editor. You can start from: http://jsfiddle.net/BlackLabel/6v27Lzfe/

Best regards!
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”