function normalize$2(a) {
    if (!(a instanceof Array)) {
        a = [a, a];
    }
    return a;
}
Renders Heatmap and returns the rendered canvas
@param {Array} data array of data, each has x, y, value
@param {number} width canvas width
@param {number} height canvas height