Getting StartedPerformance !!!Chart DataBar and Column ChartsLine and Area ChartsPie ChartsScatter and Bubble ChartsRadar and Polar ChartsFinancial ChartsCombinational ChartsDynamic ChartsWorking with Chart AxesChart FeaturesCustomizing ChartClient-Side Events |
The different charts can be easily combined. This sample demonstrates how to combine
Line and Scatter chart types.
For detailed implementation, please take a look at the HTML code tab.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Line and Scatter Charts Example - HTML5 jQuery Chart Plugin by jqChart
</title>
<link rel="stylesheet" type="text/css" href="../css/jquery.jqChart.css" />
<link rel="stylesheet" type="text/css" href="../css/jquery.jqRangeSlider.css" />
<link rel="stylesheet" type="text/css" href="../themes/le-frog/jquery-ui-1.8.20.css" />
<script src="../js/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="../js/jquery.jqChart.min.js" type="text/javascript"></script>
<script src="../js/jquery.jqRangeSlider.min.js" type="text/javascript"></script>
<!--[if IE]><script lang="javascript" type="text/javascript" src="../js/excanvas.js"></script><![endif]-->
<script lang="javascript" type="text/javascript">
$(document).ready(function () {
$('#jqChart').jqChart({
title: { text: 'Spline and Scatter' },
animation: { duration: 1 },
series: [
{
type: 'spline',
title: 'Spline',
data: [[1, 46], [2, 48], [3, 68], [4, 30], [5, 55], [6, 85], [7, 43], [8, 29]]
},
{
type: 'scatter',
title: 'Scatter',
data: [[1, 69], [2, 57], [3, 86], [4, 70], [5, 70], [6, 60], [7, 88], [8, 60]],
markers: { type: 'diamond', size: 10 }
}
]
});
});
</script>
</head>
<body>
<div>
<div id="jqChart" style="width: 500px; height: 300px;"></div>
</div>
</body>
</html>
|
Follow us on Twitter