javascript - How to change format between currency and percent in Google Charts? -
I created a chart in the Google Charts. I have a category filter, where I have filters in different years and so on I can do it, and I also have a filter which I can choose which data to compare, but for my question now: How can I make a selected filter that chooses between currency and percentage? As you can see, I have a column filter (selection) at the top, I need "Format filter" which changes vAxis from percentage and currency. Example of work Here is my code: google.setOnLoad callback (draws) Chart); Function drawChart () {var data = google.visualization.arrayToDataTable ([['Date', 'A', 'B', 'C', 'D', 'E'], ['2012 Population', 100, 126] , '' 2012 '', 152, 254, 242, 168, 136], '' 2012 '', 300, 232, 234, 195, 343], ['April 2012', 450, 242, 325, 121, 126], ['Major 2012', 600, 224, 234, 151, 124], 'June 2012, 750, 121, 867, 152, 235],' 2012 Julie ',...