[visualization-api] Undocumented dashboard methods: clear, dispose

2016-04-28 Thread Santiago Acosta
In connection to a topic I started at google-visualization-api/qg5-sEH3eNw 
 
, I found some undocumented methods that look like what I would need to 
solve one of my issues.

The undocumented methods are:

   - clear()
   - dispose()
   - isDisposed()

Neither of these methods require any arguments. *isDisposed* returns false 
by default until you call the *dispose* method. I know from looking at the 
function from the console in Google Chrome that *dispose* will internally 
call clear.


Does anyone know what these methods do?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/f674338e-f160-4880-8582-83fd8e052518%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Changing the DataTable in a Dashboard or Clearing it and recreating it

2016-04-27 Thread Santiago Acosta
If have the need to change the underlying data inside a Dashboard. I am 
pretty sure that a dashboard is intimately linked to its DataTable/View and 
that this may not change.

My other option is to tear down the whole dashboard and recreate a new one 
with fresh data. However, unlike clearChart (present in most of the 
charts), I haven't found a way to clear the dashboard and free all the 
resources.

Is there any recommendation on tearing down Dashboards? or is it even 
possible?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/bbd2319b-a3da-453a-94d8-283bbd073037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Passing arguments to event handlers

2016-04-21 Thread Santiago Acosta
The documentation speaks of some arguments to pass to event handlers:

The name of the local JavaScript function to call when source_visualization 
> fires the event_name event. The handling function will be passed any event 
> arguments as parameters
>

The *trigger* method has an explicit parameter precisely for this. It is 
even documented in the interface signatures (which are outdated)

google.visualization.events.trigger = function(eventSource, eventName, 
eventDetails) {};

Do the *events.addOneTimeListener* and *events.addListener* have an 
undocumented parameter that allows the injection of event details?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/457c3a05-1761-439a-acd4-90202a1e04c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: [Dashboard Documentation] - Bad first example

2016-04-18 Thread Santiago Acosta
The issue is quite simple and I could have found it sooner had I performed 
a simple diff

the following line that starts loading the libraries is missing the 
corechart library

google.charts.load('current', {'packages':['controls']});


google.charts.load('current', {'packages':['corechart','controls']});


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/cc893f17-6902-4c9c-8ce8-c003618bebbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] [Dashboard Documentation] - Bad first example

2016-04-18 Thread Santiago Acosta
This is simply to inform that the first full example on the dashboard 
introduction page does not work

Controls and Dashboards 


Trying to copy/paste to see what it produces gives the following errors:

One or more participants failed to draw()

(the control is drawn in between)

google.load is not a function

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/b75f4add-b394-479a-ad8e-78ec07de2c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] explorer option - use both dragToPan and dragToZoom on LineChart

2016-04-14 Thread Santiago Acosta
I understand that there is a very powerful dashboard alternative to what I 
want to ask but I can't rely on the dashboard for now.

There is a couple of settings in the *explorer* option that are technically 
mutually exclusive: *dragToPan* and *dragToZoom*. They both have 
overlapping behavior but both can be activated at the same time and cause 
some pretty strange effects.

In my current implementation I am looking for a way to swap between both 
behaviors.

 - Detect that the user has zoomed into the chart, swap out *dragToZoom* 
for *dragToPan+rightClickToReset*
 - Allow the user to move around and then reset the chart, swap out 
*dragToPan+rightClickToReset* for *dragToZoom*

It is my current understanding that there is no specific event to listen 
for when a user has zoomed in. I have tried to listen for changes in the 
view window to no avail.

Would there be any way to implement this functionality in the current 
version of the API?

Is there a way to detect a *dragToZoom*?

Is there a reliable way to detect an *onmousedown-onmouseup* event that 
would trigger the zoom?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/cab636aa-22a5-4390-a5e5-810f92b209d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.