vamsi426
Posts: 15
Joined: Mon Apr 04, 2022 1:25 pm

How to remove data field from x-axis in the histogram chart

Hi team, in the link attached below, I have few minor things to remove/ modify.
1. how to remove data field(legend) under the x-axis.
2. how to change name of histogram to counts(legend) under x-axis.
3. how to add line behind y-axis , similar to x-axis ?

https://jsfiddle.net/BlackLabel/s7aeq4w6/14/

please check attached screenshot for ref
Attachments
hc.PNG
hc.PNG (11.91 KiB) Viewed 260 times
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: How to remove data field from x-axis in the histogram chart

Hi,

Thank you for contacting us with your question.

1) To remove a series from legend, set series.showInLegend to false.
https://api.highcharts.com/highcharts/s ... owInLegend
2) To change the name in the legend, just simply change the series name in series.name
https://api.highcharts.com/highcharts/s ... ogram.name
3) I'm not sure where you would like to add your line. You can use the plotLine option or our Highcharts.SVGRenderer to create custom shapes on the chart. If these options do not satisfy you, please take a screenshot of the chart and show me where would you like to have your line, and I'll do my best to help you.

Take a look at the modified demo below:
https://jsfiddle.net/BlackLabel/1nhv0ty3/

Do not hesitate to contact us with any further questions,
Kind regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”