Need to pay a good Pizza. Contact me if you come here
2014-03-19 14:44 GMT+01:00 asgallant <[email protected]>: > Add an annotation column to the view, like the BarChart's: > > var viewDisp = new google.visualization.DataView(dataDisp); > view.setColumns([0, 1, { > type: 'string', > role: 'style', > calc: function (dt, row) { > return (dt.getValue(row, 1) < 0) ? 'red' : 'green'; > } > }, { > calc: "stringify", > sourceColumn: 1, > type: "string", > role: "annotation" > }]); > > On Wednesday, March 19, 2014 2:52:59 AM UTC-4, Floriano Sabatini wrote: > >> I have been in USA last week. >> >> I have cancelled the instruction that was generating the defects and now >> it works. >> Thanks >> >> When you have some time please let me have some instruction to display >> the value on the column ( as I did for the bar). >> Ciao >> Floriano >> >> >> 2014-03-18 23:42 GMT+01:00 asgallant <[email protected]>: >> >> The error showed up in the developer's console in Chrome, and I am in the >>> USA. I'll try to take a look at this again tomorrow morning if I have time. >>> >>> >>> On Tuesday, March 18, 2014 4:06:57 PM UTC-4, Floriano Sabatini wrote: >>> >>>> Just in case I cancelled the line considering it was a residue of a >>>> number of changes I did. >>>> >>>> Ciao and Thanks >>>> >>>> Note: where you are based? UK or USA? >>>> >>>> >>>> 2014-03-18 21:02 GMT+01:00 Floriano Sabatini <[email protected]>: >>>> >>>>> Yes, here in Italy is night now so no production and only >>>>> consumprion --> red gap. >>>>> >>>>> Anyway tomorrow morning I should see some green bar. In fact it will >>>>> be green if I re-load the page but I'm using a tablet to monitor the >>>>> energy >>>>> and without to refresh it I will continue to see red. >>>>> >>>>> PS Sorry for my poor English, I hope you understood what I mean. >>>>> >>>>> Regarding the error how you have found it? >>>>> everything seems to work here >>>>> >>>>> >>>>> >>>>> 2014-03-18 20:54 GMT+01:00 asgallant <[email protected]>: >>>>> >>>>> I've been trying to test this, but right now all of the results are >>>>>> coming back with a net negative for "prod" - "cons" (which would make >>>>>> sense >>>>>> if my assumption that this is charting solar energy production vs >>>>>> consumption for something in Chieuti, Italy is true, given that it is >>>>>> currently nighttime in Italy). >>>>>> >>>>>> As an aside, this line is throwing an error (the element does not >>>>>> exist): >>>>>> >>>>>> >>>>>> document.getElementById('TOT_PROD').innerHTML = prod_today; >>>>>> >>>>>> I doubt that is the cause of your problems, but it's worth fixing >>>>>> that to confirm. >>>>>> >>>>>> >>>>>> On Tuesday, March 18, 2014 1:05:41 PM UTC-4, Floriano Sabatini wrote: >>>>>>> >>>>>>> Need one help more. >>>>>>> >>>>>>> The colour of the column is now changing according to the role but >>>>>>> .... >>>>>>> ... I need to reload the web page before to see the changes. >>>>>>> >>>>>>> Now I have var viewDisp and chartDisp.draw(viewDisp, optionsDisp); >>>>>>> within AJAX >>>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to a topic in >>>>>> the Google Groups "Google Visualization API" group. >>>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>>>>> pic/google-visualization-api/Zd9B1gKrE2w/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> To post to this group, send email to [email protected] >>>>>> . >>>>>> >>>>>> Visit this group at http://groups.google.com/group >>>>>> /google-visualization-api. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Google Visualization API" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/ >>> topic/google-visualization-api/Zd9B1gKrE2w/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/ >>> group/google-visualization-api. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Visualization API" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-visualization-api/Zd9B1gKrE2w/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
