Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How can I use Google Formatter? #21

Closed
souravmondal93 opened this issue May 9, 2017 · 3 comments
Closed

Question: How can I use Google Formatter? #21

souravmondal93 opened this issue May 9, 2017 · 3 comments

Comments

@souravmondal93
Copy link

souravmondal93 commented May 9, 2017

Thanks for this awesome project. I want to use the Google Formatter, but I am unable to do so.

In Google Charts, we can use something like this to format that data. What do we need to do in this project to achieve the same result?

var data = new google.visualization.arrayToDataTable(chartData, false);
var formatter = new google.visualization.NumberFormat({
	pattern: '#.##%' 
});
formatter.format(data, 1);
var chart = new google.visualization.BarChart(document.getElementById('poll-result'));

Thanks

@gmazzamuto
Copy link
Owner

Added support for formatters in version 2.3.0

@souravmondal93
Copy link
Author

Thanks @gmazzamuto :)

@lutchit
Copy link

lutchit commented Aug 17, 2017

Hello,
Is the implementation of this issue allows to use google.visualization.arrayToDataTable as data table format ?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants