I found in the plugin section of your chartjs documentation a link to the plugin documentation.
https://github.com/chartjs/chartjs-plugin-annotation
I have the following code and nothing appears in the chart. I want to draw a simple horizontal line at the value 1,5. Help is much appreciated.
"plugins"=>array("annotation","datalabels"),
"options"=>array(
"plugins"=>array(
"annotation"=> array(
"annotations"=>array(
"drawTime"=> 'afterDatasetsDraw',
"id"=> 'a-line-1', // optional
"type"=> 'line',
"mode"=> 'horizontal',
"scaleID"=> 'y-axis-0',
"value"=> "1,5",
"borderColor"=> 'red',
"borderWidth"=> 2,
"label"=>array(
"enabled"=> true,
"content"=> "Signifikante Differenz",
"position"=> "center",
),
"onClick" => "function(e) {}"
)
),
),
),