Thanks @TrystanLea, and @Robert.Wall.
Resolved the Bar Graph Numbers.
Ended up using plugin jquery.flot.barnumbers.enhanced.js located at:
“GitHub - jasonroman/flot-barnumbers-enhanced: Enhanced version of flot-barnumbers plugin with additional options”
Placed the plugin at var/www/emoncms/Lib/flot/
Modified bargraph.php located at var/www/emoncms/Modules/vis/visualiztions with the following code changes
‘’’
// bargraph.php
function plot()
{
if (intervalcode=='y')
intervalrange=interval*365;
else if (intervalcode=='m')
intervalrange=interval*30;
else
intervalrange=interval;
var barnumberFormatter = function(value) {
return '$ ' + Math.round(value);
}
var barnumberFormatter1 = function(value) {
return Math.round(value);
}
var options = {
canvas: true,
bars: { show: true, align: "center", barWidth: 0.75*intervalrange*1000, fill: true},
xaxis: { mode: "time", timezone: "browser",
min: view.start, max: view.end, minTickSize: [intervalrange, "second"] },
//yaxis: { min: 0 },
grid: {hoverable: true, clickable: true},
selection: { mode: "x" },
touch: { pan: "x", scale: "x" }
}
if (intervalcode=='m' && units=='$')
$.plot(placeholder, [{data:data,color: plotColour,bars: {numbers: { show: true,font:'11pt Arial', fontColor: '#FF0000', threshold: 0.25, yOffset: 5, xOffset: -32, formatter: barnumberFormatter} }}], options);
else if (intervalcode=='m')
$.plot(placeholder, [{data:data,color: plotColour,bars: {numbers: { show: true,font:'11pt Arial', fontColor: '#FF0000', threshold: 0.25, yOffset: 5, xOffset: -32, formatter: barnumberFormatter1} }}], options);
else
$.plot(placeholder, [{data:data,color: plotColour,bars: {numbers: { show: true,xOffset: -10, formatter: barnumberFormatter1} }}], options);
}
‘’’
