How to Format numbers using Google Embed API - Decimal placement limit - Whole numbers -


i format numbers returned via google's embed api, controlling decimal count, , comma placement numbers 1000+.

i found documentation on numberformat google charts, following link embed ref guide:
https://developers.google.com/chart/interactive/docs/reference#numberformatter https://developers.google.com/analytics/devguides/reporting/embed/v1/reference

the syntax different embed, google charts number formatting doesn't seem apply.

here's embed syntax...i'm assuming there's way add options number formatting, similar placed in options param below:

var avgsessionduration = new gapi.analytics.googlecharts.datachart({ reporttype: 'ga', query: {   'metrics': 'ga:avgsessionduration',   'start-date': '30daysago',   'end-date': 'yesterday', }, chart: {   type: 'table',   container: 'avgsessionduration',   options: {     'numberformat': {       pattern: '$###,###'     }   } } 

});

i feel i've read every word of every embed reference material, , can't find anywhere, seems unlikely there's not solution out of box.

thanks!

try removing single quotes around 'numberformat'. don't believe required , may causing problem.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -