Victor Udeshi
Victor Udeshi

Reputation: 33

How to hide line but keep data labels in highcharts

How to hide line but keep data labels in highcharts? I have a column line chart in jaspersoft and I want to remove the line but keep the dataLabels. I tried making the width 0 and changing the color to match the background but that didn't work.

Chart

enter image description here

Upvotes: 0

Views: 663

Answers (1)

Sebastian Wędzel
Sebastian Wędzel

Reputation: 11633

To hide the line - set the lineWidth as 0 & to hide markers - set the marker.enabled as false in the series config.

Demo: https://jsfiddle.net/BlackLabel/pj9Ls1uk/

API: https://api.highcharts.com/highcharts/series.line.marker.enabled

API: https://api.highcharts.com/highcharts/series.line.lineWidth

Upvotes: 0

Related Questions