Re: [visualization-api] NumberRangeFilter control with only one thumb.
Kind of. You can hide the first thumb by adding the following style to your code: style .google-visualization-controls-slider-handle + DIV { visibility: hidden; } /style example: http://savedbythegoog.appspot.com/?id=5b5f96e96d15fd1e71f88b26b154f2fffe1fe756 r. On 9 March 2012 08:03, Ed Syrett edward.syr...@gmail.com wrote: Is there a way to make the NumberRangeFilter control show only one thumb, and provide only one range value instead of two? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: License
As the terms of service (http://code.google.com/apis/chart/terms.html) clarify, Google Chart Tools are subject to the deprecation policy set forth on http://code.google.com/apis/terms/deprecation.html for 3 years from the start of any deprecation period. R. On 27 February 2012 13:15, MC Get Vizzy getvi...@google.com wrote: At least until 2015. On Sun, Feb 26, 2012 at 6:57 AM, GradualStudent shethv...@gmail.comwrote: Wonderful. Not to look a gift horse in the mouth, so to speak, but conversely, are there any indications about expected availability over the next few years? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] zoomLevel not working.
I remember this being raised a while back (see https://groups.google.com/d/topic/google-visualization-api/JFkxCzvU4JA/discussion). It's sort of a known issue (bug tracking id: http://code.google.com/p/google-visualization-api-issues/issues/detail?id=747) but I don't think anyone in the team had a chance to look at it so far. As described in the issue, a possible workaround is to force a redraw. The second draw seems to use the zoom level correctly. R. On 4 February 2012 20:54, screenmutt dangrahn...@gmail.com wrote: Hello! I'm using this the map in this API, but no matter what I set the zoomLevel to, nothing happens. Here is the code [code] mapData = new google.visualization.DataTable(); mapData.addColumn('number', 'Lat'); mapData.addColumn('number', 'Lon'); mapData.addColumn('string', 'Name'); mapData.addRows(1); mapData.setCell(0, 0, 37.4232); mapData.setCell(0, 1, -122.0853); mapData.setCell(0, 2, 'Car'); var options = { mapType: 'normal', zoomLevel: 0, showTip: false }; var map = new google.visualization.Map($('#map')[0]); map.draw(mapData, options); [/code] -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Getting a RangeError: Maximum call stack size exceeded javascript error when attempting to create a DataTable with a large number of rows
This has to do with the size of the array you pass to the addRows() method. If you add the rows one at a time, or in small batches, then no problem arises. For example: http://jsfiddle.net/qgV4D/1/ : adding 100K rows one at a time http://jsfiddle.net/qgV4D/3/ : adding 100K in batches of 10K at a time. Here is an example of adding all the rows at the same time where your error shows up : http://jsfiddle.net/qgV4D/2/ The cause is likely residing in the addRows() implementation. I'm looking into it. - R. On 25 January 2012 19:19, Yolanda Davis yolanda.m.da...@gmail.com wrote: I am attempting to create a DataTable with a large amount of rows, which eventually is grouped and displayed as a smaller set using the Table chart api. However if the size of the rows are over 20k then the addRows method on the data table fails, producing the call stack size exceeded message. I could not find information where this was posted as a known bug nor did I see information on there being a data size limitation on the data table. Is there any way to fix this or is there a workaround available? If size is an issue can there be more specific messaging around that limitation and improvements made to avoid exceeding the stack? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Selecting first actual value from Control
You can do two things. First, you can register for 'statechange' events fired by your controls (see docshttp://code.google.com/apis/chart/interactive/docs/gallery/controls.html). Then, when you receive one you can use setState() on the relevant controls to affect their selected value. Also, if you are just interested in removing the 'Choose a value' option from the CategoryFilter controls you are using, there is a new undocumented option (I'm adding documentation now) 'ui.allowNone' to decide whether the control should allow the user not to choose any value or not. See demo at http://jsfiddle.net/5DqGA/ . When you set it to false, the 'Choose a value' option disappear and the control will always enforce the selection of at least one of the available values. Does this help? - R. On 23 January 2012 18:40, MrTik hetan.s...@gmail.com wrote: Hi, I have a page that has 4 controls connected to each other and then to a graph. I was wondering if there is a way to select actual value from the drop downs based on the previous selections and not Choose a value? Has anyone tried this? Thanks. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: google.visualization.NumberRangeFilter Internet Explorer display problem
Are you still having the problem ? What do you mean by 'not displayed correctly' ? An issue that sometime arises in IE is that the labels on each side of the slider are misaligned with the slider itself. Controls should work fine in IE9. To troubleshoot the issue: ensure that the slider has enough horizontal or vertical rendering space (you can do so by forcing a width / height on the control container). Also, ensure that IE9 is working in standards mode and not falling back to IE7 compatibility mode (for whatever reason), since the NumberRangeFilter controls does render incorrectly in IE7 in certain corner cases. - R. On 19 January 2012 10:57, visigoth visig...@google.com wrote: Could you please attach the problematic HTML page? Thanks -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/5MQxryq8YCYJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Attaching event on control
Following up on this old thread since nobody answered yet. Have you tried listening for statechange events fired by the controls? Example: http://jsfiddle.net/qRtK5/ Also look for information about the 'statechange' event in the controls reference docshttp://code.google.com/apis/chart/interactive/docs/gallery/controls.html#reference . - R. On 18 January 2012 21:49, MrTik hetan.s...@gmail.com wrote: Hi, I was looking for a sample or documentation on attaching an event listener on the controls for the graph. Does anyone have any sample or has any one successfully attached an event listener to the controls? TIA. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Firefox, objects containing charts, and event listeners weirdness
Stupid me. The code I wrote you actually executes the function (returning nothing, hence the undefined error you get): (function(x) { ... })(x); while instead should return one. So either you change it to do so: for (x in charts) { listener[x] = g.v.events.addListener(charts[x]['chart'], 'ready' , (function(x) { return function() { // do something with 'x' }; })(x)); ... } but that becomes really verbose. So you can lock the 'x' just inside the for loop and achieve the same result in a slightly more compact way: for (x in charts) { (function(x) { // 'x' is now locked by the closure g.v.events.addListener(charts[x]['chart'], 'ready', function() { /* your listener code */ }); })(x); } Again, haven't tried the above in a live example, so let's hope I didn't write something wrong again :-). Another reference reading, for better understanding: http://benalman.com/news/2010/11/immediately-invoked-function-expression/ ( look at the 'saving state with closures' paragraph, that describes exactly the 2 techniques I mentioned above). - R. On 4 January 2012 15:56, asgallant drew_gall...@abtassoc.com wrote: Dude, you rock! I suppose this thread should be renamed weird behavior in Chrome/IE, then. So, doing as you suggest, the function executes properly in all browsers. The problem now is that they all throw errors when you pass a closure to #addListener(): FF: Error: a is not a function Source File: http://www.google.com/uds/api/visualization/1.0/6ceef8f4137a389d7745e173bfc981e5/format+en,default,corechart.I.js Line: 170 Chrome: undefined is not a function IE: Object expected This occurs regardless of whether you pass the closure in a loop or not, and whether or not there is anything in the function itself. I plopped one of these into a jsfiddle as a test case: http://jsfiddle.net/zeXg6/ I solved the problem by wrapping the #addListener call in the closure instead: http://jsfiddle.net/zeXg6/1/ It looks ugly, but it works. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/0jUuXw-os_sJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Firefox, objects containing charts, and event listeners weirdness
The 'x' you use inside the listener callback comes from the surrounding closure, therefore it is the very same loop variable. Depending on when the listener is invoked, the value of 'x' may be the last element of the charts object (if the callback is invoked after the loop completed) or some other element. Not sure why Chrome and IE work fine, I guess it may depend in differences in the order in which callbacks are executed with respect to the caller. Anyway, the correct way to deal with it, is to capture the 'current' x in the loop with an additional closure, like this: for (x in charts) { listener[x] = g.v.events.addListener(charts[x]['chart'], 'ready' , (function(x) { })(x)); ... } Notice the anonymous callback function which is invoked passing it the current 'x' value, ensuring the corresponding closure won't have its value changed as the loop progresses. See: https://developer.mozilla.org/en/JavaScript/Guide/Closures#Creating_closures_in_loops:_A_common_mistake http://stackoverflow.com/questions/750486/javascript-closure-inside-loops-simple-practical-example - R. On 3 January 2012 23:15, asgallant drew_gall...@abtassoc.com wrote: I have some code that is basically like this: var finished = {}; var listeners = {}; for (x in charts) { listener[x] = google.visualization.events.addListener(charts[x][ 'chart'], 'ready' function () { finished[x] = true; // further processing google.visualization.events.removeListener(listener[x]); }); charts[x]['chart'].draw(charts[x]['data'], charts[x]['options']); } which works fine in Chrome and IE. In Firefox, when the event listeners fire, they almost always have x equal to the last element in the charts object (occasionally, they have x equal to an earlier element, but never the correct one). The net result is: a) I can never tell when all of the charts have finished drawing b) the event handlers for most of the charts stick around to potentially cause problems on redraw Anyone have any ideas on how I can work around this? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/gtuC6PYjt_oJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Google charts on Ipad
On 16 December 2011 09:54, ivan.lave...@enel.com ivan.lave...@enel.comwrote: Thanks, but I'm wondering if is there a way to test charts o Ipad without having an Ipad available... On 13 Dic, 18:58, Roni Biran roni.bi...@gmail.com wrote: If I were you, I would use the charts that we have now and wait for the next versions that I believe will include SVG charts representations for the flash charts. The same way that the viz team replaced the MapChart with GeoMap and the new IntensityMap, I recon they will replace the others. Just wait and see :-) I know that I'm waiting for an SVG annotated time line chart On 13 בדצמ 2011, at 19:18, asgallant drew_gall...@abtassoc.com wrote: Ipad's don't support Flash, so none of the Flash-based charts (AnnotatedTimeline, MotionChart) will work. The SVG-based charts should work just fine, though. As far as a testing platform goes, given the history between Adobe and Apple, I wouldn't count on anything Adobe-based like that, but that's just me. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visithttps:// groups.google.com/d/msg/google-visualization-api/-/WxEQHDjei6QJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group athttp:// groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Google charts on Ipad
Do you have a mac available? If so you could just install XCode and use the iOs simulator it contains to play with charts (it also simulates the iPad). Afaik, that is the closer you can get to an iPad without the actual device. http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/125-Using_iOS_Simulator/ios_simulator_application.html - R. 2011/12/16 Riccardo Govoni ☢ battleho...@gmail.com On 16 December 2011 09:54, ivan.lave...@enel.com ivan.lave...@enel.comwrote: Thanks, but I'm wondering if is there a way to test charts o Ipad without having an Ipad available... On 13 Dic, 18:58, Roni Biran roni.bi...@gmail.com wrote: If I were you, I would use the charts that we have now and wait for the next versions that I believe will include SVG charts representations for the flash charts. The same way that the viz team replaced the MapChart with GeoMap and the new IntensityMap, I recon they will replace the others. Just wait and see :-) I know that I'm waiting for an SVG annotated time line chart On 13 בדצמ 2011, at 19:18, asgallant drew_gall...@abtassoc.com wrote: Ipad's don't support Flash, so none of the Flash-based charts (AnnotatedTimeline, MotionChart) will work. The SVG-based charts should work just fine, though. As far as a testing platform goes, given the history between Adobe and Apple, I wouldn't count on anything Adobe-based like that, but that's just me. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visithttps:// groups.google.com/d/msg/google-visualization-api/-/WxEQHDjei6QJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group athttp:// groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Area under curve in an AreaChart
The charts don't provide this functionality, you'd have to calculate it by yourself. - R. On 15 December 2011 22:14, Ramón ra.rocha...@gmail.com wrote: I don't see it documented as available so I think I know the answer, but is there any way to retrieve the approximate area under a curve for an AreaChart or do I need to calculate it myself? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/QfdOiANAMBUJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re:[visualization-api] Re: Is there a way to disable the new focus and hover effects on Pie Charts?
Having the chart area settings negatively affect the visibility of part of the chart (I consider the border highlight to be part of it) sounds like a bug anyway. I created an example here to highlight it: http://savedbythegoog.appspot.com/?id=f0c78d7addfa1b3d966da9781871f830dc7db049 (border cut in top and left margins). And a bug to track the issue: http://code.google.com/p/google-visualization-api-issues/issues/detail?id=756 - R. On Dec 14, 2011 8:52 AM, Niek Kouwenberg niek.kouwenb...@gmail.com wrote: Thanks. This works for me. However I think you should be able to only disable/configure the border, as it conflict with other features and is not backward compatible. On 13 dec, 19:46, Riccardo Govoni ☢ battleho...@gmail.com wrote: Try passing this option to your pie chart. This will disable the border, but will also cause the chart to lose other interactivity-related events, such as the tooltips when moving the mouse over the pie slices. enableInteractivity: false - R. On 13 December 2011 14:30, Niek Kouwenberg niek.kouwenb...@gmail.com wrote: As of Decemer 7, 2011 the following new feature was added for all charts: New visual effects for focus and selection of chart elements in scatter, line, area, and other charts. For a pie chart, this means a big border (over 10 pixels) is added around the chart, without any way to disable this. You can specify the width and height (of top/left offset) of the chart within the canvas (containing element). I have set these to 100%, making the pie chart exactly as big as the canvas. However without any means of disabling the added border, these are cut off and only visible in the corners of the chart. Can I disable the border? If so; how? If not; what is the exact size? So I can make my chart smaller so it will fit. (Onclick the border becomes even larger) Or; can you automatically make the chart smaller to reserve space for the border? Not recommended. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Accessibility issues
Hi Scott, I think your snippet refers to this page ( http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/) ,right? You can still achieve the same results described in the article with Google Charts. First, you have access to the container where the chart is rendered into, so you can attach both the role and aria-label attributes to it. Second, you can always render the chart contents as table, either using a plain HTML table or using the Google Charts table visualization, which actually renders using HTML elements, so it more screen-reader friendly than other charts. Would that work? -R. On 12 December 2011 10:10, Scott Glenister scottglenis...@gmail.com wrote: Hi Riccardo, Thanks for your help, I am so tempted to use Google interactive charts, and have google image charts as the fallback when javascript is disabled. However I need it to be super accessible because it's going to be on a government website: ARIA support now included Though this approach to creating charts and graphs is inherently accessible — the table data remains in the page markup for screen readers and browsers that don't support JavaScript — we realized that the canvas element needed ARIA attributes to better identify it as a visualization. In the latest update to Visualize, we edited the plugin to automatically assign two ARIA attributes to the chart container to more clearly identify its purpose to screen readers: - *role=image* – tells screen readers that the chart is purely visual, and can therefore be skipped - *aria-label=Chart representing data from: [table caption value]* – specifically identifies the chart's content as belonging to the associated table -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/6S_-XNDPWMsJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Is there a way to disable the new focus and hover effects on Pie Charts?
Try passing this option to your pie chart. This will disable the border, but will also cause the chart to lose other interactivity-related events, such as the tooltips when moving the mouse over the pie slices. enableInteractivity: false - R. On 13 December 2011 14:30, Niek Kouwenberg niek.kouwenb...@gmail.comwrote: As of Decemer 7, 2011 the following new feature was added for all charts: New visual effects for focus and selection of chart elements in scatter, line, area, and other charts. For a pie chart, this means a big border (over 10 pixels) is added around the chart, without any way to disable this. You can specify the width and height (of top/left offset) of the chart within the canvas (containing element). I have set these to 100%, making the pie chart exactly as big as the canvas. However without any means of disabling the added border, these are cut off and only visible in the corners of the chart. Can I disable the border? If so; how? If not; what is the exact size? So I can make my chart smaller so it will fit. (Onclick the border becomes even larger) Or; can you automatically make the chart smaller to reserve space for the border? Not recommended. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] NumberRangeFilter color
You can also consult this github project ( http://battlehorse.github.com/google-charts-controls-gallery/ ) where I put up several examples of styling gviz controls. - R. On 12 December 2011 09:03, Roni Biran roni.bi...@gmail.com wrote: Put this code in your header and take a look at these styles for ref, sorry in advance for the lack of creativity :-) style .google-visualization-controls-rangefilter-thumblabel { color: green } .google-visualization-controls-slider-horizontal { border: 1px solid pink } .google-visualization-controls-slider-handle { background-color: yellow } .google-visualization-controls-slider-thumb { background-color: red; border: 1px solid orange } /style On Sun, Dec 11, 2011 at 5:46 PM, Yashmika Sampath yashmikasamp...@gmail.com wrote: How to change the default color of NumberRangeFilter's color? Thank you -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] NumberRangeFilter color
Yes. The github thing is a one off to provide a few examples, while we figure out the correct way of distribute / support styling as part of the library proper. - R. On 12 December 2011 09:54, Roni Biran roni.bi...@gmail.com wrote: Wouldn't it be simpler to post a styling documentation for the controls in the charts documentation? Roni 2011/12/12 Riccardo Govoni ☢ battleho...@gmail.com You can also consult this github project ( http://battlehorse.github.com/google-charts-controls-gallery/ ) where I put up several examples of styling gviz controls. - R. On 12 December 2011 09:03, Roni Biran roni.bi...@gmail.com wrote: Put this code in your header and take a look at these styles for ref, sorry in advance for the lack of creativity :-) style .google-visualization-controls-rangefilter-thumblabel { color: green } .google-visualization-controls-slider-horizontal { border: 1px solid pink } .google-visualization-controls-slider-handle { background-color: yellow } .google-visualization-controls-slider-thumb { background-color: red; border: 1px solid orange } /style On Sun, Dec 11, 2011 at 5:46 PM, Yashmika Sampath yashmikasamp...@gmail.com wrote: How to change the default color of NumberRangeFilter's color? Thank you -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] intensity map
Do you have an example or sample page that isolates the problem? I understand you are using a google.visualization.NumberRangeFilter and a geochart, but it's difficult to understand whether the error comes from within the library or not, based on just the description of it. Thanks, - R. On 9 December 2011 04:57, jade k jkoske...@gmail.com wrote: Hi I am trying to make an intensity map using Gapminder data from a google spreadsheet. I am using a slider to select the data, and querying from 5 spreadsheets for different indicators. It is almost complete, everything is working except for two problems. When I change the slider to select a new year, every other change hangs at the visualization is currently loading. If I move the slider again, it redraws the map correctly. I did a sloppy fix of putting two draws in a row and that fixed it... geochart.draw geochart.draw But is there a better way to fix it? Also, after I have changed the year a couple times, everything on the chart goes crazy. The chart will stay normal sometimes, and then it will randomly switch back and forth to old maps. If I hover over the countries, it displays the wrong year. I tried setting breakpoints in firebug, but my drraw function is not being called. What's going on? thanks -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Accessibility issues
Google interactive charts (http://code.google.com/apis/chart) are heavily dependent on javascript (the entire charts package is one big javascript library) and won't work if javascript is disabled. On the contrary Google Image Charts (http://code.google.com/apis/chart/image/) are rendered as plain images, hence they will work if javascript is disabled, although obviously screen readers won't be able to understand the contents of the image. Screen-readers aside, your best option could be to fallback to Google Image charts when javascript is disabled, and use Google interactive charts otherwise. Note however, that the two have different APIs, so supporting both and falling back from one to the other might not be simple. -R. On 6 December 2011 12:01, snarf1974 scottglenis...@gmail.com wrote: Hi, I really love Google charts. I would like to use Google charts to display all the charts for a Government organisation. However, there appears to be no fallback if the browser has javascript turned off. Is there anything I can do to serve up an alternative if javascript is turned off? The government website I'm working on has a strict accessibility policy. Does Google Charts comply with W3C? Are screen readers like JAWS able to read Google Charts? I would really love to use Google charts, but fear I won't be able to if it isn't accessible. I would really appreciate a response. Many Thanks Snarf1974 -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] StringFilter not filtering on punctuation character (double quote)
Sorry nope. The string filter looks at either the raw datatable value or its equivalent formattedValue, but it doesn't perform any html parsing on it. Ideally you'd have to provide one of the two values in such a way for the string filter to be able to operate on it (could you have the html encoded data only in the formattedValue ? ). Alternatively you could expand your datatable by adding to it a generated column that would a contain a parsed version of your data (where you replaced quot; with and other similar occurrences) for the string filter to operate upon, and then have that column hidden from view in the charts / visualization that are dependent on the stringfilter. - R. On 28 November 2011 14:19, Tanmoy (Cloud Engineering) tan...@cloudengineering.in wrote: My raw data in the DataTable is HTML encoded (meaning is represented as quot; and so on). If I use a StringFilter ControlWrapper, it does not filter on the character, instead it expects user to type quot which is impractical. I tried using the useFormattedValue : true option but that does not work either. Is there any way to get StringFilter to filter on the basis of the displayed characters rather than the raw data? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] getTableRowIndex not working with multiple controlwrapper
I'm not sure I understand completely what the issue is, but when dealing with selection events you should resolve the index of the selected row/column against the same table that was used to draw the chart where selection occurred. In a dashboard, the input datatable that you pass to dashboard.draw() is processed by the controls that are part of the dashboard and then ultimately served to the charts for drawing (after all the constraints defined by the controls were applied). So if a chart fires a selection event and you resolve the row/column index contained in the event against the datatable you initialized the dashboard with, it probably won't work because any control in between might have filtered out some of the rows, therefore altering their indexes. The correct way to figure out the selected row is to ask the chart itself for the Datatable it was drawn with, and use that instead. In your example 1, if barChart fires a selection event, use barChart.getDataTable() to retrieve the table the chart was drawn with and resolve the selected row index against that one. Does it make sense? - R. On 28 November 2011 22:25, Roni Biran roni.bi...@gmail.com wrote: can you send a non working full scale sample? On Mon, Nov 28, 2011 at 10:04 AM, Tanmoy (Cloud Engineering) tan...@cloudengineering.in wrote: I am finding that in case of multiple controls (ControlWrapper) being bound to a single chart (ChartWrapper) for a dashboard, the getTableRowIndex does not return the correct row number from the original DataTable when used to get the row number of selected row (getSelection). If there is only a single control, then it works fine, however if there are multiple controls, either specified together (using an array) or separately (by chaining bind function) then the row index returns incorrectly for the 1st control. e.g. based on the Google Playground example __ Ex1.) the ChartWrapper - barChart is bound to only 1 control - cityPicker new google.visualization.Dashboard(document.getElementById('dashboard')). bind(countryPicker, regionPicker). bind(regionPicker, cityPicker). bind(cityPicker, barChart). draw(data); } If a value is selected in countryPicker or regionPicker then the row index returned on selected a raw is as per the 'visible' row index and NOT the original row index in the DataTable. If a value is selected in cityPicker then it selecting a row returns the correct row index. __ Ex2.) the ChartWrapper - barChart is bound to multiple controls new google.visualization.Dashboard(document.getElementById('dashboard')). bind([countryPicker, regionPicker, cityPicker], barChart). draw(data); } If a value is selected in countryPicker then getTableRowIndex returns INCORRECT row index. However, if regionPicker or cityPicker are used, then it returns correct row index. __ Ex3.) the ChartWrapper - barChart is bound to multiple controls and order is changed new google.visualization.Dashboard(document.getElementById('dashboard')). bind([regionPicker, countryPicker, cityPicker], barChart). draw(data); } If a value is selected in regionPicker then getTableRowIndex returns INCORRECT row index. However, if countryPicker or cityPicker are used, then it returns correct row index. Any ideas or suggestions are welcome.. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] getTableRowIndex not working with multiple controlwrapper
Ok, I got it now. The problem you are experiencing is due to the fact that getTableRowIndex() only resolves row indexes in the immediate parent of the DataView you are calling it onto. As the documentation says Returns the index in the underlying table (or view). In the case of dependent controls, like in your example, multiple controls operating in sequence can result in the chart receiving a DataView which is the composed result of multiple DataViews chained onto each other. For this reason getTableRowIndex() will not give the result you want, since it doesn't resolve the whole chain, but only goes one level deep. Normally there is no need to resolve the selected row index against the original datatable the dashboard was initialized with, since you can always access the datatable which is local to the chart via the getDataTable() method. Your example could change into: google.visualization.events.addListener(chart, 'select', function () { var sel = chart.getChart().getSelection(); if (sel sel.length) { alert('You selected the city ' + chart.getDataTable().getValue(sel[0].row, 2)); } }); If anyway, you need to resolve the selected index against the original datatable, there is an undocumented dataview.getUnderlyingTableRowIndex()method that does what you need (resolves row indices recursively through a chain of dataviews). However, I'd be interested in knowing what your use case is, since so far we never encountered a case where such method was necessary (aside from internal needs). Note that being undocumented, it can go away anytime without warning. - R. On 29 November 2011 05:32, Tanmoy (Cloud Engineering) tan...@cloudengineering.in wrote: To recreate, select the last row in the table (City = Nice). It displays the rowIndex in the DataTable. 1. Filter Country = France row index 3 instead of 8. 2. Filter Region = Provence row index 1 instead of 8 3. Filter City = Nice row index 8 as expected !-- You are free to copy and use this sample in accordance with the terms of the Apache license (http://www.apache.org/licenses/LICENSE-2.0.html) -- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=content-type content=text/html; charset=utf-8/ title Google Visualization API Sample /title script type=text/javascript src=http://www.google.com/jsapi /script script type=text/javascript google.load('visualization', '1.1', {packages: ['controls']}); /script script type=text/javascript function drawVisualization() { // Prepare the data data = google.visualization.arrayToDataTable([ ['Country', 'Region/State', 'City', 'Population'], ['USA', 'California', 'San Francisco', 776733], ['USA', 'California', 'Los Angeles', 3694820], ['USA', 'California', 'Mountain View', 70708], ['USA', 'New York', 'New York', 8175173], ['USA', 'New York', 'Albany', 857592], ['France', 'Ile-de-France', 'Paris', 2193031], ['France', 'Ile-de-France', 'Orly', 21372], ['France', 'Provence', 'Marseille', 852395], ['France', 'Provence', 'Nice', 348556] ]); // Define category pickers for 'Country', 'Region/State' and 'City' var countryPicker = new google.visualization.ControlWrapper({ 'controlType': 'CategoryFilter', 'containerId': 'control1', 'options': { 'filterColumnLabel': 'Country', 'ui': { 'labelStacking': 'vertical', 'allowTyping': false, 'allowMultiple': false } } }); var regionPicker = new google.visualization.ControlWrapper({ 'controlType': 'CategoryFilter', 'containerId': 'control2', 'options': { 'filterColumnLabel': 'Region/State', 'ui': { 'labelStacking': 'vertical', 'allowTyping': false, 'allowMultiple': false } } }); var cityPicker = new google.visualization.ControlWrapper({ 'controlType': 'CategoryFilter', 'containerId': 'control3', 'options': { 'filterColumnLabel': 'City', 'ui': { 'labelStacking': 'vertical', 'allowTyping': false, 'allowMultiple': false } } }); // Define a bar chart to show 'Population' data var barChart = new google.visualization.ChartWrapper({ 'chartType': 'Table', 'containerId': 'chart1', 'options': { 'width': 400, 'height': 300, 'chartArea': {top: 0, right: 0, bottom: 0} }, // Configure the barchart
Re: [visualization-api] Amazon Kindle Fire web browser not displaying the graphs
As far as I know, the Kindle Fire runs of version of Android branched from gingerbread (v2.3), which doesn't support svg (svg support for Android started with honeycomb, v3.0). So it's likely the Kindle doesn't support SVG in the browser, which is used by most of the charts to render themselves. - R. On 26 November 2011 21:02, Roni Biran roni.bi...@gmail.com wrote: I don't think that your resolution is the problem. The visualization API charts use SVG to display the charts and I don't know how the kindle browser deals with that. I know that the apple safari renders it perfectly. You might want to check in that. If it does not work you might to insider using the Google image charts. The output charts there are rendered as images (they are not interactive however) On 26 בנוב 2011, at 20:29, Bharat bcrupa...@yahoo.com wrote: I am trying to make my app run on the tablets. It runs fine on the Ipad. But on the Amazon Kindle Fire device, the line graph does not display (that is the only graph that I have in my app). The puzzling thing is that the data-table works perfectly and displays my data in a nice looking table. I believe that the Kindle Fire's resolution is 1024X600. Will that be the problem? Thanks for your time. Bharat -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] bug in legent position ?
Seems like you have a typo. Your snippet reads 'legent' instead of 'legend' ( 't' instead of 'd'). - R. On 7 November 2011 10:04, jimmy asimakis.dimit...@gmail.com wrote: how can I change legent position for area chart?. I tried chart.draw(data, { width: 340, height: 200, title: 'no title', titlePosition: 'none' ,legent: 'bottom', hAxis: { title: 'Year', titleTextStyle: { color: '#FF'} } but is not working. Any help will be appreciated! -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: setting values option on Category picker
I agree with asgallant, try quoting the entries of the 'values' array to match the values you have in your datatable column you want to filter upon. - R. On 7 November 2011 14:28, asgallant drew_gall...@abtassoc.com wrote: Unless Dublin and Cork are objects (with a #toString() method), your 'values' array in the category filter needs quotes around them. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/VqyrjwG0X1EJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Customize nodes/blocks in OrgChart
There's also a custom set of properties you can assign to each datatable row (representing a single orgchart node) via datatable.setRowProperty to assign a custom CSS style to each node. See http://code.google.com/apis/chart/interactive/docs/gallery/orgchart.html#customproperties -R. On Nov 6, 2011 8:13 AM, Roni Biran roni.bi...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Slider Visualisation problem in IE9
I had a look at IE9 and everything looks normal to me. Any chance you are running in IE8 compatibility mode. In which case the darker blue may be a matter of CSS opacity and the overlapping labels (not sure what you mean by this) a matter of min-width for the container holding the slider. You can try all the controls at http://battlehorse.github.com/google-charts-controls-gallery/ and this also contains instructions on how to customize their styling to fit any particular thing you want to customize. - R. On 3 November 2011 11:12, Andrea andrea.mign...@gmail.com wrote: Hi, I'm trying to run this exaple (http://code.google.com/ apis/ajax/playground/?type=visualization#simple_dashboard) in IE9, but the slider appears differently in IE9 (the blue is darker and the labels are overlapped) compared to the standard way. This happens in IE9, but not in Chrome or Firefox. How can I fix the problem? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] [gwt-wrapper] How do I change the color for individual Org Chart boxes?
If you want to change the color of all the boxes in the orgchart, you can use setNodeClass / setSelectedNodeClass on OrgChart.Options . If you want to customize the rendering of a single, specific box you'd have to use the GWT equivalent of setRowProperty() , which indeed appears to be missing (doh!) , but you can easily fill it with a bit of jsni code, for example by adding the following method to a datatable subclass of your own: public final native void setRowProperty(int rowIndex, String name, String value) /*-{ this.setRowProperty(rowIndex, name, value); }-*/; - R. On 4 November 2011 14:09, dhartford binarymon...@gmail.com wrote: Hey all, I'm playing with the GWT-visualization (the GWT code wrapper one, not the raw javascript version) for 1.1.0, and trying to figure out how to programmatically change the color of an org chart box based. Trying these I'm not getting anywhere: data.setProperty(addRow,0, allowHtml, true); data.setProperty(addRow,0, style, background-color=#00); data.setProperty(addRow,0, nodeClass, myblackcss); I think I want the 'setRow', but that isn't available in the GWT wrapper code atm. How would one accomplish changing the color of one of the org chart boxes? thanks, -D -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Axis Title
More likely options['hAxis'] = {'title': 'asdf' }; or options['hAxis'] = {}; options['hAxis']['title'] = asdf; Otherwise I suspect you'd end up with an undefined property when executing the last line without the one before it. - R. On 4 November 2011 12:31, asgallant drew_gall...@abtassoc.com wrote: The API is rather particular about how you set options. I usually see it done in object notation, but it you have to do it this way, the proper notation is probably: options['width'] = 100%; options['height'] = 300; options['legend'] = none; options['hAxis']['title'] = asdf; options[vAxis']['title] = asdf; -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/41kpxYp_-kEJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Preventing Motion Chart Interpolating Data
Wouldn't be easier to customize the existing scatter plot to behave like a bubble chart? (you'd need a separate serie for each bubble size/color combination however, which could make the datatable and options set a little ugly). - R. On 4 November 2011 11:12, rd-london roland.d...@gmail.com wrote: Hello again, I actually have another request. It is possible to use the Google Motion Chart as a highly sophisticated bubble chart by setting the data to span just one date, a placeholder, meaningless date. This is really useful. But with one downside: the one single date appears beneath the x-axis, and if the date is purely a placeholder, then it's quite an eyesore - and one has to put up supporting copy explaining that the date is actually meaningless. So it would also be useful to configure the Google Motion Chart such that the dates/time, if there is only one date, is not shown beneath the x-axis. Many thanks, Cheers R On Nov 3, 10:36 am, rd-london roland.d...@gmail.com wrote: Hi, Many thanks for responding, apologies for taking so long to reply. Yes, I'm only talking about the bubbles view. If interpolate:False is switched on, then the bubbles only actually *appear* when there is data. This may seem odd, and you may think that the resulting experience may be ugly - however it would then be truthful. The beauty aspect is irrelevant when you're actually looking for this chart (which I do utterly love btw, I think it's a thing of genius) to represent the truth behind the statistics. So the result would be that bubbles would appear and disappear. Thanks, R On Oct 31, 1:41 pm, EZChart ezch...@google.com wrote: I'm not sure I understand what exactly you want to happen when setting interpolate: False. Are you talking only about the bubbles view? Today, if you use a daily scale, with data points one month apart from each other, then motionchart will create intermediate data points by linear interpolation. When setting interpolate: False do you want the bubbles to jump when the data changes, instead of moving smoothly? On Wed, Oct 26, 2011 at 3:59 PM, rd-london roland.d...@gmail.com wrote: Hello again, Only me I see no-one replied to this, which is a great shame. The Motion Chart visualisation is full of wonder, it's a great thing - and Hans Rosling (http://en.wikipedia.org/wiki/Hans_Rosling), the man who originated this I think, is terrific - his TED talk where he swallows swords is truly a beautiful thing. Given such beauty, it is a great shame that the Motion Control seems to *ALWAYS* interpolate results - it's so annoying! Is there absolutely no way I can set a setting, flick a switch, raise a flag - do something - to stop it doing this? If there isn't, couldn't you just squeak this little tiny request into the next rollout? Go on, you know you want to It would be as simple as: interpolate: True, or even interpolate: False Thanks, R On Sep 17, 6:09 pm, rd-london roland.d...@gmail.com wrote: Hi, Is it at all possible to prevent the Motion Chart frominterpolating results? At all, in any way? Thanks, R -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] how to make a pyramid chart
If you are refering to something generically pyramid-shaped like thesehttp://goo.gl/VYdSG, I don't we have anything like that. However, you may be able to tweak a stacked bar charthttp://code.google.com/apis/chart/interactive/docs/gallery/barchart.htmlvisualization to achieve something like thishttp://blog.trivadis.com/blogs/michaelkoenings/WindowsLiveWriter/HowToCreateAgePyramidChartsinReportingSe_95C5/clip_image002_2.jpg, although I haven't tried it yet. As Roni said, extra details would be helpful. - R. On 4 November 2011 09:15, Roni Biran roni.bi...@gmail.com wrote: Can you give an example for this chart? An image of some sort? On 4 בנוב 2011, at 05:56, asromero lob...@hotmail.com wrote: Is this kind of chart yet supported? or how can i do this type of chart? txs -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Legend Truncated when Querying Fusion Table
This is a known issue on the Fusion Tables side (labels truncation). See http://code.google.com/p/fusion-tables/issues/detail?id=631 and the last post in this thread https://groups.google.com/d/topic/google-visualization-api/MG4kurSZr5s/discussion - R. On 4 November 2011 16:40, Wayster c...@8newsnow.com wrote: Hello ... how can I keep the legend labels from being truncated (not talking about adding the ellipses when there is not enough space in the chart area) when populating a column chart using a Fusion Table query? Looks like it only displays 10 characters. Thanks! -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Can I download Google Visualization API's source code?
Unfortunately the terms of service do not allow that. See http://code.google.com/apis/chart/interactive/faq.html#localdownload However, the time the browser spends downloading the Google Visualization API from Google servers is usually small (in the order of a few hundred milliseconds depeding on your browser and network connection), plus the API code is cached by the browser so subsequent loads should be even faster. Does the slowness you see originate from long download times or is the client-side rendering that is taking the most part ? Can you tell us more about your case ? - R. On 3 November 2011 20:12, Hector Rojas hector.ro...@whitehatconsultores.com wrote: Hi my name is Hector, I'm a developer, I would like to download the Google Visualization API's source code, because my application is very slow when it's rendering the chart generated by Google Visualization API. I think that my application may be faster, if I have the Google visualization API's source code in my server. Thanks for your attention. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] On saving interactive charts as static images
This is a topic that pops up frequently here in the forum. Many users have the need to convert/serialize the interactive charts they generate using the Google Charts Tools API into static images (PNGs or equivalent) for the user to download or further process. Currently the interactive charts API do not offer this feature (unless you are in specific domains, such as within a Google Apps Scripthttp://code.google.com/googleapps/appsscript/script), unless you are willing to regenerate your chart using the static image APIs http://code.google.com/apis/chart/image/ --- which however have different semantics, making it difficult to support both. A quick workaround for this is to convert the SVG chart to canvas / and then extract the image data from there. This allows for full client-side pure javascript image serialization, at the cost of cross-browser support. The solution works on Chrome,Safari,Firefox,IE9 and Opera, but IE8 and lower does not support the necessary features for this to work (server-side image serialization is also possible, although I won't discuss it here). I have written a brief tutorial and example page to show how this work. Depending on the browsers your users use, and how flexible you can be, the solution might be good enough for your case. Tutorial : http://www.battlehorse.net/page/topics/charts/save_google_charts_as_image.html Example page: http://www.battlehorse.net/attach/topics/charts/google_charts_to_image.html Source code : https://gist.github.com/1333906 Please note that this is somewhat an hack that I put together in the spare time based on the popularity of topic and lack of support in the current official API, so use at your own risk. Have a look at the tutorial for the limitations. If I were to support image serialization for a production service, I'd still recommend using the static image APIs mentioned above. Please discuss / comment / improve. - R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/8kJwHA9OQwsJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Scatter chart, formatting each point
Each 'serie' is a separate column of data. So if you have 3 series, you'll have 4 columns of data (1 for the x-axis, 1 for each of the 3 serie). In your example, although you are defining colors for 6 series, you are assigning all values to the first 1 (since all your setValue() calls only target the 0th column -- for the x axis -- and the 1st column -- the values of the 1st serie). Have a look at this example instead and the comments contained in the source therein: http://savedbythegoog.appspot.com/?id=02b9d7a088bcdd8d95a4e9d7f0d8949a24c93edd - R. On 2 November 2011 20:39, AleRitty aleri...@gmail.com wrote: Hi! I need to set a specific colour (and/or point size) for each point of my graph, I'm using this code (taken directly from the official examples): [code] google.load(visualization, 1, {packages:[corechart]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('number', 'Age'); data.addColumn('number', 'Weight'); data.addRows(6); data.setValue(0, 0, 8); data.setValue(0, 1, 12); data.setValue(1, 0, 4); data.setValue(1, 1, 5.5); data.setValue(2, 0, 11); data.setValue(2, 1, 14); data.setValue(3, 0, 4); data.setValue(3, 1, 4.5); data.setValue(4, 0, 3); data.setValue(4, 1, 3.5); data.setValue(5, 0, 6.5); data.setValue(5, 1, 7); var chart = new google.visualization.ScatterChart(document.getElementById('chart_div')); chart.draw(data, {width: 400, height: 240, title: 'Age vs. Weight comparison', hAxis: {title: 'Age', minValue: 0, maxValue: 15}, vAxis: {title: 'Weight', minValue: 0, maxValue: 15}, series: { 0:{color: 'blue', pointSize: '3', visibleInLegend: true}, 1:{color: 'black', pointSize: '3', visibleInLegend: true}, 2:{color: 'red', pointSize: '3', visibleInLegend: true}, 3:{color: 'red', pointSize: '3', visibleInLegend: true}, 4:{color: 'red', pointSize: '3', visibleInLegend: true}, 5:{color: 'red', pointSize: '3', visibleInLegend: true} }, legend: 'none' }); } [/code] But in this way every point is blue. If I change the value for the serie 0 from blue to black, every point became black! Is possible to change the color of every point indipendently? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Serialization of visualizations
I think there's a bit of confusion here. What exactly do you mean by 'serializing' the chart ? If you intend to persist the chart state in same format that can be later rebuilt, this is already available, for example using ChartWrapper.toJSON()http://code.google.com/apis/chart/interactive/docs/reference.html#chartwrapperobject . See the sources of this examplehttp://savedbythegoog.appspot.com/?id=52de9ea50453e4aeb4a5af5f1f8f85c0ea3a9bcf which draws a chart, serializes it into a json string and then parses it back again to build a clone. If you intend converting the chart to image, then indeed that is something that is currently explicitly supported only inside Google Apps Scripthttp://code.google.com/googleapps/appsscript/service_charts.html via the getBlob()http://code.google.com/googleapps/appsscript/class_chart.html#getBlobmethod you mentioned. Alternatives way, such as converting the chart svg into canvas / and building an image out of that, could probably work, but they are outside the library boundary (read: you have to implement them on your own). -- R. On 31 October 2011 13:16, Roni Biran roni.bi...@gmail.com wrote: according to the I/O 2011 (London GTUG) this feature is supposed to be supported in the future for ChartWrapper ( http://www.battlehorse.net/wontlast/gtugChartsLondon/index.html#27), however I don't think it's supported at the moment. I know for myself, that I need this feature for exporting charts as images. If you'll find a way to make it work, please let us all know. On Mon, Oct 31, 2011 at 1:10 PM, Eric allomor...@gmail.com wrote: I am using the html examples at http://code.google.com/apis/ajax/playground/#line_chart This html I paste into a server page. How do I load the appropriate libraries and call the methods in order to serialize the chart produced? Please could someone refer me to a *working example* of html/javascript for this. I am able to implement this with the examples given for serialization and email but then only as a function in a script editor. I believe this has to do with my lack of understanding of the javascript and the loading of libraries with google.load. When I try to include the following code in an html page in the , I get unexpected Identifier or unknown method getBlob. First I change the line new google.visualization.LineChart( ... to var myChart = new google.visualization.LineChart(... Then in the main function of the linechart example, add the stanzas; var chartBlob = myChart.getBlob().getBytes(); var chartFile = [{fileName: chart.png, mimeType: image/png, content: chartBlob}]; I would appreciate advice on how to implement this correctly. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/-HUmK2on2vwJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Can I ask a dumb question
Sorry for the late answer. We recently rolled out a feature that lets you use some aspects of charts directly from Google Sites (see http://googledocs.blogspot.com/2011/09/visualize-your-data-with-charts-in.html ) but we don't offer yet direct support for Dashboards. To use dashboards you must be able to edit the html source of the page where you're inserting the dashboard into, something that Sites does not allow. So if you write an html page that contains a dashboard, you'd have to host it somewhere else. As a workaround, you could then later surface the dashboard inside a Google Site using a gadget that lets you embed external content in a site, like one of the many iframe gadgets available (menu Insert More Gadgets when you are editing a Site page). -- R. On 25 October 2011 11:10, Tony Holmes mail.tonyhol...@gmail.com wrote: The dumb part with respect to most of you guys is that I am a non-programmer so am unfamiliar with the Google Apps Script environment. Anyway... watched some Google I/O 2001 YouTube ( http://www.youtube.com/watch?v=NZtgT4jgnE8) and was impressed with the potential of Dashboards to present live data feeds to charts... i.e. using CategoryFilter, RangeFilter etc to present different views on data held in Docs Spreadsheets. The company I work for is a supplier to Google and we have an internal Go site, however to try this stuff out set up my own Google Site as a trial (https://sites.google.com/site/tonytestforcharts/) .The idea is to ultimately host the dashboards on the internal Site. The problem I have is that I have discovered I don't have access to the head of the document to load libraries and it appears Google sites doesn't allow scripts to run anyway, unless through gadgets (I think) non-programmer so dooh! Questions: Can this be done through Google sites or am I barking up the wrong tree? Or is there a higher level access for Google sites to allow access to the head section and run scripts? And if so how do I get this? Any help you wizards can offer a muggle will be much appreciated. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/uTsXNas7XAYJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Themes for the Controls and Dashboards API
Folks, The Controls And Dashboards APIhttp://code.google.com/apis/chart/interactive/docs/gallery/controls.html is the part of the Google Charts APIhttp://code.google.com/apis/chart/index.html that lets you assemble multiple charts into dashboards and enrich them with interactive controls to manipulate the data they display. It defines a set of widgets (category pickers, range sliders, autocompleters...) you interact with in order to drive the data managed by a dashboard and the charts that are part of it. A while back a couple of questions came up in the forums about skinning and styling the Controls widgets. To address this, I've set up an example project at https://github.com/battlehorse/google-charts-controls-gallery that shows how to create custom themes for the Controls widgets. I have also included two sample themes as examples (onehttp://battlehorse.github.com/google-charts-controls-gallery/#google-visualization-controls-theme-plusinspired by the latest redesign of Google properties, the otherhttp://battlehorse.github.com/google-charts-controls-gallery/#google-visualization-controls-theme-contrastshowing an high-contrast setup for accessible access). The styles are easily inspectable, so it should be fairly easy for anyone to extend / modify them. You can find demos and docs at http://battlehorse.github.com/google-charts-controls-gallery/. I have hacked it together quickly, so it's still a bit rough (and I haven't really tested it across a wide set of browsers). Comments and contributions welcome, -- R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/FvXlvJ2bvVYJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] cssClass for ControlWrapper
Hi there, ridiculously late, but I've prepared some docs and examples on how to apply custom themes on Controls: https://groups.google.com/forum/#!topic/google-visualization-api/9DxAApWoIzk ControlWrappers use a mixture of widgets (autocompleters, sliders, ... ) so it's a bit longer to provide a coherent theme for all the controls, but the above link should provide some guidance. For minor stylistic changes (for example, the color palette), or changes that apply to a single control, also consider the 'ui.cssClass' option that every ControlWrapper supports ( http://code.google.com/apis/chart/interactive/docs/gallery/controls.html#gallery) and lets you add a custom class to the control. -- R. On 10 October 2011 18:58, fgrayli fgra...@gmail.com wrote: Can anyone provide any documentation about the format of the Custom Style Sheet for different type of the ControlWrappers? something like this that we are using for Table: cssClassNames = { 'headerRow':'header-row bold-font font', 'headerCell':'header-cell font', 'tableRow':'table-row', 'tableCell':'table-cell font', 'selectedTableRow':'selected-row', 'oddTableRow':'odd-rows', 'hoverTableRow':'hover-row' }; Thanks, -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] conversion error on Google visualization java
My best guess is that the version of google collections you are using (google-collections-1.0-rc4.jar) is old and did not yet include the method (com.google.common.collect. ImmutableList.copyOf(Ljava/util/Collection;) ) that TableRow.getCells() tries to invoke (as you can see from the stack trace). Upgrading your collections library (see http://code.google.com/p/guava-libraries/ , which supersedes google-collections) should fix it. If you can't do so, you may try recompiling the google-visualization-javahttp://code.google.com/p/google-visualization-java/sources against you're current google-collections jar. This might fail for other reasons (the visualization library depending on other classes/methods not present in your jar), but the specific exception you mention should go away because the overloaded use ImmutableList.copyOf() should resolve against ImmutableList.copyOf(Ljava/lang/Iterable;), which exists in your google-collections jar. -- R. On 13 October 2011 10:28, P G pgun2...@gmail.com wrote: Hi, I am new to this google visualization api. I am trying to create datatable from java backend and javascript will create chart for me using google visualization javascript API. Java code - while (itr.hasNext()) { DatamartPrice priceObj = (DatamartPrice) itr.next(); TableRow row = new TableRow(); row.addCell(priceObj.getValueDate().toString()); row.addCell(priceObj.getValue()); chartDataTable.addRow(row); } Jar files in classpath are - visualization-datasource-1.1.1.jar and google-collections-1.0-rc4.jar Exception is thorwn on line chartDataTable.addRow(row); java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/ Collection;)Lcom/google/common/collect/ImmutableList; at com.google.visualization.datasource.datatable.TableRow.getCells(Unknown Source) at com.google.visualization.datasource.datatable.DataTable.addRow(Unknown Source) at com.jpmorgan.research.cfp.datamart.DatamartUtil.getDatamartPriceDataForGraph(DatamartUtil.java: 49) at com.jpmorgan.research.cfp.servlets.PerformanceChartServlet.doGet(PerformanceChartServlet.java: 57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 859) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 489) at java.lang.Thread.run(Thread.java:619) Can someone help me to resolve this issue? Thanks, PG -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: How to change StringFilter value with a listener
I assume that your 'slider' variable points to a StringFilter (like you mention in the title). In which case setState should work as you describe. Have a look at this example: http://savedbythegoog.appspot.com/?id=99fb271ca54b04894ae19f44b748467feea3509band its source code, where clicking on the button sets a specific value on the string filter. If instead your 'slider' variable points effectively to a slider NumberRangeFilter, than the state format is different, as described in http://code.google.com/apis/chart/interactive/docs/gallery/controls.html#numberrangefilter -- R. On 13 October 2011 15:22, Tday the.t...@gmail.com wrote: Somehow there was a missing semi colon in the paste. I do see that on the value = 'Broken' line. On Oct 13, 10:21 am, Tday the.t...@gmail.com wrote: I'm trying to refine a search method of my table where there are two buttons that show only what is essentially true or false. Here's my listener declaration for my dashboard. google.visualization.events.addListener(dashboard, 'ready', dashReady); And here's the listener function. function dashReady(){ document.getElementById('workButton').onclick = function() { slider.value = 'Working'; slider.draw(); }; document.getElementById('breakButton').onclick = function() { slider.value = 'Broken' slider.draw; }; } I also tried slider.setState({'value':'Working/Broken') but had no success. Help would be appreciated! -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Interaction on a Column Chart with a NumberRangeFilter
As you correctly describe, the listener tells you which row was selected with respect to the filtered chart (row 0 of the filtered chart), but you resolve that row number against the overall datatable when you call data.getValue(). To fix the problem, resolve the value against the filtered datatable itself. Try replacing: var selectedItem = chart.getChart().getSelection()[0]; var value = data.getValue(selectedItem.row, 0); with var selectedItem = chart.getChart().getSelection()[0]; var value = *chart.getDataTable()*.getValue(selectedItem.row, 0); In the context of dashboards, each chartwrapper that is part of it holds a reference to the 'filtered' datatable that is was drawn with. You can access it via its standard getDataTable() method, as shown above. -- R. On 13 October 2011 11:12, Andrea andrea.mign...@gmail.com wrote: Hi Everybody, I've a problem. I am drawing a column chart with a NumberRangeFilter (slider) in this way; //... dashboard.bind(slider, myChart); dashboard.draw(dataTable); I added a listener: google.visualization.events.addListener(myChart, 'select', selectHandler); function selectHandler() { var selectedItem = chart.getChart().getSelection()[0]; var value = data.getValue(selectedItem.row, 0); alert('The user selected ' + value); } Everything works fine. But when I use the slider to filter my data the listener dosn't work anymore. The problem is that the Listener considers as row 0 the first bar of the filterd chart, but it refers to the unfiltered data table. So the item selection does not work when I use the slider. i.e. DataTable: item value A 5 B 3 C 2 If I use the slider to see value 5 I get a column chart with only bar B and bar C. But when I click on the first bar of the chart (bar B) the event listener returns the first row of DataTable: the item A. How can I fix this? Tanks. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Chart and Dashboard White Space
When you say 'dashboard', do you mean the google.visualization.dashboard mentioned in http://code.google.com/apis/chart/interactive/docs/gallery/controls.html ? In that case, I'd like to know more, since those dashboards shouldn't use any space: the dashboard itself does not occupy any visible space, only the charts and controls part of it do. For charts, the chartArea option is usually the one that works best, along with other minor tricks (such as legend placement, axis font-sizing and such). You can use your browser web inspector to have a look at the sizes of each DOM element and see where space is going. If you have a live example somewhere, we could have a look and help figuring out where the problem is. -- R. On 13 October 2011 20:25, Tday the.t...@gmail.com wrote: It seems like there's an extraordinary amount of whitespace that the dashboard and charts add when drawn. I have a dashboard almost 700 pixels tall, but probably 400 of that is simply white space. Same goes for a piechart. I've tried using chart area, but to no avail. Any ideas, I've looked through past documentation on this issue-- solutions are pretty scarce it seems. I think I just must be doing something wrong. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Dashboard sort
The issue you have is that your code accumulates unnecessary listeners every time you click on the table header, because of an implicit loop between your table 'ready' event and the listener that reacts to sorting events: - when the table is 'ready' , the onReady() method is called. - onReady() adds a listener for the 'sort' event on the table - when you click a table header, the 'sort' event fires - the 'sort' event triggers a dashboard redraw - the dashboard redraw implicitly redraws the table is well. - when the table draws, it fires a 'ready' eventhttp://code.google.com/apis/chart/interactive/docs/events.html#The_Ready_Event. Go back to step 1. So every time you change the table sorting, the number of listeners (and consequent redraws) increases exponentially (to be precise, your dashboard will redrawn 2^n-1 times on the nth click to change the table sorting). After a few clicks the whole thing will slow down to a crawl. You can easily debug this by adding a console.log statement in your 'sort' event callback and see how many times it fires. The solution is to break the cycle. After all you want to attach the 'sort' listener only after the table has been drawn the first time. So you can change your code to the following: *var readyListener = *google.visualization.events.addListener(table, 'ready', onReady); ... function onReady() { * google.visualization.events.removeListener(readyListener)* google.visualization.events.addListener(table.getChart(), 'sort', function(event) { ... }); }); -- R. On 12 October 2011 10:31, Marco Megna ilme...@gmail.com wrote: I have problem on the same thing. here my code, what's wrong? - google.load('visualization', '1.1', {'packages':['controls']}); google.setOnLoadCallback(drawDashboard); function drawDashboard() { var dashboard = new google.visualization.Dashboard( document.getElementById('dashboard')); var data = new google.visualization.DataTable(); data.addColumn('number', 'ID'); data.addColumn('number', 'Peso'); data.addRows([...some rows...]); var table = new google.visualization.ChartWrapper({ 'chartType': 'Table', 'containerId': 'table', 'options': { 'width': 'automatic' }, 'view': {'columns': [1,...,10]} }); google.visualization.events.addListener(table, 'ready', onReady); var titoloPicker = new google.visualization.ControlWrapper({ 'controlType': 'CategoryFilter', 'containerId': 'control4', 'options': { 'filterColumnLabel': 'Nome', 'ui': { 'labelStacking': 'vertical', 'allowTyping': false, 'allowMultiple': false } } }); (... other ControlWrapper) var chart = new google.visualization.ChartWrapper({ 'chartType': 'BarChart', 'containerId': 'chart1', 'options': { 'width': 600, 'height': 600, 'chartArea': {top: 0, right: 0, bottom: 0} }, 'view': {'columns': [2,10]} }); ...(other dashboard.bind) dashboard.bind(titoloPicker, [chart, table]); dashboard.draw(data); function onReady() { google.visualization.events.addListener(table.getChart(), 'sort', function(event) { data.sort([{column: event.column, desc: !event.ascending}]); dashboard.draw(data); }); } } -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/CuXKGpWx9P0J. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] cssClass for ControlWrapper
Hi there, just a quick temporary answer to let you know that I'm working on an exhaustive answer, I just didn't have enough time to put it together so far. I hope to be able to do it tomorrow, I'll update the post when I have something to show. In the meantime, you can use your browser web-inspector to look at the DOM elements that ControlWrappers generate and start from there. We have kept the CSS classes of each generated DOM element fairly explicit exactly to make styling easy and let you adapt controls to your own pages. -- R. On 10 October 2011 18:58, fgrayli fgra...@gmail.com wrote: Can anyone provide any documentation about the format of the Custom Style Sheet for different type of the ControlWrappers? something like this that we are using for Table: cssClassNames = { 'headerRow':'header-row bold-font font', 'headerCell':'header-cell font', 'tableRow':'table-row', 'tableCell':'table-cell font', 'selectedTableRow':'selected-row', 'oddTableRow':'odd-rows', 'hoverTableRow':'hover-row' }; Thanks, -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] When updating a chart with Ajax, how can I prevent the page to scroll up back to the chart being updated?
Hi David, can you provide some extra info about the visualization you're using and/or an example page showing the problem? I created this quick example: http://jsfiddle.net/7JLQ3/1/ that contains a chart placed in the middle of a very long page, updating every 5 seconds. I can't reproduce your problem: when the chart redraws the scrolling position is unaffected. -- R. On 2 October 2011 23:17, Julian King hoolm...@gmail.com wrote: Two things, first are you using the GoogleVisualizationsForDotNet that I published on code.google.com? If not then i can't vouch for anyone else's implementation of google charts. If you are using my wrapper class then the behavior you describe sounds like a postback? I have a chart refreshing though AJAX and the page doesn't scroll. If it is my chart wrapper please send sample code. On Sat, Oct 1, 2011 at 2:41 AM, David Vallee davi...@gmail.com wrote: So I have an ajax call every seconds, grabbing some json data, and I have some setValues to update the datatable with the json data. At the moment I update the chart with the draw method, the page scrolls back to the chart being updated. How can I prevent this behavior? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- Best Regards, Julian King (206) 697-4663 hoolm...@gmail.com -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] image resolution with Intensity Map
You have already written javascript code to create the interactive chart in the first place. Can't you just embed it in your website so your visitors will get the full interactive chart (including the tooltip effect you mention) instead of just a picture? Wouldn't it be preferable? --R. On Oct 3, 2011 12:46 PM, marco grazzi marco.gra...@gmail.com wrote: thanks a lot, it works great. Apologigies, for my IT ignorance ... is it possible to post the picture (with the nice feature that when the mouse is on a country you can see the actual value) on my website? 2011/10/2 Riccardo Govoni ☢ battleho...@gmail.com Have a look at the Geochart. http://code.google.com/apis/chart/interactive/docs/gallery/geochart.html It should fulfill your needs and allow larger resolutions. However, it renders as SVG, which makes its saving as image tricky. Regarding credit, you're not required to, but it is certainly appreciated if you want to point out which technology is powering your charts. --R. On Oct 2, 2011 2:37 PM, marco grazzi marco.gra...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- LEM-Scuola Superiore Sant'Anna Piazza Martiri della Liberta', 33 56127 Pisa, Italy Tel. +39-050-883341 Fax +39-050-883344 Web site: https://mail.sssup.it/~grazzi -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] image resolution with Intensity Map
Ignore the latter link. That refers to visualizations that are shipped as 'gadgets', for examples the ones you can have embedded in Google spreadsheets or iGoogle. How to put your html page on your website depends on which platform is serving your website. If you are managing the website on your own, for example by managing a webserver like Apache or IIS, it should be enough to put the html page containing the chart in the document root of your website. If your website is hosted on some other platform, like Wordpress, you could look into your hosting documentation on how to add raw html content to it. Wordpress, for example, has plugins that let you add raw html content to your blog, which you can use to add the chart code (I'm not a wordpress expert, so other simpler options might exist as well). -- R. On 3 October 2011 14:51, marco grazzi marco.gra...@gmail.com wrote: Yes, that's preferable. The problem I'm struggling with is how to embed the picture... I looked here http://code.google.com/apis/chart/interactive/faq.html#policy and in particular http://code.google.com/apis/chart/interactive/faq.html#embedwebsite But I m not getting the thing to work. Does the following apply to my case? On any other web page, if you have access to the source code, paste the XML of the gadget wrapped inside an iframe on the page. Be sure to set the data source preference in the XML. What should I exactly put in the .html file of the webpage I want to show? How do i set this XML thing? 2011/10/3 Riccardo Govoni ☢ battleho...@gmail.com You have already written javascript code to create the interactive chart in the first place. Can't you just embed it in your website so your visitors will get the full interactive chart (including the tooltip effect you mention) instead of just a picture? Wouldn't it be preferable? --R. On Oct 3, 2011 12:46 PM, marco grazzi marco.gra...@gmail.com wrote: thanks a lot, it works great. Apologigies, for my IT ignorance ... is it possible to post the picture (with the nice feature that when the mouse is on a country you can see the actual value) on my website? 2011/10/2 Riccardo Govoni ☢ battleho...@gmail.com Have a look at the Geochart. http://code.google.com/apis/chart/interactive/docs/gallery/geochart.html It should fulfill your needs and allow larger resolutions. However, it renders as SVG, which makes its saving as image tricky. Regarding credit, you're not required to, but it is certainly appreciated if you want to point out which technology is powering your charts. --R. On Oct 2, 2011 2:37 PM, marco grazzi marco.gra...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- LEM-Scuola Superiore Sant'Anna Piazza Martiri della Liberta', 33 56127 Pisa, Italy Tel. +39-050-883341 Fax +39-050-883344 Web site: https://mail.sssup.it/~grazzi -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- LEM-Scuola Superiore Sant'Anna Piazza Martiri della Liberta', 33 56127 Pisa, Italy Tel. +39-050-883341 Fax +39-050-883344 Web site: https://mail.sssup.it/~grazzi -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization
Re: [visualization-api] Remove default popups on mouseover event
Try the 'enableInteractivity' flag as described here: http://code.google.com/apis/chart/interactive/docs/gallery/columnchart.html -- R. On 3 October 2011 22:44, Raghu raghav.go...@gmail.com wrote: Hi All I'm using Column charts and Pie charts. Was looking to see if we can remove/hide the popups which appear on hover. Found some posts which says its not possible but wanted to confirm. Thanks Rag -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] image resolution with Intensity Map
Have a look at the Geochart. http://code.google.com/apis/chart/interactive/docs/gallery/geochart.html It should fulfill your needs and allow larger resolutions. However, it renders as SVG, which makes its saving as image tricky. Regarding credit, you're not required to, but it is certainly appreciated if you want to point out which technology is powering your charts. --R. On Oct 2, 2011 2:37 PM, marco grazzi marco.gra...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Merging 2 datatables with identical columns
Could you write them out using the ToJSonhttp://code.google.com/apis/chart/interactive/docs/dev/gviz_api_lib.html#tojsonexample instead of ToJSonResponse ? This would serialize a plain json object for each datatable. In the browser, you could load these json objects, easily merge them together (join their 'rows' array together, assuming the columns' definitions are the same) and create a single datatable out of the joined json payload. -- R. On 28 September 2011 21:29, Elco Jacobs elcojac...@gmail.com wrote: I am generating datatables in a python script on a DD-WRT router. The script will generate datatables of up to 5000 rows. The memory on the router is limited, so the datatables grow too large and the router crashes. To prevent this from happening, I want to create a new datatable each day and write these to separate JSON response files with datatable.ToJSonResponse(). When a page is loaded in a web browser, these JSON response files have to be loaded and combined into one chart in javascript. I can iterate over the JSON response files and read them into datatables, but I cannot find a way to append one datatable to another. The addRows() function is almost what I need, but it cannot accept an entire datatable as input. Can anybody help me on how to merge the two datatables into one datatable so I can create a combined chart? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Changing default settings for each chart. Motion Chart
I don't think the motionchart was ever designed to let you tweak its state at runtime. According to this paragraphhttp://code.google.com/apis/chart/interactive/docs/gallery/motionchart.html#Motion_Chart_initial_state the state should be treated as a sort of black box which you configure once. To still do what you're trying to, you could listen for statechangehttp://code.google.com/apis/chart/interactive/docs/gallery/motionchart.html#Eventsevents. When they fire, extract the current state from the motionchart, parse it to figure out if the chart turned into a BUBBLE one, tweak the state setting the xAxisOption as you need it and redraw the motion chart with the altered state. Being a flash chart, I suspect the redraw might cause some ugly flickering, though. -- R. On 29 September 2011 05:43, Cristian cristian.iban...@gmail.com wrote: Hi, I am using options['state'] to set my default setting in my Motion Chart visualization. [VBAR, _UNIQUE_COLOR, _ALPHABETICAL, etc] {that part is working great} When I select a BUBBLE graph instead of a BAR graph I want it to default to xAxisOption:_TIME. I am at a lost here. I have no idea where to begin to look . I'm thinking that there might be a way to add a listener to know when a different graph is selected and then assign the defaults o force the property I need then, but I can't find anything about it. I would appreciate any help you guys give me or point me in the right direction. Thanks, -Cristian PS: I'm loading my points from a CSV file. In Mozilla, Safari, Chrome everything works, but when I try it in IE nothing... any ideas? I'm posting this question in another thread. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Reliability for using Google Charts
Your reference should be the Terms of Service ( http://code.google.com/apis/chart/interactive/terms.html). For example, regarding Will Google Chart disappear some day? , I think the most exhaustive answer is section 4, in particular 4.5 where the 3 year deprecation notice is defined. When making your decision, you should also be aware of the release processhttp://code.google.com/apis/chart/interactive/docs/release_notes.html#ReleaseProcessGoogle Charts API uses. The way it's currently shaped has been extensively discussed in this forum recently because it puts pressure on the developer (you) to keep pace with it : your charts always serve from a 'stable' API version (the so called v1.0) and you have 2 a week window, between the time a new release is announced and the time it hits production, to verify your charts (and upgrade them if required by API changes) and notify us in the forums of any bugs you may spot. This has occasionally led to bugs reaching production. Releases come out on a monthly base, roughly. We are making changes to said process to better accommodate users needs, but they're not in place yet, so the above process still applies. -- R. On 27 September 2011 07:28, R the V rsdev...@gmail.com wrote: Dear Google employees or API users, i'm looking for a Chart API which can be used for commercial goals. When i take a look at the Google Chart API i see a very nice tool with many functions which i could use for my graphical dashboard, though i foresee some problems in the futere. I'm willing to build a dashboard system with many charts, connected to data contained in a database. My concern is that i'm dependent on Google API. The TOS is not allowing to use the files locally. I simply can't guarantee uptime to my customers if the API disappears in a few years, or the API isn't available for hours per week. So the questions i have: - Is the API reachable all time of day? How about the uptime? - Will Google Chart disappear some day? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] NumberRangeFilter min/max values
Sounds like a CSS presentation bug. Can you force a min-width or equivalent on the slider_div that contains the slider (or any of its parent containers)? That should fix it. -- R. On 27 September 2011 17:31, datam...@yahoo.com datam...@yahoo.com wrote: Whenever I use a NumberRangerFilter with the default horizontal orientation both values (min max) appear vertically above and below the left (minimum) end of the slider rather than to the left (minimum) and right (maximum) like the examples. I am currently forcing the vertical orientation for the numbers to locate correctly, I have been unable to find an option or property to correct this issue? Below is a snippet of html I am using, minus the 'ui': {'orientation': 'vertical'} I am currently using. What am I missing to display the slider horizontally with values to the left and right? Thanks, Mike // Create a dashboard var dashBoard = new google.visualization.Dashboard( document.getElementById('dashboard_div')); // Create a range slider, passing some options var Control = new google.visualization.ControlWrapper({ 'controlType': 'NumberRangeFilter', 'containerId': 'slider_div', 'options': { 'filterColumnIndex': 1, 'minValue': 0, 'maxValue': 28, }, 'state': {'lowValue': 15, 'highValue': 28} }); // Create a chart, passing some options. var Chart = new google.visualization.ChartWrapper({ 'chartType': 'BarChart', 'containerId': 'chart_div', 'options': { 'width': 780, 'height': 440, 'hAxis': {'minValue': 0, 'maxValue': 28}, 'chartArea': {top: 0, right: 0, bottom: 0}, 'legend': 'none', 'is3D': true, 'min': 0 } }); dashBoard.bind(Control,Chart); dashBoard.draw(ChartData); -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: arrow formatting with google docs info
Would something like this be good enough? https://docs.google.com/spreadsheet/ccc?key=0Av88pFrCTjLhdFhqMVVTZzZJdWYtT0lYTTV3elpseEEhl=en_GB I used a combination of spreadsheet functions, unicode characters and conditional formatting. First I defined a functionhttps://docs.google.com/support/bin/static.py?page=table.cstopic=25273that, depending on the comparison of 2 cells (this week vs last week), produces an up arrow or a down arrow: =IF(B2A2, ⇧, ⇩) For the arrow themselves, I used two unicode arrow symbolshttp://en.wikipedia.org/wiki/Arrow_(symbol) . Last I applied some conditional formatting to the column, specifying that the font color should be green if the cell contains an up arrow, and red otherwise. -- R. On 26 September 2011 08:35, eric engen engen1e...@gmail.com wrote: i'd rather have it show up in google docs but if their's only a way (and i've noticed that there is a possibility to publish said document to the net for free) to do this with an online document that thats just what i'll have to deal with. thanks again On 25 ספטמבר, 20:55, ChartMan chart...@google.com wrote: Do you need this table with arrows to show up in Docs or just in a web page? On Sep 25, 2011 4:44 PM, eric engen engen1e...@gmail.com wrote: hi and thanks in advance to any and everyone who will take the time to answer my question. at the firm i work in we use google docs a lot and i would like to have somekind of script or something that will show me a small up/down arrow for different cells by comparing them to a value from last week( i have a sheet for every week of the month) if i wasnt clear enough then: last week say my new york shop sold 5000$ of goods and this week 3000$ of goods and i want to have a small red arrow indicating that the sale of the new york store has gone down as opposed to last week thank you for any help' im not a programmer but i know my way around computers and i believe with just a few small nudges in the right direction i will get the results i need -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -הסתר טקסט מצוטט- -הראה טקסט מצוטט--הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Using Google Chart API in chrome extension
I explored the topic a bit more. Here are the findings. For charts that use iframes (such as LineChart and most of the 'corechart' package, which renders its SVG contents into an iframe created inside the chart container element you specify) there are some limitations in the code that prevent the rendering to occur correctly when the chart code is loaded in a different Window than the one where the chart is placed (as it happens here, where the code is loaded in the background page and the chart is rendered in the popup page, and as it may happen in other multi-frame scenarios). Also, for charts that rely on additional resources (such as the Table visualization, which loads a style CSS file on the fly when used) such resources as well appear to be added to the Window where the code executes (the background page) rather than the Window where the chart is placed (the popup), resulting in either a non-working or un-styled visualization (depending on the loaded resources). So I'd say that for the moment, the trick of loading the chart API in the background page to speed up the rendering of the extension popup is a no-go. -- R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/am6ZkYD0eVkJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: arrow formatting with google docs info
If the input data are in a separate sheet of the same Google document, then you can still use the same logic. The function just changes to reference a different sheet: =IF(Sheet1!B2Sheet1!A2, ⇧, ⇩) I have updated the document to contain the same arrows in Sheet2, referencing the contents of Sheet1. Or am I missing something? The ArrowFormatter you found is useful if you accept to put your data inside a Tablehttp://code.google.com/apis/chart/interactive/docs/gallery/table.htmlvisualization and host the visualization in a webpage, separate from your spreadsheet (I don't think there's a way to use formatters when embedding visualizations as gadgets inside a spreadsheet, unless you're willing to roll out some code of your own to do so). -- R. On 26 September 2011 13:00, eric engen engen1e...@gmail.com wrote: its a pain of a workaround 'cause i really need the function to draw its info from another sheet(within the same document) i found this http://code.google.com/intl/iw-IL/apis/chart/interactive/docs/reference.html#arrowformatter but i have no idea how to use it On 26 ספטמבר, 14:52, ChartMan chart...@google.com wrote: Reading my mind :-) On Sep 26, 2011 12:28 PM, Riccardo Govoni ☢ battleho...@gmail.com wrote: Would something like this be good enough? https://docs.google.com/spreadsheet/ccc?key=0Av88pFrCTjLhdFhqMVVTZzZJ... I used a combination of spreadsheet functions, unicode characters and conditional formatting. First I defined a function https://docs.google.com/support/bin/static.py?page=table.cstopic=25273 that, depending on the comparison of 2 cells (this week vs last week), produces an up arrow or a down arrow: =IF(B2A2, ⇧, ⇩) For the arrow themselves, I used two unicode arrow symbolshttp://en.wikipedia.org/wiki/Arrow_(symbol) . Last I applied some conditional formatting to the column, specifying that the font color should be green if the cell contains an up arrow, and red otherwise. -- R. On 26 September 2011 08:35, eric engen engen1e...@gmail.com wrote: i'd rather have it show up in google docs but if their's only a way (and i've noticed that there is a possibility to publish said document to the net for free) to do this with an online document that thats just what i'll have to deal with. thanks again On 25 ספטמבר, 20:55, ChartMan chart...@google.com wrote: Do you need this table with arrows to show up in Docs or just in a web page? On Sep 25, 2011 4:44 PM, eric engen engen1e...@gmail.com wrote: hi and thanks in advance to any and everyone who will take the time to answer my question. at the firm i work in we use google docs a lot and i would like to have somekind of script or something that will show me a small up/down arrow for different cells by comparing them to a value from last week( i have a sheet for every week of the month) if i wasnt clear enough then: last week say my new york shop sold 5000$ of goods and this week 3000$ of goods and i want to have a small red arrow indicating that the sale of the new york store has gone down as opposed to last week thank you for any help' im not a programmer but i know my way around computers and i believe with just a few small nudges in the right direction i will get the results i need -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -הסתר טקסט מצוטט- -הראה טקסט מצוטט--הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -הסתר טקסט מצוטט- -הראה טקסט מצוטט--הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post
Re: [visualization-api] Re: categoryPicker filterColumn for AnnotatedTimeLine
I understand you're trying to perform column-based filtering on the series your annotated timeline will display. This is not directly supported by the 'controls' API (which was initially designed for row-based filtering) but there are workarounds for this. Have a look at this thread where I discussed the same issue: https://groups.google.com/d/topic/google-visualization-api/fhwUv_QKfWA/discussionand proposed a working example. Also consider that the 'controls' API at the moment works fully client-side (you have to load the entire table and the controls take care of selecting the right views based on user input ). We are currently collecting usage feedback while the api is still marked as 'experimental' , so if you have a specific scenario, feel free to describe it (as said, we're already aware that column filtering would be nice to have). -- R. On 23 September 2011 17:29, asgallant drew_gall...@abtassoc.com wrote: The frequency of querying also comes into play. If users are going to end up viewing most, if not all, of the columns in a single session, then query once and be done with it. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/RW5HHfEIl8EJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Dashboard with two related datasources and charts.
So you want a set of controls on dashboard 1 to drive the contents (filters and charts) of a second dashboard, and the two dashboards are fed with different datatables, right ? If so, there isn't a pre-cooked way of joining together the two, because of the nuances of 'translating' the filtering criteria defined by the filters in dashboard1 into an equivalent filtering operation over dashboard2, which is however populated by a different datatable that may be structurally different. Citing your post, the key operation is disambiguate what related means in another datasource that contains related information. That said, are a couple of ways in which you can accomplish this. For example: - you populate each dashboard separately, having each dashboard query its own datasource. - whenever a control in dashboard1 fires a 'statechange' event (indicating it received user interaction), you manually filter the datatable that powers dashboard2 and then call dashboard2.draw(datatable) again, forcing dashboard2 to align itself to the filters' status in dashboard1. Alternatively: - you create, in dashboard2, a set of 'hidden' controls that mimic those of dashboard1 that you want to affect the second dashboard, and you wire together controls from the first dashboard to propagate their state to controls of the second. Have a look at this example: https://gist.github.com/1242360 . I create 2 dashboards. The first contains a 'stringfilter' on the Name column. The second one contains another stringfilter, but on a different column (Fruit) and I keep it hidden via a display:none style. When the user interacts with the former, I propagate the change to the latter via: google.visualization.events.addListener(control1, 'statechange', function() { control2.setState(control1.getState()); control2.draw(); }); The end result is that the same filtering criteria the user entered on the first dashboard, is applied to the second as well. Does this resemble what you're trying to achieve? -- R. On 23 September 2011 00:45, Onno Benschop o...@itmaze.com.au wrote: Before I start coding I'm trying to get my head around how this is intended to hang together. Links and/or sample code would be a bonus, but really I'm trying to get it. I have a working Dashboard that uses a datasource to draw controls, a map and a table (and thanks to this forum, you can now click on the table and highlight the map and vice versa). I started with the Airport, Country, Region, City example and took my lead from there. I have another datasource that contains related information that I'd like to display in the same Dashboard in such a way that the existing controls also affect the filters of the second datasource and its charts. I could make another handleQueryResponse() handler and link the two with onReady eventListeners, but that seems clunky, given that there are join() and bind() functions which clearly give you the notion that you can join two tables and deal with the result. Alternatively, in my initialization handler I could fire off another query - to my second datasource, have it be handled by the original handleQueryResponse() handler and somehow (since this is asynchronous) join that to the other datasouce, or should this be dealt with in another way? How is this expected to be glued together? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: categoryPicker filterColumn for AnnotatedTimeLine
When you said The categories that I want to filter on are in fact the column headers I thought you wanted to use a CategoryFilter to decide which columns to retain of the input DataTable. Is that correct ? If so, can't you operate this way: Given the input datatable, - extract all column headers from it - create a CategoyFilter and use the extracted column headers for its ' valueshttp://code.google.com/apis/chart/interactive/docs/gallery/controls.html#categoryfilter' option. This will let you pick among column headers. - forget the filterColumnIndex parameter as said in the other thread. - listen for statechange events. Once one comes in, use getState() to get which column headers the user has picked, map them to column positions, create a suitable view and feed it to the Annotated timeline as shown in the other thread. Granted, it's still a workaround that only partially uses the API, so it's debatable whether it's better or not than rolling your own custom thing, but doesn't it do the job? Or are you trying to do something different by populating the CategoryFilter with all the contents of a specific column? -- R. On 26 September 2011 16:40, Dan daniel.duff...@gmail.com wrote: Hi Riccardo, I can see what you have done, but think this only works for using the slider. You mention in the other thread that you have to specify a filterColumnIndex as it is mandatory but it won't be used. However as I want to use the controlPicker control and this will make use of the filterColumnIndex value, as all the values in the dropdown box will still be that of the column rather than the contents of the header row. I think I'll have to build my own control until the ability to use control filters to filter columns rather than just rows is available. Do you think this is something that will be available in a later release? One other thing, I should probably create a new thread for it. Is the Query Language likely to be able to join between multiple tables in the future? Thanks, Dan -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/qKupNYKfJ-sJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Character limits on visualization header with Fusion Table
This was discussed recently. It's a bug on fusion tables side. Have a look at this thread ( https://groups.google.com/forum/#!topic/google-visualization-api/MG4kurSZr5s) for info on the bug and how to track it. --R. On Sep 26, 2011 9:23 PM, Jonathan jpdp...@gmail.com wrote: I'm trying to populate a table visualization with information from a Fusion Table, but I'm noticing that the column heads have a 10 character limit. I have more than 10 characters in my heads, and it looks like Google has the same problem on their example http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/gviz_datatable.html ('Scoring Te' instead of 'Scoring Team') How do i increase the number of characters shown in those table headers? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Chart affecting other css on the page
The issue is not with the chart, but with the CSS structure of the page. Since your menu uses a float:left, it does not affect sizing of the other block level elements you have on the page. Therefore your #chart_div div (where the chart is placed) is allowed to span the entire width of the page (although its contents will obviously respect the float and be arranged around it). Since the #chart_div is placed after the menu in the html structure of the page, it ends up sitting above the float, hence stealing the hover event. You can verify it by using Firebug or the Chrome element inspector to analyze the layout structure of the page. You can fix it by adding 'margin-left: 7em' to your chart_div (or something equivalent), placing the chart_div inside a table (because the table will respect the float in its positioning) or marking the chart_div itself as float:left (hence forcing its left margin to not expand past the right margin of the menu). -- R. On 24 September 2011 22:33, Gavin qofdatab...@googlemail.com wrote: I have a menu in a div which floats to the left of the chart. The menu uses css hover to change colour when the mouse is over it. This works unless it is on the same horizontal level as the chart. See http://www.mythic-beasts.com/~gjamie/test.html This behaviour is the same in Firefox and Chrome. Surely the chart code should not spill out of its div? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Missing Gauge Chart features
Hi Tigro, can you better clarify which features you are missing? I think all your requirements are supported. Look at this example: http://savedbythegoog.appspot.com/?id=ef4e85c6d294dc143f49e1e16b75aa2f7027b6eb (view the source code of it for the actual options I used). which uses a custom -30 - 50 scale and custom markers for green, yellow and red ranges. Isn't that what you need? -- R. On 23 September 2011 20:54, Tigro bart.boela...@gmail.com wrote: Hi, I'm using the Google Gauge Chart in my home monitoring project for displaying temperatures and humidities of various rooms. While playing with the Google Gauge API, I stumbled across the following missing features : - ability to provide a scale (minimum and maximum value) - numbers provided should follow the scale - numbers given to green from/to, yellow from/to and red from/to should follow the scale - ability to provide negative numbers e.g. for temperatures, I would like to present a scale from -30°C to 50°C. When supplying a temperature value of 20, the arrow should point to 20. I hope the guys at Google implement these features in one of their next revisions. Kind regards, Bart. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] DataTable - Header row
I'm sorry but I don't think the Table visualization allows for this kind of header formatting (having an header spanning multiple rows, with sub-headers as you describe). -- R. On 23 September 2011 19:01, Bharat bcrupa...@yahoo.com wrote: Is there any way to be able to format the Header rows for a DataTable? Here is the scenario: I have Base Volume for Oil and Base Volume for Gas. In an HTML table, I can easily merge columns to put the Base Volume up Top and then Oil and Gas below. |Base Volume| - | Oil | Gas | This allows me to shrink the width of Oil and Gas columns each so that I can display more data without have to do horizontal scrolling. Thanks. Bharat -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Using Google Chart API in chrome extension
I played with this for a few minutes. As you suggest, I try loading the api in the background page (so this happens only once), and then access it in the popup page via: var background = chrome.extension.getBackgroundPage(); 'background' now points to the window object of the background page, so you can access the Google Visualization api, for example: background.google.visualization.DataTable. You can see an example at https://gist.github.com/1240641. The issue I face is that the chart that is created in the popup window is empty. More specifically, the chart rendering process creates an iframe (where the chart svg is placed) and said iframe appears to be empty. I tried a few alternatives, but in all cases I end up with an empty iframe: - executing the draw code in background page context, but pointing to the popup page DOM via chrome.extension.getViews({type: popup})[0] - drawing in the background page and then copying the created chart in the popup page via cloneNode(). I don't have much time right now to follow up, but I suspect the charts code fails drawing when the document hosting the target chart container is not the same document which hosts the API (although I couldn't find any specific js errors while debugging). Alternatively, there could be restrictions in the chrome extensions model to prevent popup page accessing the contents of iframes created by the background page (although this seems likely, if I know chrome extensions well enough). I'll try to look a bit further into this if I have time, in case nobody picks this up before. -- R. On 22 September 2011 06:01, Andrey andrey.skladchi...@gmail.com wrote: Hello. i using a Google Chart API in my chrome extension popup page. But it is unuseful that api loading every time popup showing. Can i and how i can load API script in background page and call it from popup page to increase popup open speed? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Data table for a large database_table
How large is your database table? The usual limitation comes from the fact that the Google Visualization API is a Javascript API, hence you can't store huge amounts of data on any Javascript datastructures (be it a google.visualization.DataTable or a plain JSON object) before the browser starts to suffer and slow down. You may achieve different results depending on the browser/platform combination, but from my experience datasets of a few hundred thousands cells (say, a datatable with 20K rows and 10 columns) are the threshold at which the performances start to fall apart. The bottleneck depends on the browser and it may be on raw javascript parsing speed, memory consumption or DOM manipulation speed. Some browsers (for example, old versions of IE, or mobile browsers) fall apart way before that limit, and even a few thousand cells are enough to cause trouble. Another issue you might want to consider is the byte size of such table and how long it would take to transfer it to the client on typical network bandwidths. Depending on your needs, sometime is better to go for specialized datastructures tailored for your case. This one is an example of a very specific case of datastructure specialization: http://ejohn.org/blog/javascript-trie-performance-analysis/ -- R. On 23 September 2011 07:30, orkun ahmettemi...@gmail.com wrote: hello I was wondering whether it was possible to use Google Visualization API -data table for a large database_table. Or do you recommend another one ? regards -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Dashboard - addListener 'select' - not working
I think you are attaching the 'ready' listener to the wrong object. Your line reads: google.visualization.events.addListener(*visualization*, 'ready', onReady); But I'm not sure what 'visualization' points to. Instead you should attach the listener to the dashboard, and for this you have to assign the google.visualization.Dashboard instance to an object. var *dashboard* = new google.visualization.Dashboard(document.getElementById('dashboard')); dashboard.bind(CyPicker, [TmPicker, NrPicker, TrPicker]). bind(TmPicker, [map1, table1, chart1]). draw(data); google.visualization.events.addListener(*dashboard*, 'ready', onReady); function onReady(...) { ... } The above code reads: when the dashboard is ready (aka, it has completed drawing at least once and hence all the controls and charts part of it are guaranteed to exist), then you attach selection handlers. Does it make sense? -- R. On 23 September 2011 00:27, Onno Benschop o...@itmaze.com.au wrote: That worked a treat. The code now looks like this: new google.visualization.Dashboard(document.getElementById('dashboard')). bind(CyPicker, [TmPicker, NrPicker, TrPicker]). bind(TmPicker, [map1, table1, chart1]). draw(data); google.visualization.events.addListener(table1, 'select', function() { map1.getChart().setSelection(table1.getChart().getSelection()); }); google.visualization.events.addListener(map1, 'select', function() { table1.getChart().setSelection(map1.getChart().getSelection()); }); While investigating I did some experimentation with the 'ready' listener for the Dashboard, but that didn't work as expected (I got an error about a being null). I came across the documentation that said that I should use this method because there was no guarantee that the listener could be added if the Dashboard wasn't ready. The document is here: http://code.google.com/apis/chart/interactive/docs/reference.html#chartwrapperobject The actual error I got was: Error: a is undefined Source File: http://www.google.com/uds/api/visualization/1.0/cd9282b3113b5d80b6043070ddbc00e4/default,map,controls,table,corechart.I.js Line: 282 The code that generated that error was: new google.visualization.Dashboard(document.getElementById('dashboard')). bind(CyPicker, [TmPicker, NrPicker, TrPicker]). bind(TmPicker, [map1, table1, chart1]). draw(data); google.visualization.events.addListener(visualization, 'ready', onReady); function onReady() { google.visualization.events.addListener(table1, 'select', function() { map1.getChart().setSelection(table1.getChart().getSelection()); }); google.visualization.events.addListener(map1, 'select', function() { table1.getChart().setSelection(map1.getChart().getSelection()); }); } Note that I also tried with a different variable scope, I defined both map1 and table1 in the global scope, unlike in the working code at the beginning of this message where the scope of map1 and table1 are within my handleQueryResponse() handler. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Dashboard - addListener 'select' - not working
Try binding the 'ready' event listener before you draw the dashboard: var dashboard = new google.visualization.Dashboard(); google.visualization.events.addListener(dashboard, 'ready', function() {}); dashboard.bind().bind().bind().draw(data); (I suspect the 'ready' event coming out of draw() might fire before you attach the handler to it, which may happen in some conditions). If that doesn't work, I really need to have access to a sample page containing your dashboard to debug it to figure out what's going wrong. -- R. On 23 September 2011 12:05, Onno Benschop o...@itmaze.com.au wrote: I appreciate your insight and I understand what you're saying. It turns out that the visualization variable came from the original sample code and it wasn't being used at all ;) I replaced it with dashboard, instantiated it instead of creating an anonymous object, then attached the listener to the dashboard variable. Same error. I also tried using an anonymous function in the 'ready' addListener, with no effect. The documentation I referred to in my previous message tells me that what I'm doing is wrong and tells me that my code won't be called, but I'm not seeing that. I wonder if the reason it's working for me is that I'm not calling an external function, but an anonymous one in my addListener like this works: google.visualization.events.addListener(table1, 'select', function() { map1.getChart().setSelection(table1.getChart().getSelection()); }); And this doesn't work: dashboard = new google.visualization.Dashboard(document.getElementById('dashboard')). bind(CountryPicker, [TeamPicker, NearPicker, TrailorPicker]). bind(TeamPicker, [map1, table1]). draw(data); google.visualization.events.addListener(dashboard, 'ready', function() { google.visualization.events.addListener(table1, 'select', function() { map1.getChart().setSelection(table1.getChart().getSelection()); }); google.visualization.events.addListener(map1, 'select', function() { table1.getChart().setSelection(map1.getChart().getSelection()); }); }); -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] How to change the color of Row Header
Have a look at cssNames option, as described in the documentation ( http://code.google.com/apis/chart/interactive/docs/gallery/table.html ) which lets you assign a specific CSS style both to the header row and header cells. You can then apply the color scheme of your choice to that CSS class. -- R. On 23 September 2011 13:50, Patel funt...@gmail.com wrote: How to change the background color of Name, Height and Smokes? function drawVisualization() { // Create and populate the data table. var data = new google.visualization.DataTable(); data.addColumn('string', 'Name'); data.addColumn('number', 'Height'); data.addColumn('boolean', 'Smokes'); data.addRows(3); data.setCell(0, 0, 'Tong Ning mu'); data.setCell(1, 0, 'Huang Ang fa'); data.setCell(2, 0, 'Teng nu'); data.setCell(0, 1, 174); data.setCell(1, 1, 523); data.setCell(2, 1, 86); data.setCell(0, 2, true); data.setCell(1, 2, false); data.setCell(2, 2, true); // Create and draw the visualization. visualization = new google.visualization.Table(document.getElementById('table')); visualization.draw(data, {allowHtml: true}); } In this example: http://code.google.com/apis/ajax/playground/?type=visualization#table -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Interaction with Scatter Plot
At the moment the scatter plot does not offer any visual highlight for selection events (that is, the selection is registered, but the selected point is not visually differentiated from the others, see https://groups.google.com/d/topic/google-visualization-api/jwLMkhwKP6c/discussion), so plain setSelection won't work for you. Other team members might detail whether changes are happening in this area or not, because I'm not fully up-to-date on this. In the meanwhile, since the scatterplot uses a separate color for each data serie (each datatable column) an alternative solution might be the following: - when a point is selected (via setSelection or by user click), identify the correspondent datatable row and move the cell containing the point value to a separate column (this will trigger a color change) and redraw the visualization. - when another point is selected, revert the previous change and apply the previous step. I haven't explicitly coded this, but I think it should work, although it's a non trivial amount of helper code to write. -- R. On 23 September 2011 10:09, Maxim Colls collsma...@gmail.com wrote: Hi, I'm trying to interact with the Scatter Plot. What I want to do is to highlight / change the color of a point dynamically. I tried with setSelection method but it doesn't seem to work. Thanks, Màxim -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Interaction with Scatter Plot
You're right, for some reason I ended up thinking you'd need to generate/destroy rows, while you can just use nulls in place of values during the shift. Thanks. You might want to cache the last shifted value, to avoid having to scan the entire datatable on each 'select' event to unshift it. Also, I think you want to set the col2 value before erasing col1 value to null. Working demo: http://jsfiddle.net/Ry6AA/3/ ( which deselects if you click on a previously selected item). -- R. On 23 September 2011 16:30, asgallant drew_gall...@abtassoc.com wrote: It shouldn't be that hard to implement: /* this adds a 'select' event listner that removes a point * from column 1 and adds it to column 2 (which changes * the point's color) * assumes: *data is the DataTable object, with data in column 1 and an empty column 2 *chart is the Chart object *options is an object of chart options * highlighted elements that are re-selected stay highlighted * highlighted elements that are not re-selected get returned * to column 1 */ new google.events.addListener(chart, 'select', function() { // only change if data in column 1 is selected if (data.getSelection()['column'] == 1) { // return previous highlighted elements to column 1 for (i = 0, i data.getNumberOfRows; i++) { if (data.getValue(1, 2) != null) { data.setValue(i, 1, data.getValue(i, 2)); data.setValue(i, 2, null); } } // add this element to column 2 var row = data.getSelection()['row']; data.setValue(row, col, null); data.setValue(row, 2, data.getValue(row, 1)); chart.draw(data, options); } }); -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/hi1UtDbwPK0J. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Google motion charts short names
Have you checked whether the DataTable that comes from the fusion tables datasource contains the full name of the columns? I seem to remember there was a truncation issue where a DataTable coming out of Fusion Tables would contain truncated column labels (so the issue would be on fusion tables side and not on the motion chart). I never followed up so I'm not sure whether this is still the case. -- R. On 22 September 2011 11:35, ChartMan chart...@google.com wrote: Sorry there is no way to control that section of the motion chart. On Thu, Sep 22, 2011 at 12:20 PM, Francis Warui fnwa...@gmail.com wrote: ChartMan. Thanks for your reply . I have shared the screen-shot of the motion. I will like to show the complete attribute names on the chart since at the moment it is not showing the full name as it is in fusion table. On Thu, Sep 22, 2011 at 11:51 AM, ChartMan chart...@google.com wrote: Please send a screenshot of what you are describing. Thanks ChartMan On Tue, Sep 20, 2011 at 4:32 PM, Was fnwa...@gmail.com wrote: I will like to show the full column name on my motion charts (X and Y axis), at the moment it show just part of the name. any idea on how I can do this? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- *Francis Warui* | *Geo Consultant* | Mobile: *+254 (0) 736-025235* Email: f*nwa...@gmail.com* fnwa...@gmail.com or * warui23...@alumni.itc.nl * Skype: *fnwarui* | Website:* **www.mulikamwizi.com*http://www.mulikamwizi.com -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Google motion charts short names
So it does indeed appear to be a truncation performed by Fusion Tables itself. I did a quick search and it turns out it was already discussed in the fusion tables forum: http://code.google.com/apis/fusiontables/groups/fusionTablesApiGroup.html?place=topic%2Ffusion-tables-users-group%2FX1YFeZXebQo%2Fdiscussion (the thread also contains some suggestions on how to work around the issue). This is the opened issue on the bugtracker: http://code.google.com/p/fusion-tables/issues/detail?id=631 (star it to be notified of changes) And this one describes a workaround: http://code.google.com/p/fusion-tables/issues/detail?id=602 --R. On 22 September 2011 14:52, Francis Warui fnwa...@gmail.com wrote: Yes the data is coming from the fusion table. but if I load the same data to spreadsheet and generate a motin chart from it the labels arent truncated. 2011/9/22 Riccardo Govoni ☢ battleho...@gmail.com Have you checked whether the DataTable that comes from the fusion tables datasource contains the full name of the columns? I seem to remember there was a truncation issue where a DataTable coming out of Fusion Tables would contain truncated column labels (so the issue would be on fusion tables side and not on the motion chart). I never followed up so I'm not sure whether this is still the case. -- R. On 22 September 2011 11:35, ChartMan chart...@google.com wrote: Sorry there is no way to control that section of the motion chart. On Thu, Sep 22, 2011 at 12:20 PM, Francis Warui fnwa...@gmail.comwrote: ChartMan. Thanks for your reply . I have shared the screen-shot of the motion. I will like to show the complete attribute names on the chart since at the moment it is not showing the full name as it is in fusion table. On Thu, Sep 22, 2011 at 11:51 AM, ChartMan chart...@google.com wrote: Please send a screenshot of what you are describing. Thanks ChartMan On Tue, Sep 20, 2011 at 4:32 PM, Was fnwa...@gmail.com wrote: I will like to show the full column name on my motion charts (X and Y axis), at the moment it show just part of the name. any idea on how I can do this? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- *Francis Warui* | *Geo Consultant* | Mobile: *+254 (0) 736-025235* Email: f*nwa...@gmail.com* fnwa...@gmail.com or * warui23...@alumni.itc.nl * Skype: *fnwarui* | Website:* **www.mulikamwizi.com*http://www.mulikamwizi.com -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- *Francis Warui* | *Geo Consultant* | Mobile: *+254 (0) 736-025235* Email: f*nwa...@gmail.com* fnwa...@gmail.com or * warui23...@alumni.itc.nl * Skype: *fnwarui* | Website:* **www.mulikamwizi.com*http://www.mulikamwizi.com -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google
Re: [visualization-api] Re: Dashboard - addListener 'select' - not working
When using dashboards, you wrap the actual charts (the map, the table) in google.visualization.ChartWrapper instances. Therefore, the code to get the current selection becomes: map1.getChart().setSelection(table1.getChart().getSelection()); (notice the 'getChart' calls that resolve the chartwrapper into the underlying wrapped chart, which contains the actual selection information). This should get rid of the errors you are seeing. Let me know if selection propagation still doesn't work after the change and I'll investigate further. -- R. On 21 September 2011 02:54, Onno Benschop o...@itmaze.com.au wrote: Additional information, an error occurs if I click on the table or the map: table1.getSelection is not a function, and similarly, map1.getSelection is not a function. Am I missing something obvious? On Sep 21, 9:47 am, Onno Benschop o...@itmaze.com.au wrote: I am using a visualisation.Dashboard to combine some controls, a map, a table and a chart. When the visualisation is drawn, the table reflects the markers visible on the map as expected. I want the ability for the user to click on a marker and have the appropriate row highlighted and vice-versa. The working example code without using a dashboard looks like this: google.visualization.events.addListener(table, 'select', function() { map.setSelection(table.getSelection()); }); google.visualization.events.addListener(map, 'select', function() { table.setSelection(map.getSelection()); }); If I use this in my dashboard, nothing happens. I've tried adding the table and the map to the global scope, like the visualisation variable, but that made no difference. Within my draw handler the code snippet looks like this: new google.visualization.Dashboard(document.getElementById('dashboard')). bind(CyPicker, [TmPicker, NrPicker, TrPicker]). bind(TmPicker, [map1, table1, chart1]). draw(data); google.visualization.events.addListener(table1, 'select', function() { map1.setSelection(table1.getSelection()); }); google.visualization.events.addListener(map1, 'select', function() { table1.setSelection(map1.getSelection()); }); How do I attach a 'select' listener to a table and a map within a dashboard? What am I missing? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: chart wrapper/line chart dataview problem
Sorry, my bad, I've written my response too soon. ChartWrapper.draw() method does not accept a datatable parameter, so my suggestion to use: slider.draw(dataTable); lineChart.draw(dataTable); is wrong. Instead, I created this example http://jsfiddle.net/nPWYh/ which should accomplish what you want. The slider lets you operate a column-wise filtering of the datatable. The way it works is the following: - set up a ControlWrapper for the slider and give it the datatable in its 'dataTable' initialization parameter. - set up a ChartWrapper for the chart and give it the datatable in its 'dataTable' initialization parameter. - wire up the 'statechange' listener on the control - do _not_ use google.visualization.Dashboard but just manually draw() both the slider and the chart (for the reasons described above). - Whenever the statechange event fires, alter the chart 'view' and redraw it (note that to keep the example readable, I use a simplified filtering logic rather than the one you're using. As said, note that the 'controls' API was initially designed for row-level filtering, so the example goes a bit outside the beaten track. For example, the 'filterColumnIndex' parameter (which would instruct the control which column operate upon) is useless in this scenario, but still required by the API. -- R. On 20 September 2011 19:19, uover82 uove...@gmail.com wrote: Hi Richardo - thanks for the help This doesn't seem to work, unfortunately - dashboard bind/draw seems to be required for rendering, and wired/commenting the onControlChange() handler doesn't seem to have any impact. In any case, the row/column filtering problem remains. I'll keep working/looking - can you think of any other options? Thanks John On Sep 20, 8:17 am, Riccardo Govoni ☢ battleho...@gmail.com wrote: Thanks, here's the explanation for the behavior you see. Dashboards have been designed (in the current released status) to perform row-wise filtering. Therefore the dashboard.bind(slider, lineChart) line instructs the dashboard to filter the datatable row-wise whenever the slider is operated, and to feed the output of said filtering to the line chart. In addition to that, your code also listens for changes in the slider status and feeds a column-filtered view to the line chart. There's a race condition issue here (depending on which event handler is invoked first in response to slider changes, either yours or the dashboard one) which results in the weird behavior you experience. Since you are taking care of manually wiring the slider and the linechart together, you can get rid of : dashboard.bind( slider,lineChart ); dashboard.draw( dataTable ); and replace it with: slider.draw(dataTable); lineChart.draw(dataTable); basically removing all the dashboard management logic (which you don't need since it operates row-wise) and retaining only the control and the linechart which you manually draw and wire together with your onControlStateChange()handler. Would that work? -- R. On 20 September 2011 16:03, uover82 uove...@gmail.com wrote: Certainly, Richardo - thanks for the assistance. Here's the dashboard code: function responseHandler(response) { // Remove the loading message (if exists). var loadingMsgContainer = document.getElementById('loading'); loadingMsgContainer.style.display = 'none'; if (!gadgetHelper.validateResponse(response)) { // Default error handling was done, just leave. return; } dataTable = response.getDataTable(); var tx = prefs.getBool(haxis_time_format); if ( tx ) formatTimeXAxis( dataTable ); var ref = getMaxColumn( dataTable ); // Define a slider control for the y-axis. slider = new google.visualization.ControlWrapper({ 'controlType': 'NumberRangeFilter', 'containerId': 'control1', 'options': { 'filterColumnIndex': ref, 'minValue': 0, 'ui': { 'labelStacking':'horizontal','orientation':'vertical','label':'' } } }); google.visualization.events.addListener( slider,'statechange',onControlStateChange ); dashboard.bind( slider,lineChart ); dashboard.draw( dataTable ); }; function formatTimeXAxis( _table ) { // format the x-axis in time-only format. var v; var sp; for ( var i = 0;i_table.getNumberOfRows();i++ ) { v = _table.getValue( i,0 ); sp = v.indexOf( ' ' ); if ( sp 0 ) { ts = v.substring( sp+1,v.length ); _table.setValue( i,0,ts ); } } Also, using the default binding/linkage seems to produce similar results - filtered rows/columns. Let me know what you think - thanks John On Sep 20, 7:34 am, Riccardo Govoni ☢ battleho...@gmail.com wrote
Re: [visualization-api] chart wrapper/line chart dataview problem
Would you mind pasting the code you use to assemble the google.visualization.Dashboard as well, if any? I suspect you are using a google.visualization.Dashboard linking together the slider with the linechart, _and_ your own onControlStateChange callback. The former is geared toward performing row filtering (that's the way dashboards work by default), while your code performs the column filtering. The combination of the two is likely to generate the problem you describe. -- R. On 20 September 2011 15:25, uover82 uove...@gmail.com wrote: Hi All, I'm working with a dashboard linking a slider with a line chart filtering/displaying multiple columns/series. Things work well/as expected to some extent. However, within certain filter ranges, the underlying data table seems to begin filtering row data as well as columns, which is the problem. Here's some related code snippets: function onControlStateChange() { var controlState = slider.getState(); var filteredView = filterView( dataTable,controlState.lowValue,controlState.highValue ); lineChart.setView( filteredView.toJSON() ); lineChart.draw(); } function filterView( _table,_min,_max ) { // filter a data table by min, max column values, producing a data view. var validColumns = [ 0 ]; var cellValue; var valid; for ( var i = 1;i_table.getNumberOfColumns();i++ ) { valid = true; for ( var j = 0;j_table.getNumberOfRows() valid;j++ ) { cellValue = _table.getValue( j,i ); if ( (cellValue _min || cellValue _max) cellValue != null ) valid = false; } if ( valid ) validColumns.push( i ); } var filteredView = new google.visualization.DataView( _table ); filteredView.setColumns( validColumns ); return filteredView; } validColumns data appears to remain correct/consistent, while the underlying data table/chart seems to suffer the problem in some filter ranges. Has anyone else experienced this issue and/or know of a remedy? Thanks John -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: chart wrapper/line chart dataview problem
Thanks, here's the explanation for the behavior you see. Dashboards have been designed (in the current released status) to perform row-wise filtering. Therefore the dashboard.bind(slider, lineChart) line instructs the dashboard to filter the datatable row-wise whenever the slider is operated, and to feed the output of said filtering to the line chart. In addition to that, your code also listens for changes in the slider status and feeds a column-filtered view to the line chart. There's a race condition issue here (depending on which event handler is invoked first in response to slider changes, either yours or the dashboard one) which results in the weird behavior you experience. Since you are taking care of manually wiring the slider and the linechart together, you can get rid of : dashboard.bind( slider,lineChart ); dashboard.draw( dataTable ); and replace it with: slider.draw(dataTable); lineChart.draw(dataTable); basically removing all the dashboard management logic (which you don't need since it operates row-wise) and retaining only the control and the linechart which you manually draw and wire together with your onControlStateChange()handler. Would that work? -- R. On 20 September 2011 16:03, uover82 uove...@gmail.com wrote: Certainly, Richardo - thanks for the assistance. Here's the dashboard code: function responseHandler(response) { // Remove the loading message (if exists). var loadingMsgContainer = document.getElementById('loading'); loadingMsgContainer.style.display = 'none'; if (!gadgetHelper.validateResponse(response)) { // Default error handling was done, just leave. return; } dataTable = response.getDataTable(); var tx = prefs.getBool(haxis_time_format); if ( tx ) formatTimeXAxis( dataTable ); var ref = getMaxColumn( dataTable ); // Define a slider control for the y-axis. slider = new google.visualization.ControlWrapper({ 'controlType': 'NumberRangeFilter', 'containerId': 'control1', 'options': { 'filterColumnIndex': ref, 'minValue': 0, 'ui': { 'labelStacking':'horizontal','orientation':'vertical','label':'' } } }); google.visualization.events.addListener( slider,'statechange',onControlStateChange ); dashboard.bind( slider,lineChart ); dashboard.draw( dataTable ); }; function formatTimeXAxis( _table ) { // format the x-axis in time-only format. var v; var sp; for ( var i = 0;i_table.getNumberOfRows();i++ ) { v = _table.getValue( i,0 ); sp = v.indexOf( ' ' ); if ( sp 0 ) { ts = v.substring( sp+1,v.length ); _table.setValue( i,0,ts ); } } Also, using the default binding/linkage seems to produce similar results - filtered rows/columns. Let me know what you think - thanks John On Sep 20, 7:34 am, Riccardo Govoni ☢ battleho...@gmail.com wrote: Would you mind pasting the code you use to assemble the google.visualization.Dashboard as well, if any? I suspect you are using a google.visualization.Dashboard linking together the slider with the linechart, _and_ your own onControlStateChange callback. The former is geared toward performing row filtering (that's the way dashboards work by default), while your code performs the column filtering. The combination of the two is likely to generate the problem you describe. -- R. On 20 September 2011 15:25, uover82 uove...@gmail.com wrote: Hi All, I'm working with a dashboard linking a slider with a line chart filtering/displaying multiple columns/series. Things work well/as expected to some extent. However, within certain filter ranges, the underlying data table seems to begin filtering row data as well as columns, which is the problem. Here's some related code snippets: function onControlStateChange() { var controlState = slider.getState(); var filteredView = filterView( dataTable,controlState.lowValue,controlState.highValue ); lineChart.setView( filteredView.toJSON() ); lineChart.draw(); } function filterView( _table,_min,_max ) { // filter a data table by min, max column values, producing a data view. var validColumns = [ 0 ]; var cellValue; var valid; for ( var i = 1;i_table.getNumberOfColumns();i++ ) { valid = true; for ( var j = 0;j_table.getNumberOfRows() valid;j++ ) { cellValue = _table.getValue( j,i ); if ( (cellValue _min || cellValue _max) cellValue != null ) valid = false; } if ( valid ) validColumns.push( i ); } var filteredView = new google.visualization.DataView( _table ); filteredView.setColumns( validColumns ); return filteredView
Re: [visualization-api] Re: excel vs google charts capabilities
For your purpose you don't really need to have the entire spreadsheet functionality available, do you? If so, to easen the load when accessed via tablets, you could try serving the interactive functionality and charts outside of the spreadsheet. This would be a combination of: - exporting the scripts to be accessed as services ( http://code.google.com/googleapps/appsscript/guide_user_interfaces.html#RunDecision ) - export the charts by embedding them into an html page of yours and accessing the spreadsheet data via queries ( http://code.google.com/apis/chart/interactive/docs/queries.html ). In this way you'd rely on Google Spreadsheets to host and manipulate your data, but not on it for the view/presentation part. Now, I'm not sure how much more complicated your case becomes if you use the above suggestions. It looks like it's approaching a complexity where you should consider whether it's worth bending Google Spreadsheets to fit your case or it might be just easier to code a small custom app for the case at hand. -- R. On 15 September 2011 15:29, Megan Cunniff mcunn...@wellesley.edu wrote: Thank you both for your helpful responses! Riccardo's solution was indeed very light on code, and easy to work out. Bad news was that the in-spreadsheet chart plus the script functions ended up lagging a bit too badly on the iPads we tested with, so we'll probably have to end up looking into other things. (If anyone knows of any other HTML5-based slash iPad-suitable alternatives, I'd love to hear back...though, heh, I feel bad writing that on a Google forum...) Still, very good practice and now I know about the option for other things! Thanks again! -M -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] problem to display line in line chart
Do you have any example or webpage we can look at where we can try reproducing the problem? It's difficult to understand what the problem is without actually seeing it. The same also applies to the other thread you just started Browser Compatibility with line Chart. An example containing the problem might help. Thanks, -- R. On 16 September 2011 09:53, kanu kanchan.pr...@gmail.com wrote: Hell All, I have try to display line chart in my module, by using PHP. On my display page the chart is display but the line with different color is not display. When mouse over on that chart, i also show the tool tip, with given value but not display lines. Please reply -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] How create real time graphs??
If you use ChartWrapperhttp://code.google.com/apis/chart/interactive/docs/reference.html#chartwrapperobject to draw your charthttp://code.google.com/apis/chart/interactive/docs/drawing_charts.html#chartwrapper then you can set a refresh interval that it will tell the chart how often to query the datasource for fresh data (assuming your chart is pulling data from a remote datasource whose contents are constantly changing) and redraw itself. Since the Annotated Timelinehttp://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html is based on Flash, you should set its allowRedraw option for optimized fast redraws to avoid the flickering that might occur when redrawing it frequently like you suggest. -- R. On 15 September 2011 09:41, fyno fergon...@gmail.com wrote: Hi all, I´m trying to create a dashboard with a Real Time Graph. I would like to use Annotated Time Line graph refreshing it each second (for example), but i don´t want to reload the webpage; i don´t know how to do it. I´m using javascript and JSP for this dashboard, so i´ll be very graceful if somebody could help me. Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] 500 row limit with table visualization
Where are you pulling data from? If it comes from fusion tables, they trim the output to 500 rows when queried using the Google Visualization API endpoint (you'd have to switch to their default API and do the format conversion on your own). If not, then I'm not aware of other limitations that cut at 500 rows. --R. On Sep 13, 2011 9:52 PM, Bmo bmom...@googlemail.com wrote: Hey all, I use the table visualization. My table show just 500 rows - instead of more than 2500. How can I get rid of this limitation? I use that template http://code.google.com/intl/de-DE/apis/chart/interactive/docs/gallery/table.html Thank you very much tj -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: 500 row limit with table visualization
The default API is what they call SQL API ( http://code.google.com/apis/fusiontables/docs/developers_guide.html ), so your url would look something like: https://www.google.com/fusiontables/api/query?sql= + encodeURIComponent('your select statement'); This would return you a CSV, but you can have fusion tables answer in JSONP format by adding a jsonCallback paramter. For example (with a datasource of mine): https://www.google.com/fusiontables/api/query?sql=select%20col0%2C%20col1%2C%20col4%2C%20col6%20from%20680149jsonCallback=myCallback As far as I know fusion tables SQL API is not capped by number of rows returned, so you should be able to get all your data in the json callback. The JSON format returned this way is not compatible with what the Google Visualization API expects, so from there you'd have to write some javascript to manually convert/load the json payload into a google.visualization.DataTable which you'll then use for your charts. As usual, some advices if you want to operate this way: - you might want to turn on pagination in your table visualization, as it may become slow when displaying / sorting / redrawing something in the order of thousands of rows (depending on the browser you're using). - fetching a datasource of your size in JSONP format may have a non negligible size on the wire (a few hundreds Kbs, depending on how much data your fetching?), so beware of latency introduced by the transfer time. -- R. On 14 September 2011 15:05, Bmo bmom...@googlemail.com wrote: Hey, sorry that I didn't mention that. Yes, I'm getting the data from fusion tables. How can I switch to the default API? Now, I am retrieving the data like this: script type=text/javascript id=script google.load('visualization', '1', {'packages':['table']}); function changeData(partei) { var queryText = encodeURIComponent(SELECT 'Location', 'Party' FROM 1160024); var query = new google.visualization.Query('http://www.google.com/ fusiontables/gvizdata?tq=' + queryText); query.send(getData); } function getData(response) { var table = new google.visualization.Table(document.getElementById('visualization')); table.draw(response.getDataTable(), {showRowNumber: true}); } /script Could you help me, fetching the data switching to the default API? Thank you so much, tj On 14 Sep., 08:46, Riccardo Govoni ☢ battleho...@gmail.com wrote: Where are you pulling data from? If it comes from fusion tables, they trim the output to 500 rows when queried using the Google Visualization API endpoint (you'd have to switch to their default API and do the format conversion on your own). If not, then I'm not aware of other limitations that cut at 500 rows. --R. On Sep 13, 2011 9:52 PM, Bmo bmom...@googlemail.com wrote: Hey all, I use the table visualization. My table show just 500 rows - instead of more than 2500. How can I get rid of this limitation? I use that template http://code.google.com/intl/de-DE/apis/chart/interactive/docs/gallery... Thank you very much tj -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Remote data with dashboard
Have a look at the example in this old thread: https://groups.google.com/forum/#!searchin/google-visualization-api/dashboard/google-visualization-api/1Bm581ezHRg/HcuTeigsIvwJ Basically you want to issue a google.visualization.Query and feed the datatable returned by the query into the Dashboard.draw() method. Is this what you're looking for? -- R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/aii7Y_-7gEIJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Filter by Date and Redraw
You can safely use getFilteredRows() and just call draw() again on the dashboard as a whole whenever the set of dates to filter upon changes. Consider this example: http://jsfiddle.net/hSBAF/ It has a dashboard and a button (to mimic your date filter) that filters the dashboard based on a given date range. When the button is pressed, a dataview is created using getFilteredRows() and then the dashboard is redrawn with such view. Everything should remain consistent. Try, for example the following: - enter 'birth' in the text input box - the dashboard only show birthdays - press the button - the dashboard now only shows birthdays ( respecting the text you previously entered) that happen in the future (respecting the date filter). -- R. On 8 September 2011 15:08, emstone ethan.marc.st...@gmail.com wrote: I have a date column in my table. I'm trying to make a form that triggers and event to filter the dashboard already present on the page. This is a workaround to the fact that there is no control type that can handle dates. Two questions for any wise soul... 1. How can I handle the filter given that the dates used for filtering are stored in variables as javascript dates? I prefer not to requery the data source for obvious reasons but I'm not sure that the getFilteredRows can compare the date column with a javascript date (that has the date/time). 2. What is the most efficient way to redraw the charts? Thanks! -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] how do i make legend disappear on a chart?
It should be enough for you to pass the legend: 'none' option ( http://code.google.com/apis/chart/interactive/docs/gallery/piechart.html#Configuration_Options) to 2 out of the 3 pie charts you have. (assuming all the pies show the same type of data, so one legend from one would work equally well for all the others. If you want to aggregate 3 separate legends with different contents into a single one there is not currently a readymade option to do that, so you'll have to do it on your own). /R. On 25 August 2011 17:24, doles sachin.d...@gmail.com wrote: New to google charts!! I cant find a method/function to remove the legend from a chart. What I ultimately want to achieve is to include 3 pie charts in one area and have them use the same legend. so one full pie shows accept/warn/reject of a certain characteristic, the second shows another char and the third yet another. so, i want to show only one legend and not repeat it for the three. i am looking into the dashboard mechanism, however, if you guys have any ideas for me, i will be thankful.! -- doles -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/B60A99umut4J. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Retrive values to the bar chart from my mysql database
Assuming you have a webserver that can connect to your database and expose the data contained therein, try having a look at the following example: http://code.google.com/apis/chart/interactive/docs/php_example.html It shows a skeleton example where a php script, hosted on the webserver, is used to feed data to a chart. You will have to extend the example to have the php code connect to your actual database and extract data from it (or convert the example to a different language if you cannot use php in your case). The topic has been discussed in the past in this forum, so also try searching through previous posts. I remember seeing examples for asp.net and a few other languages. /R. On 23 August 2011 08:49, Chathu chath...@gmail.com wrote: I wanted to show my database values in bar chart... how can i do this ? how to connect database to the charting \\/ -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Can anyone help me in knowing why we have to save the URL's before submitting to Google server.
I'm not sure I understand the question fully. You want to know how the Google Chart Servers transform a URL into an image bitmap and returns it to the caller? The process can be quite complicated, but in general terms you can expect it to work as follows: - the server listens for HTTP requests for chart generation - incoming http requests are parsed and tokenized to extract and normalize all the required chart parameters. - a bitmap of the requested size is prepared. The chart contents are generated according to a fairly complex set of rules and constraints to accomodate the user request (which chart to generate, which portion of the bitmap should be reserved for the chart vs accessory items like titles and legends, layouting, overlaying of different chart elements, etc...). The actual process is not public so I can't offer much details. - The bitmap is streamed back to the caller in an HTTP response with the appropriate mime type. /R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/vJOpHZfD7UUJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Add StringFilter dashboard controls to Table Visualisation header
Yes, I understand that. As a workaround, you can try artificially changing the width of the stringfilters to match the one of their corresponding column via CSS. You'd have to listen for the table 'ready' event. When it fires, use javascript to extract the width of each column and then assign the same width to the corresponding stringfilter. /R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/1Kd4KG3JC5EJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: motionchart API 'State'
The motionchart handles the state information as a sort of a black box and it doesn't not expose the full set of available state options. The way to use 'state' is to set up a motion chart with no state information, play with it until you have positioned it in the state you desire, then export the state string as described in http://code.google.com/apis/chart/interactive/docs/gallery/motionchart.html#Motion_Chart_initial_state and use the exported string as-is to redefine the 'state' parameter of your motion chart. /R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/k5T9xBOA-WQJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Can anyone help me in knowing why we have to save the URL's before submitting to Google server.
Hi there, I think we need a better clarification of which API / software you are using to issue charting requests against Google Chart servers. Both this question and the previous one you posted are not clear. They seem to reference an API that wraps the Google Charts calls, but it's difficult to say. If you give us more details, we might be able to answer your question, or at least direct you to the correct forums. Thanks, /R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/RTtd2lrBlxoJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: DataTable + Dashboard + Auto Charts
I don't think we have something like that. The controls library let users alter a datatable mostly row-wise (via filtering), although we are exploring alternatives for different kind of data manipulations. The ChartEditorhttp://code.google.com/apis/chart/interactive/docs/reference.html#google_visualization_charteditorlets the user customize the chart type and options given a specific ChartWrapper (that is, given a specific DataTable contained therein). But there is no readymade user interface for columnwise Datatable manipulation. I think what you want is a GUI whose input is a DataTable and whose output is a different DataTable (or Dataview) matching the user organization criteria. This fits in the scheme laid out by the controls library but such component does not exist yet. Feel free to file a feature requesthttp://code.google.com/p/google-visualization-api-issues/issues/listfor this. Part of the reason the 'controls' library exists in beta status is exactly to gather a better understanding of usage patterns from adopters. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/QBlLwtcKLMMJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: dashboard + string filter + multiple columns
Sorry, not at the moment. Controls currently operate on a single column only. By the way, should such filter operate in AND or OR mode (aka, should the user input match all the columns or just one for the datum not to be filtered out)? A possible way of doing it would be to create as many stringfilters as the number of columns you want to filter upon, hide all of them but one and programmatically copy the user input from the visible one into the hidden ones whenever the user types something. Seriously hack-ish, I wouldn't recommend going this way for anything else than a proof of concept. Alternatively, you might want to try rolling out your own. After all, stringfilter behavior is quite straightforward. You may define an input textbox that collects user input and scans a DataTable row-wise, creating as output a DataView containing only the rows whose cell values in the affected columns match the user input. Then feed such DataView to a Dashboard instance that contains the charts (and possibly other controls). /R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/iKL-hnAOVLAJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Can anyone help me in knowing why we have to save the URL's before submitting to Google server.
Thanks for the clarification. Unfortunately all the class names your code mentions (such as ErrorDataOrganizer and ChartURLGenerator ) are not part of the APIs that Google Charts exposes (or at least I have never encountered them), so I suspect there's another library between your code and the Google Charts API where the mentioned classes live and where you should be looking for answers. Where are classes such as ChartURLGenerator , ErrorDataOrganizer, ChartDownloader defined? Are they part of a public API ? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/dJJ_AE0rSEIJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Add StringFilter dashboard controls to Table Visualisation header
I would consider the following: a) if you have access to the DataTable that powers the Table visualization, you can iterate through its columns and create a StringFilter instance for each column. That is, you can automate the creation of StringFilter instances and dashboard assembly. Something like: var dataTable = ... var stringFilters = []; for (var i = 0; i dataTable.getNumberOfColumns(); i++) { stringFilters.push(new google.visualization.ControlWrapper({ controlType: 'StringFilter', ... options: { filterColumnIndex: i , ... } }); } var dashboard = new google.visualization.Dashboard(); dashboard.bind(stringFilters, table); dashboard.draw(dataTable); b) The StringFilter only requires you to specify its container element. You are free to visually arrange such containers as you prefer (including placing them above the table headers). Placing them inside the visualization (below the table headers) might prove a little trickier, since the table visualization does not allow this kind of customization for the output it produces. Also, the table uses horizontal scrollbars if you have set an explicit width and the number of columns exceeds that. You have some control over it via options like scrollLeftStartPositionhttp://code.google.com/apis/chart/interactive/docs/gallery/table.html . -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/0X52i5keQSIJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
[visualization-api] Re: Can anyone help me in knowing why we have to save the URL's before submitting to Google server.
So all these classes belong to Orbitz, as far as I can tell from the source code: * @author Fabian Becerra * Copyright Orbitz Worldwide As such, we cannot really help that much since that code does not belong to Google and we have no idea of why it is structured in a particular way rather than another (that is, why is saving the chart URLs into an intermediate CSV file). Maybe you should try contacting the original author or whoever was in charge of maintaining such code before it was handed over to you. Sorry can't help any further. /R. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/C0sfy3MYPLwJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] content=IE=EmulateIE7
Thanks for sharing, others have reported a few layering issues with IE7 (or IE7 emulation like your case). Please consider reporting a bug in the public issue trackerhttp://code.google.com/p/google-visualization-api-issues/issues/list, which will be updated as we work through the issues. /R. On 16 August 2011 18:26, c2billp c2bi...@gmail.com wrote: I suffered through the solution to a minor bug and thought i'd share what i found. Issue: Using filters (dashboard feature) when i place the filter div above the table div - the drop down menus associated with the filters would disappear behind the table. Applying z index and remove style sheets did no good. I finally tried modifying my emulate setting: old: meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / new: meta http-equiv=X-UA-Compatible / This solved the issue of the disappearing filter drop down. -bp -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] New bug with HTML table displaying data type of Date
As discussed in a few occasionshttps://groups.google.com/d/msg/google-visualization-api/bN4O7So-K-E/enCK0FCAInAJin the past, this is not bug, but the Javascript standard for Date representation. Months are numbered from 0 (January) to 11 (December), meaning that month 8 is actually the 9th, aka September. This is defined in the ECMAscript standard (section 15.9.1.4 of http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf) and also clarified in simpler terms here ( https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date). It has been like this, well, for quite a while :-). /R. On 16 August 2011 21:34, Alex foralex...@gmail.com wrote: I am using the HTML table API. 1 of the columns displays a date value. However, there must be a new bug introduced to the API since I didn't see this problem before. In summary, if I put in data.addRow([new Date(2011, 8, 11)]); The HTML table generated will show Sep 11, 2011 (in stead of Aug 11, 2011) I don't even have show my code because you can see the error in Google live example in the following URL: http://code.google.com/apis/chart/interactive/docs/reference.html#dateformatter Can someone from google take a look? I am currently using this for a project. If this doesn't get fixed, I might have to use string type instead. Alex -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Stacked bar chart re:Data Value Markers Options
You may also give a try at the Google Image Charts wizard ( http://code.google.com/apis/chart/image/docs/chart_wizard.html ). It may offer a faster way of playing with the available parameters and see which one is misbehaving. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/J5R87lt9M2UJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Google piechart API and IE9 with 64-bit processors
I think he means the ability for the old piecharts to be able to show the selected slice as detached from the main pie (afaik the new piecharts do not have this feature). /R. On 10 August 2011 10:51, MC Get Vizzy getvi...@google.com wrote: The old charts are in maintenance mode, I don't think a bug like this will get fixed. Regarding the new pie chart, what do you mean by exploding? On Mon, Aug 8, 2011 at 10:09 PM, Kelly John Rose i...@kjro.se wrote: So there's a bit of an odd bug when using the 3d pie chart from the piechart version of the API. Basically on IE9 on only 64-bit processors, the piechart completely fails to render. However on IE9 with 32-bit processors, there isn't a problem. When I switch to corechart's version of the 3d pie chart, I discover it doesn't fit my needs either, because the client wants the pie chart to be exploding and at the current moment, the corechart version of the 3d pie chart doesn't support this. Is there anyone who is working on this who know's what's wrong and possibly a workaround for this? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Re: [visualization-api] Re: Column label change?
In your getData4() function, that handles the response, you can do the following: var datatable = response4.getDataTable(); *datatable.setColumnLabel(1, 'myColumnLabel');* ... formatter.format(datatable); ... table4.draw(datatable, options); /R. On 8 August 2011 19:18, mwcog mwcog@gmail.com wrote: Thanks for the quick response. Unfortunately, i'm still trying to figure this out. Here's my code that responds to a query for (SELECT Count('Cost'), Sum('Cost') FROM 1251320). function getData4(response4) { var table4 = new google.visualization.Table(document.getElementById('visualization4')); //adds number symbols: var formatter = new google.visualization.NumberFormat( {prefix: '$'}); formatter.format(response4.getDataTable(), 1); // Apply formatter to second column table4.draw(response4.getDataTable(), {showRowNumber: false, allowHtml: true, cssClassNames: {hoverTableRow: 'highlightClass'}}); } This works fine, but where would i call setColumnLabel? Thanks, Aubin The function that On Aug 8, 12:37 pm, Riccardo Govoni ☢ battleho...@gmail.com wrote: I assume your visualization uses a google.visualization.DataTable object populated from the data you receive from fusion tables. If so, you can call setColumnLabel() http://code.google.com/apis/chart/interactive/docs/reference.html#Dat... on the DataTable to change its column label, before feeding it as input to the visualization you are using. /R. On 8 August 2011 15:39, mwcog mwcog@gmail.com wrote: I've created a google vis ( a table) pulling various columns from google fusion tables. Is it possible to change the column headers in my vis table through code? I don't have access to the original source. Thanks -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.