Re: [visualization-api] Google charts doesn't display charts

25 views
Skip to first unread message

Gaith Daragmeh

unread,
Apr 7, 2018, 8:44:12 AM4/7/18
to google-visua...@googlegroups.com
Just do    value ? value : 0:

On Sat, Apr 7, 2018, 4:32 AM jeroen gees <in...@lasercontrol.be> wrote:
Hi,

I made a website where you can check measured points. 
Sometimes we are not able to do this measurement and then the value is empty.
If this empty value is on the end of a session, google charts doesn't display (no error)
ex. ['Session' ,'Test1','Test2'], ['1' ,0.001,0.002],['2' ,0.004,]

But if the empty value is not on the end of the session there is no problem.
ex. ['Session' ,'Test1','Test2'], ['1' ,0.001,0.002],['2' ,,0.004]

I'm working with the current version.

Can somebody 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-visualizati...@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/30a841f3-6b9d-464a-ab16-12ce92a9cfca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeroen Gees

unread,
Apr 9, 2018, 3:24:09 AM4/9/18
to Google Visualization API
Hi Gaith,

0 is also a value because we take  the delta from each point.
I found the solution. instead of empty I put NaN.

Thanks


Op zaterdag 7 april 2018 14:44:12 UTC+2 schreef Gaith Daragmeh:
Just do    value ? value : 0:

On Sat, Apr 7, 2018, 4:32 AM jeroen gees <in...@lasercontrol.be> wrote:
Hi,

I made a website where you can check measured points. 
Sometimes we are not able to do this measurement and then the value is empty.
If this empty value is on the end of a session, google charts doesn't display (no error)
ex. ['Session' ,'Test1','Test2'], ['1' ,0.001,0.002],['2' ,0.004,]

But if the empty value is not on the end of the session there is no problem.
ex. ['Session' ,'Test1','Test2'], ['1' ,0.001,0.002],['2' ,,0.004]

I'm working with the current version.

Can somebody 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+unsub...@googlegroups.com.

Gaith Daragmeh

unread,
Apr 9, 2018, 7:06:48 AM4/9/18
to google-visua...@googlegroups.com
You can algo verify (value && parseIt(value))
In case the server send it as string
On Mon, Apr 9, 2018, 3:24 AM Jeroen Gees <monitoring....@gmail.com> wrote:
Hi Gaith,

0 is also a value because we take  the delta from each point.
I found the solution. instead of empty I put NaN.

Thanks


Op zaterdag 7 april 2018 14:44:12 UTC+2 schreef Gaith Daragmeh:
Just do    value ? value : 0:

On Sat, Apr 7, 2018, 4:32 AM jeroen gees <in...@lasercontrol.be> wrote:
Hi,

I made a website where you can check measured points. 
Sometimes we are not able to do this measurement and then the value is empty.
If this empty value is on the end of a session, google charts doesn't display (no error)
ex. ['Session' ,'Test1','Test2'], ['1' ,0.001,0.002],['2' ,0.004,]

But if the empty value is not on the end of the session there is no problem.
ex. ['Session' ,'Test1','Test2'], ['1' ,0.001,0.002],['2' ,,0.004]

I'm working with the current version.

Can somebody 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-visualizati...@googlegroups.com.
--
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-visualizati...@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.

Gaith Daragmeh

unread,
Apr 9, 2018, 8:41:07 AM4/9/18
to google-visua...@googlegroups.com
Correction 

if(number && Number.isInteger(number))
Reply all
Reply to author
Forward
0 new messages