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
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
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
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.
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
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
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
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
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
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?
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
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
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
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
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));
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.
-
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.
--
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
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
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
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
21 matches
Mail list logo