Goal Line on CanvasJS

by cristiscu

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
<script src="https://chart-templates.com/assets/libs/apps/canvasjs/jquery.canvasjs.min.js" type="text/javascript"></script>
<div id="chart_div"></div>

JavaScript

$(function () {
   new CanvasJS.Chart("chart_div", {
      width: 485, height: 300,
      axisY: {
         	stripLines: [{
              value: 67,
              label: "Goal Line",
              labelFontSize: 20,
              labelFontWeight: "bold", 		// this does not seem to apply!
              labelFontStyle: "italic",		// this does not seem to apply!
   				}],
      },
      data: [{
          type: "column",
          dataPoints: [
              { label: 2007, y: 88 },
              { label: 2008, y: 55 },
              { label: 2009, y: 46 },
          ]
       }]
   }).render();
});