Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
Last active August 17, 2017 00:35
Show Gist options
  • Save ponsuke0531/90e066cbe2bb167111777bf150224db4 to your computer and use it in GitHub Desktop.
Save ponsuke0531/90e066cbe2bb167111777bf150224db4 to your computer and use it in GitHub Desktop.
jqPlotでつくった折れ線グラグにおいてY軸の特定値に引いた横線に色を付ける方法 ref: http://qiita.com/ponsuke0531/items/c4bd2cee602b7a0d07fb
<!-- 省略:変更なし -->
<head>
<title>MyJqPlot</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqPlot/1.0.9/jquery.jqplot.min.js"></script>
<script type="text/javascript" src="js/myJqPlot.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqPlot/1.0.9/plugins/jqplot.canvasOverlay.min.js"></script>
<!-- 省略:変更なし -->
// 省略:変更なし
var myHorizontalLine = {
horizontalLine: {
y: 80,
color: 'red',
lineWidth: 0.5,
shadow: false,
xOffset: 0
}
};
// 省略:変更なし
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment