初心者の質問です。flot jquery ライブラリを使用して、一連のオプションを設定しようとしていますが、series: {
行に「予期しない識別子」というエラーが表示されます。
https://github.com/flot/flot/blob/master/API.md#plot-optionsに従おうとしています。私が理解していないことはありますか?
<!DOCTYPE html>
<html>
<head>
<title>Flot Graph Testing</title>
<script src="jquery-2.0.3.js"></script>
<script src="jquery.flot.js"></script>
<script type="text/javascript">
$(function() {
var options = {
grid: {
show: false
}
series: {
bars: {
show:true
}
}
};
var rawdata = [[0, 3], [2, 8], [4, 5], [6, 13]];
var data = [{data: rawdata }]
$.plot("#placeholder", data, options);
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " – ");
});
</script>
</head>
<body>
<div id="header">
<h2>Flot graph</h2>
</div>
<div id="content">
<div class="container">
<div id="placeholder" class="my-placeholder" style="width:600px;height:300px"></div>
</div>
<p>This is a flot graph</p>
</div>
</body>
</html>