Pratik Rawlekar
Pratik Rawlekar

Reputation: 327

Highlight a line with different color in Parallel coordinate chart with Highcharts

I wanted to a represent a line with different color which will show some special behaviour. In this example blue lines shows a normal data but I wanted to annotate a single line with red line. Is there any way to do this .?

Upvotes: 1

Views: 387

Answers (1)

ppotaczek
ppotaczek

Reputation: 39099

You can add some condition to highlight a specific series:

        series: data.map(function (set, i) {
            if (i === 10) {
                return {
                    name: 'Runner ' + i,
                    data: set,
                    shadow: false,
                    color: 'red',
                    zIndex: 1
                };
            }
            return {
                name: 'Runner ' + i,
                data: set,
                shadow: false
            };
        })

Live demo: https://jsfiddle.net/BlackLabel/17m3waLu/

Upvotes: 1

Related Questions