I've noticed in my last project, that the scale label (not scale title) renders everything in plain text (except unicode symbols). Instead of 1,2,3... I would like to show Icons. Is it possible to use html or add fontawesome icons in there?
"options"=>array(
"scales" => array(
"xAxes" => array(
array(
"id"=>'x-axis-0',
"ticks" => array(
"min"=>0,
"max"=> 4,
"stepSize"=> 0.5,
"suggestedMin"=> 0.5,
"suggestedMax"=> 5.5,
"fontFamily"=> "FontAwesome",
"callback" => "function(label, index, labels) {
switch (label) {
case 0:
return '<i class=\"fa fa-times\" aria-hidden=\"true" style=\"color: red;\"></i>';
case 1:
return '<i class=\"fa fa-calendar-minus-o\" aria-hidden=\"true\" style=\"color: purple;\"></i>';
case 2:
return '<i class=\"fa fa-dot-circle-o\" aria-hidden=\"true\" style=\"color: orange;\"></i>';
case 3:
return '<i class=\"fa fa-check\" aria-hidden=\"true\" style=\"color: black;\"></i>';
case 4:
return '<i class=\"fa fa-recycle\" aria-hidden=\"true\" style=\"color: green;\"></i>';
}
}"
),
)
),