Naguib Ihab
Naguib Ihab

Reputation: 4496

Highcharts: How to hide the text from legends

What I'm after is showing only the colors of the series in the legends and hiding all the text while keeping the title in the series data so it would come in the tool tip.

Through using labelFormatter this (fiddle) is the closest I got to doing it, when I remove the text however it allows the legends to overlap.

Eventually, just showing the colors of the legends and not the legends' text itself is the result I'm after, i.e: enter image description here

Upvotes: 0

Views: 471

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222522

Set,

itemStyle: {
        display: 'none',
      }

and remove

layout: 'vertical',

DEMO

Upvotes: 1

Related Questions