How to set number format pattern to format the Google Visualization?

I have a patern format to display the links in the table

var options = { allowHtml: true,
 cssClassNames: someClass,
 width: 10,
 height: 10
};

 var patterFormat = '<a href="http://somelink/{0}">{0}</a>';
 var formatter = new google.visualization.PatternFormat(patterFormat);
 formatter.format(tableData, [0, 0]); 

 table.draw(tableData, options);


In place of {0} will be filled purely on the order of 10-thousand. Take for example 12345.
For some reason, a couple of weeks ago, this thing stopped working normally. I suspect that all because of some update. Now on the html together so here are the links:
<a href="http://somelink/12345">12345</a>
surendered the following:
<a href="http://somelink/12,345">12,345</a>
Appears seperator, which I don't need. The type of separator depends on the locale in the browser. I know I can vospozovatsya Number format, but how to preserve the format of the link? The documentation did not adequately dug.
July 9th 19 at 13:50
1 answer
July 9th 19 at 13:52
Solution
solution: it all depended on the order of the formatters. Number formatter to apply to the pattern.
var numberFormat = new google.visualization.NumberFormat({
 pattern: '0'
});
 numberFormat.format(tableData, 0);

var patterFormat = '<a href="http://somelink/{0}">{0}</a>';
 var formatter = new google.visualization.PatternFormat(patterFormat);
 formatter.format(tableData, [0, 0]); 

 table.draw(tableData, options);

Find more questions by tags JavaScript