--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/38f3da28-9e17-415f-a247-e3efab931528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Version 42 is not actually using the pattern. What it is doing is just using the default toString() on the number, which was worse. For now, you'll have to use NumberFormat to generate all the formatted representations yourself, but something like the pattern you specified would be a good idea.
On Mon, May 2, 2016 at 5:55 PM, Jeremiah <clin...@gmail.com> wrote:
Using the current version of the API the pattern column is not being applied to the data in the column. The goal is for numbers to appear without the comma. I know that I can use NumberFormat but don't want to since this would require... re-coding (work)!!var data1 = google.visualization.arrayToDataTable([['Price', 'Profit/Lost', {'type': 'string', 'role': 'style','pattern':'####'}],[1.9 , 10000, null],[2 , 5000, null],[2.1, 0, 'point {shape-type: triangle; shape-rotation: 180;}']]);Using version 42 the patter is recognized and the data is formatted properly without the commas.See example: https://jsfiddle.net/frogmanjc/2a0bhu0f/
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/38f3da28-9e17-415f-a247-e3efab931528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In the example provided here how would I use the pattern property to format using an ICU pattern set?
https://developers.google.com/chart/interactive/docs/roles#javascript-literal-notation
On Monday, May 2, 2016 at 8:37:26 PM UTC-4, Daniel LaLiberte wrote:
Version 42 is not actually using the pattern. What it is doing is just using the default toString() on the number, which was worse. For now, you'll have to use NumberFormat to generate all the formatted representations yourself, but something like the pattern you specified would be a good idea.
On Mon, May 2, 2016 at 5:55 PM, Jeremiah <clin...@gmail.com> wrote:
Using the current version of the API the pattern column is not being applied to the data in the column. The goal is for numbers to appear without the comma. I know that I can use NumberFormat but don't want to since this would require... re-coding (work)!!var data1 = google.visualization.arrayToDataTable([['Price', 'Profit/Lost', {'type': 'string', 'role': 'style','pattern':'####'}],[1.9 , 10000, null],[2 , 5000, null],[2.1, 0, 'point {shape-type: triangle; shape-rotation: 180;}']]);Using version 42 the patter is recognized and the data is formatted properly without the commas.See example: https://jsfiddle.net/frogmanjc/2a0bhu0f/
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/38f3da28-9e17-415f-a247-e3efab931528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c33e0c12-37e8-45b2-8a76-b4a9157883c7%40googlegroups.com.