[visualization-api] Re: Setting dataTable for category filter on button click

2014-09-20 Thread Shivani Kanakhara
var customerData = GetCustomerData(2013/01/01, 2014/12/30); var columnsTable = new google.visualization.DataTable(customerData); var initState = { selectedValues: [] }; //initState.selectedValues.push(columnsTable.getColumnLabel(1));

[visualization-api] Re: Setting dataTable for category filter on button click

2014-09-20 Thread Shivani Kanakhara
Data is loaded the first time when i generate the chart where i have passed default dates in GetData()..but on button click i am getting the above error. And the filter is not refreshed. On Saturday, September 20, 2014 12:20:44 PM UTC+5:30, Shivani Kanakhara wrote: var

[visualization-api] Re: Column Chart using chart wrapper

2014-09-20 Thread Shivani Kanakhara
I tried the way you said still not working. Only title is displayed correctly. All other properties inside 'options' do no work. On Saturday, September 20, 2014 5:13:04 AM UTC+5:30, Andrew Gallant wrote: You should not wrap any options in a ui option for the charts. There are controls with

[visualization-api] Re: Column Chart using chart wrapper

2014-09-20 Thread Shivani Kanakhara
Hers is the fiddle. http://jsfiddle.net/shivani_1001/wy1wy6qh/ only the title is displayed. hAxis title is not displayed . The text on hAxis is set to slanted but it does not appear so. On Saturday, September 20, 2014 5:13:04 AM UTC+5:30, Andrew Gallant wrote: You should not wrap any options

Re: [visualization-api] Re: Setting dataTable for category filter on button click

2014-09-20 Thread Shivani Kanakhara
http://jsfiddle.net/shivani_1001/wy1wy6qh/1/ here is the sample fiddle where is not loaded on button click. On Sat, Sep 20, 2014 at 5:18 AM, Andrew Gallant agall...@google.com wrote: You need to call filter.setDataTable in the handler: document.getElementbyId('btnGetData').onclick =

[visualization-api] Re: datetime on hAxis

2014-09-20 Thread Neil Camara
Very cool Andrew! I'll try this! Thanks a lot! On Friday, September 19, 2014 6:55:07 PM UTC-5, Andrew Gallant wrote: You can do this with the hAxis.ticks option: hAxis: { format: 'hh:mm', // default formatting ticks: [ // specify tick marks every hour {v: new

[visualization-api] Re: datetime on hAxis

2014-09-20 Thread Neil Camara
It worked Andrew! I also overrode the hours 1,2,3,4,5,7,8,9,10 and 11 and replaced them with blank space. How do I make the text display horizontally since it's displaying diagonally? Here is the chart using your suggestion. http://i.imgur.com/ajKn1wS.png -- You received this message because

[visualization-api] Re: Line Chart for several days

2014-09-20 Thread Schabagh
Hi Andrew, I get my data from a database added in an two-dimensional array for test purposes: for (var t = 0; t 2; t++) { for (var x = 0; x valueObject[0].length; x++) { var timeStamp = new Date(parseInt(valueObject[0][x]. TimeStamp.substr(6)));