[visualization-api] TimeLine charts and seperate lines per sub-category

2015-04-30 Thread Daniel Buttery
Hey all hope you can help: https://jsfiddle.net/4d5w8Lcq/ I have the above data which allows us to track when each team has applied effort to a given project over a certain period. I've gone through the docs and can't find an option to do this, but is it possible to get each 'Team' placed on

Re: [visualization-api] Error on load jsapi in another page

2015-04-30 Thread 'Daniel LaLiberte' via Google Visualization API
The documentation already tells you how to do that: function loadApi() { google.load(visualization, 1, {callback : pageLoaded}); } Make sure the DOM is ready when you call google.load with the callback option. You need to do this because the loader may will to append an element

Re: [visualization-api] TimeLine charts and seperate lines per sub-category

2015-04-30 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Dan, This is not currently possible, nor were we planning on adding it, although I can see how it may be useful. Please file a feature request at https://code.google.com/p/google-visualization-api-issues On Thu, Apr 30, 2015 at 5:05 AM Daniel Buttery hasanyoneseenmysp...@googlemail.com

Re: [visualization-api] Displaying each value on x-axis

2015-04-30 Thread 'Daniel LaLiberte' via Google Visualization API
You can get the values out of your datatable using the getValue() method. Even better, you can get all the distinct values in your first column with the getDistinctValues() method. getDistinctValues(columnIndex)Array of objects Returns the unique values in a certain column, in ascending order.

Re: [visualization-api] Error on load jsapi in another page

2015-04-30 Thread 'Daniel LaLiberte' via Google Visualization API
I can't tell from the code you posted, but from your description, it sounds like you might be loading the charts code after the document has finished loading. The consequence of doing that is that loading more code will try to write out more script tags, but that might overwrite your entire

Re: [visualization-api] Error on load jsapi in another page

2015-04-30 Thread Esteban orue
Hi Daniel, thanks for your answer. I really want to do that: You can load the Google API loader dynamically by creating a script element and setting its source to the samehttps://www.google.com/jsapi; URL with an additional query callback parameter. The callback will be executed when the loader

Re: [visualization-api] Gauge chart : more color

2015-04-30 Thread 'Jon Orwant' via Google Visualization API
Frank, you can choose the colors you want; see https://developers.google.com/chart/interactive/docs/gallery/gauge#Configuration_Options . The chart assumes three colors; to add more, we'd need to come up with a new graphic design. Jon On Sat, Apr 25, 2015 at 2:15 PM, Franck BECKER

Re: [visualization-api] TimeLine charts and seperate lines per sub-category

2015-04-30 Thread Daniel Buttery
Hi Sergey, thanks for the response! I figured it wasn't going to be possible currently, but wanted to confirm before I did put in a feature request. Many thanks! Dan -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread 'Sergey Grabkovsky' via Google Visualization API
I'm confused. Your first statement said that it worked, and then your second statement said that it did not work. Looking at the code, it doesn't seem like you have to go through all of that. You should be able to just do new DateValue(year, month, day). On Thu, Apr 30, 2015 at 2:21 PM da

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread 'Sergey Grabkovsky' via Google Visualization API
It sounds like you're using the Java DataSource library. You should try the Date String representation outlined here: https://developers.google.com/chart/interactive/docs/datesandtimes#datestring On Thu, Apr 30, 2015 at 1:10 PM da angusd...@gmail.com wrote: How do I get this work?

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread 'Sergey Grabkovsky' via Google Visualization API
No, I'm saying that you would leave the ValueType as it is (as DATE), and use the Date String representation. As far as I can tell, the table doesn't do any type checking. However, it also looks like there's a com.google.visualization.datasource.datatable.value.DateValue. Is there a reason you're

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread da
HI Sergey, I understand the Date String representation. BUT The means that I have to do this ColumnDescription columnDescription = new ColumnDescription( countDate, ValueType.*TEXT*, Count Date); The result is that the JSON returned will have [{id:countDate,label:Count

[visualization-api] Re: Adding a Date cell to TableRow

2015-04-30 Thread Dale Angus
I read the solution below. I don't think it is a good one. Creating a JSON by yourself? Isn't there a fix yet to allow Date in row.addCell()? On Monday, December 12, 2011 at 9:32:40 AM UTC-8, Amir Miller wrote: Hi, I am creating a table using Google Visualization Data Source library. I

[visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread da
How do I get this work? ColumnDescription columnDescription = new ColumnDescription( countDate, ValueType.DATE, Count Date); ... Date someDate = new Date(); row.addCell(someDate); Compiler complains that The method addCell(TableCell) in the type TableRow is not

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread da
Sergey, I tried that and it worked! import com.ibm.icu.util.GregorianCalendar; import com.ibm.icu.util.TimeZone; ... GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date()); cal.setTimeZone(TimeZone.getTimeZone(GMT));

[visualization-api] Google Charts V42 Release Candidate Update Pushed: April 30, 2015

2015-04-30 Thread 'Daniel LaLiberte' via Google Visualization API
We have pushed an update of the new Google Charts Release Candidate (RC) - V42. This should start to be available within a couple hours. This update fixes a couple bugs and adds a couple small features: - The 100% stacking feature for AreaChart shows correct values in tooltips. -

[visualization-api] json for histogram example?

2015-04-30 Thread Ben Falchuk
Does anyone have the JSON data that would have to be sent back to the client (ajax) in order to generate the histogram chart found in the example: https://developers.google.com/chart/interactive/docs/gallery/histogram ..while still using arrayToDataTable as in the example? thanks, ben. --

Re: [visualization-api] json for histogram example?

2015-04-30 Thread 'Sergey Grabkovsky' via Google Visualization API
If you're using dates in your chart, then sending arrayToDataTable-compatible JSON is going to be difficult, if not impossible, since arrayToDataTable doesn't support the Date String representation. Other than that, you should just be able to send an array of arrays and pass that into

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread 'Sergey Grabkovsky' via Google Visualization API
Ah yes, that's the GregorianCalendar that DateValue depends on. I'm sure there are historical reasons for this. It's possible that com.ibm.icu.util.GregorianCalendar had better behavior. An alternative explanation may be that the DataSource library predates Java 7, which is when

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread da
I was not able to get it to work using java.util.GregoricanCalendar. But somehow works with com.ibm.icu.util.GregorianCalendar; I needed to write all that for my code. I just simplified the example below. On Thursday, April 30, 2015 at 11:39:26 AM UTC-7, Sergey wrote: I'm confused. Your

Re: [visualization-api] com.google.visualization.datasource.datatable.TableRow

2015-04-30 Thread da
My site looks better using the type Date instead of Text. :) http://etfchecker.com/wordpress/ Thanks, again. On Thursday, April 30, 2015 at 12:16:05 PM UTC-7, Sergey wrote: Ah yes, that's the GregorianCalendar that DateValue depends on. I'm sure there are historical reasons for this. It's