4
votes

I'm trying to recreate an excel chart using Highcharts.

It's a scatter chart, with the dots for each series connected directly (not a trendline). This is the example from excel:

enter image description here

It has to be a scatter charts as the x-axis value are non-periodic (or logarithmic)

Any help gratefully appreciated!

2

2 Answers

9
votes

A very helpful Highcharts service team member provided this answer: http://jsfiddle.net/sc5Gv/4/

$(function () {
        $('#container').highcharts({
            chart:{
                type:'scatter'
            },
            plotOptions:{
                scatter:{
                    lineWidth:2
                }
            },
            series: [{
                name: 'Tokyo',
                data: [[1.5,7], [2.3,9], [4.2,5.6]]
            }, {
                name: 'New York',
                data: [[0.8,9], [2.1,6.3], [5.0, 10.1]]
            }]
        });
    });
1
votes

What kind of problem did you come across, because its default chart: