| 1 |
// user specific customizations |
| 2 |
(function ($) { |
| 3 |
$(document).ready(function(){ |
| 4 |
$('body').on('visualizer:format:chart', function(event, data){ |
| 5 |
customize_format(data.id, data.data, data.column); |
| 6 |
}); |
| 7 |
}); |
| 8 |
|
| 9 |
function customize_format($id, $data, $column) { |
| 10 |
/* example add green/red arrows to the specified column of the specified chart |
| 11 |
if($id === 359 && $column === 1) { |
| 12 |
var formatter = new google.visualization.ArrowFormat(); |
| 13 |
formatter.format($data, $column); |
| 14 |
} |
| 15 |
*/ |
| 16 |
} |
| 17 |
})(jQuery); |