colouredFunk
colouredFunk

Reputation: 788

Highcharts - How do I get dashed lines in legend

I'm using a basic line graph with some of the data series having dashed lines.

{
   name: 'Country Population',
   data: [1, 2, 3, 4], dashStyle: 'longdash'
}

However I can't get the legend to reflect which lines have dashes. Ideally I want the legend to include which lines have the dashes?

http://jsfiddle.net/cbx3r91u/

Upvotes: 3

Views: 3182

Answers (1)

JBux
JBux

Reputation: 1394

Use symbolWidth to make the lines large enough to see the dashes.

symbolWidth: 40

seems to work well.

JSFiddle

Upvotes: 7

Related Questions