[visualization-api] Re: Timelines in js from a google script?

2014-11-01 Thread Andrew Gallant
The Apps Script environment runs in a sandbox that blocks some javascript 
files from loading.  Since the Timeline visualizations are not officially 
supported in Apps Script, the javascript file is blocked, so you can't load 
them even when using the HtmlService.

On Wednesday, October 29, 2014 7:53:10 PM UTC-4, Andrew Gallant wrote:

 I don't have an update for you yet, but we're looking into it.

 On Wednesday, October 29, 2014 3:00:02 PM UTC-4, mayl...@pubget.com wrote:

 Any updates?? 

 I did try using the chartwrapper - same results.  The charts displays 
 fine when I run the HTML, but I when I add a very simple Google script 

 function doGet() {

   return HtmlService.createHtmlOutputFromFile('index');

  }


 and try to publish as web app, it fails to load the chart.  All the data 
 is available as well as anything else I add to the app.  Does timeline work 
 under these circumstances?  Other chart types work - I have tried, line 
 charts, bar chart, table.


 On Monday, August 18, 2014 10:31:46 AM UTC-4, Mackey McCandlish wrote:

 I've been able to create charts in javascript and display them from my 
 googlescript app, by using an app that returns 
 HtmlService.createHtmlOutputFromFile('filename');

 When I try to do this with a timeline chart, nothing appears. The script 
 is from google's visualization example at 
 https://google-developers.appspot.com/chart/interactive/docs/gallery/timeline
 .

 Is this meant to be supported?

 Thanks.



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Drawing separate chart for subcategories using google visualization

2014-11-01 Thread saKw
Hi,
 
I am trying to draw a chart using google visualization. I have 11 
categories, out of those eleven categories 4 of them have subcategories. 
The Subcategories are different for different categories. For example:

   - a) Video 
   - i. Subcategories: Netflix, YouTube, Vimeo, Vine, DailyMotion
   - b) Email  Messaging
   - i. Subcategories: gmail, hotmail, yahoomail 
   - . . .

My requirement is, when onclick of one category on chart, the subcategories 
will display as another chart. Can this be possible using google 
visualization? Please let me know.

Or is there any other way i can handel this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] unable to apply options to bar chart

2014-11-01 Thread Marc Tober
Sergey,

disregard my last entry, everything is working fine.
I called the draw() command without the convertOptions (or better: I called 
it twice and the last entry was without the convertOptions).
I should better get some rest every once in a while

I think I will get the desired column chart now - using the Material Chart 
beta. If I run into more trouble, I will revert to the standard 1.0 chart 
version.

BTW: 
Is there an easy way to see, which options are really available?
Can I use some kind of debug to see, that I am using undefined options?

I am always getting lost because I do not get error messages when using 
wrong / unsupported options

Marc

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Google Timeline Chart date box

2014-11-01 Thread Craig
I have the below code for a Google timeline graph. 
When I hover over a bar in the graph, the date in the pop up box only shows 
the Month and year i.e. Jan 2014. 
I need this to show the full date i.e 23 Jan 2014. 
Does anyone know how i make this change?

head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleUntitled Document/title
/head
body
script type=text/javascript 
src=https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization',
   'version':'1','packages':['timeline']}]}/script
script type=text/javascript
google.setOnLoadCallback(drawChart);

function drawChart() {
  var container = document.getElementById('example1');

  var chart = new google.visualization.Timeline(container);

  var dataTable = new google.visualization.DataTable();
  var formatter_long = new google.visualization.DateFormat({formatType: 
'long'});



  dataTable.addColumn({ type: 'string', id: 'Event' });
  dataTable.addColumn({ type: 'date', id: 'Start' });
  dataTable.addColumn({ type: 'date', id: 'End' });

  dataTable.addRows([
[ 'Original Package email', new Date(2014, 9, 23), new Date(2014, 9, 
25) ],
[ 'Dreamin’ Travel Packages On Sale',  new Date(2014, 9, 26),  new 
Date(2014, 10, 30) ],
[ 'Travel Packages on sale',  new Date(2014, 10, 6),  new 
Date(2014, 10, 30) ],
[ 'Travel Package sale over',  new Date(2014, 10, 30),  new 
Date(2014, 10, 30) ],
[ 'Wrestlemania Tickets on sale',  new Date(2014, 11, 22),  new 
Date(2015, 3, 30) ]]);

  chart.draw(dataTable);
}
/script
div id=example1 style=width: 

900px; height: 360px;/div
/body
/html

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
Title: Untitled Document