JQuery BulletChart

Set the labelsFormatFunction property of the jqxBulletChart. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<div id="jqxBulletChart"></div>

JavaScript

$("#jqxBulletChart").jqxBulletChart({
    width: 170,
    height: 500,
    barSize: "30%",
    orientation: 'vertical',
    ticks: {
        position: "both",
        interval: 20,
        size: 10
    },
    labelsFormatFunction: function (value, position) {
        if (position == "far") {
            return value + " °C";
        } else {
            return value;
        };
    }
});