Set chart type for different series

Description

The following code shows how to set chart type for different series.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!--from   w ww.  j av  a 2 s.c  om-->
    $('#container').highcharts({

        series: [{

            data: [-1, 13, 2, 4, -15, 4, -6, 12, 3, -15, 6].reverse(),
            pointStart: Date.UTC(2010, 0),
            pointInterval: 31 * 24 * 36e5,
            color: '#FF0000',
            negativeColor: '#0088FF'
        }, {
            name: 'Area',
            type: 'area',
            data: [-1, 13, 2, 4, -15, 4, -6, 12, 3, -15, 6],
            pointStart: Date.UTC(2011, 0),
            pointInterval: 30 * 24 * 36e5,
            color: '#FF0000',
            negativeColor: '#0088FF'
        }, {
            name: 'Column',
            type: 'column',
            data: [-6.4, -5.2, -3.0, 5.1, 0.9, -1.1, -4.0],
            pointStart: Date.UTC(2012, 0),
            pointInterval: 30 * 24 * 36e5,
            color: '#FF0000',
            negativeColor: '#0088FF'
        }]
    });  
});
</script>
</head>
<body>
  <script src="http://code.highcharts.com/highcharts.js"></script>
  <div id="container" style="height: 400px"></div>
  
</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Series »




Series
Series Color
Series Data
Series Event
Series Marker
Series Style