Re: [visualization-api] DateRangeFilter change trigger draw on chart outside the dashboard

2016-05-18 Thread Giulio Mastrosanti
AaaaHh
got it!

great!

MANY THANKS you for your help and sorry for wasting your time,

Giulio



Il giorno mercoledì 18 maggio 2016 22:09:33 UTC+2, Daniel LaLiberte ha 
scritto:
>
> Now I understand.  You have a 'ready' listener on your dashboard that 
> calls caricaAscoltiM, so this will be called every time the dashboard is 
> ready, which happens every time the dashboard gets updated, not just the 
> very first time. So that's why the lower chart is redrawn. If you want this 
> to happen only one time, then change addListener to addOneTimeListener.
>
>
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/0a5a538e-e26b-4e5e-8e0c-65c07c61642f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] DateRangeFilter change trigger draw on chart outside the dashboard

2016-05-18 Thread Giulio Mastrosanti
it is not the dashboard to have an animation, is the chart outside of the 
dashboard that, if has an animation, gets affected from changes in the 
dashboard, as you can see here:

http://www.solomac.it/prototipo/statistiche3.php

Il giorno mercoledì 18 maggio 2016 21:28:33 UTC+2, Daniel LaLiberte ha 
scritto:
>
> The startup animation only applies the first time the chart is drawn.  I 
> don't think animation in the dashboard should affect anything outside the 
> dashboard, though if the animation fails due to an error, that could affect 
> other things executing in the same thread. 
>
> But I am glad you have got it working well enough for your needs.
>
> On Wed, May 18, 2016 at 3:21 PM, Giulio Mastrosanti <giu...@bitbazar.com 
> > wrote:
>
>> Hi Daniel,
>>
>> I was setting up a demo page for you,
>> but I have noticed that the second chart had an 
>>
>>   animation: {"startup": true,"duration": 500},
>>
>> in the options
>> since I have already got problems with animation with the the dashboard, 
>> I have removed the option and now it seems OK, so it seems that the second 
>> chart is not redrawn, but has simply its animation start again for some 
>> reason.
>> no problem for me, data is important and I can live without animations   
>>  :)
>>
>> if it is of some use for you, I'll let for a while my little demo here:
>>
>> http://www.solomac.it/prototipo/statistiche3.php
>>
>> but for me the problem is closed.
>>
>> thanks for your help today and yesterday
>>
>> Giulio
>>
>>  
>>
>>> If your external AreaChart is set up with no entanglements with the 
>>> dashboard, it shouldn't be affected by anything that happens in the 
>>> dashboard.  The dashboard constructs DataViews for use inside the 
>>> dashboard, and so even if you share the data given to the dashboard with 
>>> other uses outside the dashboard, the data won't be affected by anything 
>>> that happens inside the dashboard, assuming we haven't introduced any bugs. 
>>>  
>>> Can you set up a demo where we can see what you are referring to?
>>>
>>> -- 
>>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>>> dlali...@google.com   5CC, Cambridge MA
>>>
>> -- 
>> 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-visua...@googlegroups.com 
>> .
>> Visit this group at 
>> https://groups.google.com/group/google-visualization-api.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/31276f99-330c-4c75-82ac-ababbf3b7005%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/31276f99-330c-4c75-82ac-ababbf3b7005%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
> dlali...@google.com5CC, Cambridge MA
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/deff132b-0ca4-4994-8d50-c5940973ef0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] DateRangeFilter change trigger draw on chart outside the dashboard

2016-05-18 Thread Giulio Mastrosanti
Hi Daniel,

I was setting up a demo page for you,
but I have noticed that the second chart had an 

  animation: {"startup": true,"duration": 500},

in the options
since I have already got problems with animation with the the dashboard, I 
have removed the option and now it seems OK, so it seems that the second 
chart is not redrawn, but has simply its animation start again for some 
reason.
no problem for me, data is important and I can live without animations:)

if it is of some use for you, I'll let for a while my little demo here:

http://www.solomac.it/prototipo/statistiche3.php

but for me the problem is closed.

thanks for your help today and yesterday

Giulio

 

> If your external AreaChart is set up with no entanglements with the 
> dashboard, it shouldn't be affected by anything that happens in the 
> dashboard.  The dashboard constructs DataViews for use inside the 
> dashboard, and so even if you share the data given to the dashboard with 
> other uses outside the dashboard, the data won't be affected by anything 
> that happens inside the dashboard, assuming we haven't introduced any bugs. 
>  
> Can you set up a demo where we can see what you are referring to?
>
> -- 
> Daniel LaLiberte 
> dlali...@google.com5CC, Cambridge MA
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/31276f99-330c-4c75-82ac-ababbf3b7005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] DateRangeFilter change trigger draw on chart outside the dashboard

2016-05-18 Thread Giulio Mastrosanti
HI,

I have on one page a dashboard with an AreaChart and a DateRangeFilter to 
filter it,
but there's also another AreaChart independent from the dashboard.

I've noticed that, changing the DateRangeFilter, also the external 
AreaChart is redrawn.

is this a normal behaviour  and how can it be avoided?

thanks,

iulio

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/c80f755c-2c79-460d-a672-ee5840dd5129%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: How to call data to be used for the graph from a file on the FTP server

2016-05-17 Thread Giulio Mastrosanti
well,
I think you should read the data on the server side using AJAX, just as I 
do for interrogating a database.
from my web page I do an AJAX call to a php file on the server, that 
performs a query on the database and then sends back the data in JSON 
format, that then is used by javascript to populate the DataTable and then 
draw the chart.
In your case, the php ( or whatever ) on the server side should read  the 
file, parse it some way depending on file format ( tab delimited,etc ) and 
return a JSON object

for the real time I think you could set a timer, and at a given interval 
populate again the DataTable a draw again the chart

hope this helps,
Giulio

Il giorno domenica 15 maggio 2016 04:12:27 UTC+2, oniosun temidayo isaiah 
ha scritto:
>
> Hello Everyone. I am new to this.
>
> however, I have a particular sensor that sends data real-time to my ftp 
> server and save it in a particular directory and I want to use this data to 
> be plotting graphs in real time on my website. I want to be able to specify 
> the row and column that will be plotted from the file on the graph. Please 
> help me
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/c71fdb85-908b-4d92-93d2-2fb897238764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: How to call data to be used for the graph from a file on the FTP server

2016-05-17 Thread Giulio Mastrosanti
well,
I think you should read the data on the server side using AJAX, just as I 
do for interrogating a database.
from my web page I do an AJAX call to a php file on the server, that 
performs a query on the database and then sends back the data in JSON 
format, that then is used by javascript to populate the DataTable and then 
draw the chart.
In your case, the php ( or whatever ) on the server side should read  the 
file, parse it some way depending on file format ( tab delimited,etc ) and 
return a JSON object
hope this helps,
Giulio


Il giorno domenica 15 maggio 2016 04:12:27 UTC+2, oniosun temidayo isaiah 
ha scritto:
>
> Hello Everyone. I am new to this.
>
> however, I have a particular sensor that sends data real-time to my ftp 
> server and save it in a particular directory and I want to use this data to 
> be plotting graphs in real time on my website. I want to be able to specify 
> the row and column that will be plotted from the file on the graph. Please 
> help me
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/88a7f788-ce8b-4e17-b84c-5a0eddc126d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: Google Charts don't render in outlook

2016-05-17 Thread Giulio Mastrosanti
Hi,
I'm a beginner in this forum and as I beginner I'll answer you:
I'm quite sure that's simply because mail client will not execute the 
javascript necessary to draw the chart

http://stackoverflow.com/questions/3054315/is-javascript-supported-in-an-email-message

Giulio


Il giorno martedì 17 maggio 2016 20:33:23 UTC+2, tarikny...@gmail.com ha 
scritto:
>
> I have a simple HTML page that displays a 3D Google Chart, it renders fine 
> in a Browser, but when I send the same HTML page (e.g. source code) and set 
> it as the body of an email.  Outlook won't render the chart.
>
> When I view the source from the outlook email and copy it and save it as 
> an HTML file, I can open that file and it renders fine in a Browser.  I 
> suspect outlook's render can't render it for some reason.
>
> I was wondering if anyone knows of a workaround or a way to get Google 
> charts to render inside of Outlook?
>
> Attached is the HTML file...
>
> 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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/22bfd325-e364-4741-9ccd-8b8d7fe023a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] dot as grouping separator on vaxis data

2016-05-17 Thread Giulio Mastrosanti
Daniel,

thank you so MUCH!

I wasn't aware of the possibility os settings the language on load,
it solved my symbol problem, and I think will help me on much more ways.

thanks again!



the grouping symbol is automatically determined based on the locale, so if 
> you add the 'language' property to your google.charts.load() call, you 
> should see the appropriate symbol.
>
>
> Daniel LaLiberte 
> dlali...@google.com5CC, Cambridge MA
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/18809ac5-d0bd-4cf5-8e1d-e27237b794e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] dot as grouping separator on vaxis data

2016-05-17 Thread Giulio Mastrosanti
addendum:

I'm also trying if it could help specifying a format using ICU standard,
and I did try

'vAxis': { 'format': '#.###' },

but that shows me the values without any grouping symbol

and a pattern like:

'vAxis': { 'format': '#.###,#' },

results in chart not displaying and a 'Malformed pattern' error


-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/c6f41839-d762-45d8-aab7-708dfc27ab6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] dot as grouping separator on vaxis data

2016-05-17 Thread Giulio Mastrosanti
Hi Daniel,
thank you for your answer,
but unfortunately I still see commas as group separator for the numbers on 
the vAxis
while I was able to correctly format the generated data for the hAxis, 
that's a date
here it is my code for chart creation, including your suggestion ( the 
AreaChart is created using a ChartWrapper, because it is part of a 
Dashboard ) :

var AreaChartasc = new google.visualization.ChartWrapper({
  'chartType': 'AreaChart',
  'containerId': 'chart_Ascolti',
  'options': {
  'title': 'titolo',
  'vAxis': { 
'gridlines': { 'count': -1 }, // variable number of gridlines, 
enables formatOptions as well.
'formatOptions': { 'groupingSymbol': '.' },
   },
  'hAxis': { 'format': 'dd/MM' },
  'crosshair': { 'trigger': 'both' },
  'view': {'columns': [0, 1, 2, 3]}
  }
});

thanks again for your effort,

Giulio

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/3f7e187f-c2b0-4880-b900-f45d088f8576%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] dot as grouping separator on vaxis data

2016-05-17 Thread Giulio Mastrosanti
Hi Daniel,
thanks so much for you answer,
but I did try it without success.

I'm able to format as I want the hAxis generated data, that's in date 
format, but trying to apply your suggestion does not seem to solve the 
problem,
here a little snippet of code ( the AreaChart id generated using a 
chartWrapper, because it is part of Dashboard ) :

var AreaChartasc = new google.visualization.ChartWrapper({
  'chartType': 'AreaChart',
  'containerId': 'chart_Ascolti',
  'options': {
  'title': 'titolo',
  'vAxis': { 
'gridlines': { 'count': -1 }, // variable number of gridlines, 
enables formatOptions as well.
'formatOptions': { 'groupingSymbol': '.' },
   },
  'hAxis': { 'format': 'dd/MM' },
  'crosshair': { 'trigger': 'both' },
  'view': {'columns': [0, 1, 2, 3]}
  }
});

thsnaks again for your effort,


-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/1f2c8d85-09cc-4710-a36b-433464a258f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] dot as grouping separator on vaxis data

2016-05-17 Thread Giulio Mastrosanti
HI,

cant find a way to format the vaxis numbers on a AreaChart created by 
a ChartWrapper linked to a Dashboard

I have managed to format correctly the data loaded using a formatter:

formatter = new google.visualization.NumberFormat({fractionDigits: 0, 
groupingSymbol:'.'});

and applying it to the data column, but the values that appear as a 
reference on the vertical axis are using the comma as grouping separator

thank you,

Giulio

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/367547e2-ad5b-484c-97c9-ad6754fe6ebc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.