[visualization-api] Horizontal bands

2013-06-06 Thread Martin Schürrer
I'm using a time series line chart and would like to add horizontal bands like here: http://i52.tinypic.com/1z1hg1g.png (and add a title to those bands) Any way to do this? Thanks, Martin Schürrer -- You received this message because you are subscribed to the Google Groups Google

Re: [visualization-api] Re: Hide a row (aka series) in Google chart

2013-06-06 Thread Alexander Farber
Hello Andrew, On Tue, Jun 4, 2013 at 7:13 PM, asgallant drew_gall...@abtassoc.com wrote: I wrote a hack that shows/hides series by clicking on legend labels (hidden series are greyed out in the legend): http://jsfiddle.net/asgallant/6gz2Q/. thank you for the code! Because I have multiple

[visualization-api] Re: Values / Labels on annotated time lines charts

2013-06-06 Thread asgallant
I misspoke slightly - the additional axes will display, but they will overlap a bit with the right axis. We can move the text inside the chart to prevent overlap by setting the textPosition option on that axis. I converted your code over to the core charts, along with a few suggested

[visualization-api] Google Charts error e is null

2013-06-06 Thread Anthony Carter
Hello, I am hoping someone can help me out with this issue. I have a process that runs on page load that gets data and populates a google bar chart. This works fine if I show the chart div the entire time, but I am trying to start with the div having a style of display:none. Once the data

Re: [visualization-api] Google Charts error e is null

2013-06-06 Thread Thomas Rybka
There are various issues with attempting to draw a chart in a div that is display:none. Can you create the chart object but only call draw when the div becomes visible? Alternatively, this was brought up as a suggestion in a previous thread: asgallant: Set your divs display properties to

[visualization-api] Re: Switching rows / columns in a Area Chart

2013-06-06 Thread asgallant
This does not exist as an option in the API. You can manually parse your data into a new DataTable with the rows and columns switched; it would work something like this: var newData = new google.visualization.DataTable(); newData.addColumn('string', 'foo'); for (var i = 0; i

[visualization-api] Re: Geocharts is missing a logScale equivalent. Got a workaround?

2013-06-06 Thread asgallant
You can try manually log scaling your data; the legend values will not be accurate, so you should probably hide it, but it should work otherwise. Here's an example: http://jsfiddle.net/asgallant/yMgSx/ On Wednesday, June 5, 2013 9:43:13 PM UTC-4, Chris Johnson wrote: Hi there. I am using a

[visualization-api] Re: Horizontal bands

2013-06-06 Thread asgallant
I wrote a hack that does something similar: http://jsfiddle.net/asgallant/KJavc/. Give that a try and see if it works for you. On Thursday, June 6, 2013 5:29:34 AM UTC-4, Martin Schürrer wrote: I'm using a time series line chart and would like to add horizontal bands like here:

Re: [visualization-api] Re: Hide a row (aka series) in Google chart

2013-06-06 Thread asgallant
Event handlers don't contain a reference to the chart they are attached to. If you want to create a generic event handler that can handle multiple charts, give the function a chart parameter and then pass the current chart to the function inside the event handler: function eventHandler

Re: [visualization-api] Re: Geocharts is missing a logScale equivalent. Got a workaround?

2013-06-06 Thread Chris Johnson
This is what I ended up doing, although using the ChartWrapper was a helpful suggestion, so thank you. Nonetheless, I feel that this is something that should be supported directly by the Geochart API. So... feature request? On Thu, Jun 6, 2013 at 8:57 AM, asgallant drew_gall...@abtassoc.com

Re: [visualization-api] Re: Geocharts is missing a logScale equivalent. Got a workaround?

2013-06-06 Thread asgallant
You can make a feature request herehttp://code.google.com/p/google-visualization-api-issues/issues/list . On Thursday, June 6, 2013 2:52:53 PM UTC-4, Chris Johnson wrote: This is what I ended up doing, although using the ChartWrapper was a helpful suggestion, so thank you. Nonetheless, I

[visualization-api] hAxis titleTextStyle font not working.... Help...

2013-06-06 Thread crabjoe
So, I'm trying to use Google Charts and specifically Column Chat. The nice thing is, I've got it working. The bad thing is, it's kicking back some weird font on the hAxis; it seems to be a script font or something that's in italics. As you can see below, I tried adding fontName of Arial,

Re: [visualization-api] hAxis titleTextStyle font not working.... Help...

2013-06-06 Thread Thomas Rybka
Do you have a screenshot or jsfiddle I can look at? By default, the fontName used is Arial, so setting it manually is unlikely to result in a change. Try changing it to something else, like Courier New or Sans Serif: http://jsfiddle.net/aSRUx/106/ Or even try out the Google Web Fonts (e.g.

Re: [visualization-api] Re: Geocharts is missing a logScale equivalent. Got a workaround?

2013-06-06 Thread Chris Johnson
Voted this existing ticket up: https://code.google.com/p/google-visualization-api-issues/issues/detail?id=181q=logcolspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Stars Thanks! On Thu, Jun 6, 2013 at 2:36 PM, asgallant drew_gall...@abtassoc.com wrote: You can make a