So I got jquery flot chart that uses a tick formatter to display my values correctly.
The graph could have multiple axes and to generate them correctly I used a loop that contains my formatter function.
for (var i = 0; i < axis.xaxis.length; i++) {
    var format = format || "HH:mm";
    var tickFormatter = function(val, axis) {
        return ValueToTime(Math.abs(val), format, true);
    };
    myAxes.xaxis.push({
        tickFormatter: tickFormatter,
        tickSize: tickSize,
        position: thisPos || "left"
    });
}
When the formatter is executed format is undefined therefore all my labels also appear as 'undefined'.
Is it possible to pass my variable to the function?
Please note: the function gets called inside the plugin which I wish not to edit as it is open source.
 
     
     
    
