Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function numberWithCommas2(x0) {
- //x = Math.round(x0);
- //console.log(x);
- x = x0.toString();
- var pattern = /(-?\d+)(\d{3})/;
- while (pattern.test(x))
- x = x.replace(pattern, "$1.$2");
- return x;
- }
- //------------
- tooltip: {
- formatter: function () {
- num_y = numberWithCommas2(this.y);
- num_total = numberWithCommas2(this.point.stackTotal);
- return '<b>' + this.x + '</b><br/>' +
- this.series.name + ': ' + num_y + '<br/>' +
- 'Total: ' + num_total;
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement