When you are parsing your data into the DataTable, enter a 0 when false and 
1 when true, and it should work.

On Monday, September 2, 2013 4:27:21 AM UTC-4, khamosh wrote:
>
> hello @asgallant
> i have a problem, as you know in our (arrayToDataTable) the value of (
> 'presence', 'daylight') was int (0,1) but in my JSON is ("False", "True"), 
> this is the form of my JSON :   
>
>  data = {
>
> "timestamp":["2012-12-08 00:04:53", "2012-12-08 00:09:53", "2012-12-08 
> 00:14:54",...
>
> "outdoor":[3.6, 3.9, 3.6,...],
>
> "indoor":[13.2, 13.2, 13.1,...],
>
> "energy":[41966.0, 41966.0, 41966.0,...],
>
> "heating":[0.0, 0.0, 0.0,...],
>
> "presence":["False", "False", "False",...],
>
> "daylight":["False", "False", "False",...]
>
> }
>
> On Thursday, August 29, 2013 10:24:36 AM UTC+2, khamosh wrote:
>>
>> merci ....
>>
>> On Monday, August 26, 2013 4:30:19 PM UTC+2, asgallant wrote:
>>>
>>> To make the steppedArea series work, you have to use a discrete 
>>> ("string" type) axis, so you should use the chart's "view" parameter to 
>>> transform the data back into a string, like this: 
>>> http://jsfiddle.net/asgallant/UC5nG/10/.  There are a couple other 
>>> changes in that fiddle related to the chart and control width; see the 
>>> notes I left in the options.
>>>
>>> On Monday, August 26, 2013 7:46:27 AM UTC-4, khamosh wrote:
>>>>
>>>> hello @asgallant, i want to use the "Controls and Dashboards" for my 
>>>> chart but it dosen't work very well ???  
>>>> http://jsfiddle.net/armon000/UC5nG/7/
>>>>
>>>> On Monday, August 26, 2013 10:28:37 AM UTC+2, khamosh wrote:
>>>>>
>>>>> thanks ....
>>>>>
>>>>> On Sunday, August 25, 2013 6:47:38 AM UTC+2, asgallant wrote:
>>>>>>
>>>>>> You can target a third axis for the daylight and presence series.  
>>>>>> Normally, this axis doesn't display properly, but since you actually 
>>>>>> don't 
>>>>>> want to see it here, that doesn't matter.  By doing this, you disconnect 
>>>>>> the value of the shading series from the rest of the data, so you can 
>>>>>> make 
>>>>>> their values anything you like (1 and 0 work).  See 
>>>>>> http://jsfiddle.net/asgallant/UC5nG/6/
>>>>>>
>>>>>> On Saturday, August 24, 2013 1:44:13 PM UTC-4, armon000 wrote:
>>>>>>>
>>>>>>> hello @asgallant
>>>>>>>
>>>>>>> Thanks for your sharing...
>>>>>>> This is the latest chart I have created...( 
>>>>>>> http://jsfiddle.net/armon000/UC5nG/2/ )
>>>>>>> As you may see the code, I employed Combo chart,
>>>>>>> I will be appreciated it if you advice any comments about it... I 
>>>>>>> just wish to be ensure if it can support my necessities as I have 
>>>>>>> already 
>>>>>>> explain!
>>>>>>> The is a simple bug I need to correct..
>>>>>>> The code works well when data is less than 2000... but when it 
>>>>>>> exceeds, the daylight does not follow as expected... For instance put 
>>>>>>> 4000 
>>>>>>> as indoor temperature, daylight
>>>>>>> is expanded to higher levels of 2000.
>>>>>>> Please check it practically ;)
>>>>>>> I have thought about some strategies to debug it... For example, to 
>>>>>>> prevent data to be more than 2000, which is not very practical.
>>>>>>> Please let me know if you have any idea!! thanks.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Friday, August 23, 2013 4:52:13 PM UTC+2, asgallant wrote:
>>>>>>>>
>>>>>>>> Doing this becomes much simpler with steppedArea series, but the 
>>>>>>>> problem is that steppedAreas are only available for discrete-axis 
>>>>>>>> charts.  
>>>>>>>> You may be able to make that work for you, but generally speaking, 
>>>>>>>> time-based charts don't work well when you try to make them into 
>>>>>>>> discrete 
>>>>>>>> axis charts.  Here's an example: 
>>>>>>>> http://jsfiddle.net/asgallant/KJavc/11/
>>>>>>>>
>>>>>>>> On Friday, August 23, 2013 8:58:31 AM UTC-4, armon000 wrote:
>>>>>>>>>
>>>>>>>>> @asgallant, for this case we can use ( Stepped Area Chart ) ???? 
>>>>>>>>> i mean that we can added this series (   series:{
>>>>>>>>> 0: {
>>>>>>>>>         // make this a "line" series
>>>>>>>>>         type: 'line',
>>>>>>>>>         // use the left axis
>>>>>>>>>         targetAxisIndex: 0
>>>>>>>>>     },  
>>>>>>>>>     1: {
>>>>>>>>>         // make this a "line" series
>>>>>>>>>         type: 'line',
>>>>>>>>>         // use the left axis
>>>>>>>>>         targetAxisIndex: 0
>>>>>>>>>     },
>>>>>>>>>     2: {
>>>>>>>>>         // make this a "line" series
>>>>>>>>>         type: 'line',
>>>>>>>>>         // use the right axis
>>>>>>>>>         targetAxisIndex: 1
>>>>>>>>>     }},
>>>>>>>>>  vAxes: {
>>>>>>>>>         // assign options for the left axis
>>>>>>>>>         0: {
>>>>>>>>>             title: 'Temperature(Deg C)'
>>>>>>>>>         },
>>>>>>>>>         // assign options for the right axis
>>>>>>>>>         1: {
>>>>>>>>>             title: 'Power(kW)'
>>>>>>>>>         }} )
>>>>>>>>>
>>>>>>>>>  in to the this chart?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Friday, August 23, 2013 9:30:19 AM UTC+2, armon000 wrote:
>>>>>>>>>>
>>>>>>>>>> Hello @asgallant, thanks alot for your answer, you are right 
>>>>>>>>>> (The lines and left/right axes) was easy but for (colored bands) is 
>>>>>>>>>> so 
>>>>>>>>>> hard, i looked at your exemple but it's so complicated.
>>>>>>>>>> and you know for this part ( Besides, I hope to have a color 
>>>>>>>>>> representation to the "daylight" and "presence" in X Axis: between 
>>>>>>>>>> Sunrise 
>>>>>>>>>> and sunset I want that the color of the background is changed, as 
>>>>>>>>>> you see 
>>>>>>>>>> in the picture between 6:00:00 and 19:00:00 the color of the 
>>>>>>>>>> background is 
>>>>>>>>>> yellow. For the “presence” also when someone is at the home we can 
>>>>>>>>>> see it 
>>>>>>>>>> that between these times someone was presented in the home as you 
>>>>>>>>>> see in 
>>>>>>>>>> the picture we show it with the color green. ) in my dataTable, 
>>>>>>>>>> for "daylight" and "presence" i have (0) or (1). 
>>>>>>>>>> could you helpe me.
>>>>>>>>>>
>>>>>>>>>> On Tuesday, August 20, 2013 11:29:10 AM UTC+2, armon000 wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hello every one 
>>>>>>>>>>>
>>>>>>>>>>> I want to draw one chart for my website that represents 6 events 
>>>>>>>>>>> at the same time, but I am not sure to start with which standard 
>>>>>>>>>>> chart of 
>>>>>>>>>>> the Google charts. I hope to create a display similar to below:
>>>>>>>>>>>
>>>>>>>>>>>  
>>>>>>>>>>>
>>>>>>>>>>> I try to describe the scenario for the chart:
>>>>>>>>>>>
>>>>>>>>>>> The chart demonstrates the power and temperature of indoor and 
>>>>>>>>>>> outdoor through the time specifing the presence of the resident at 
>>>>>>>>>>> home and 
>>>>>>>>>>> the daylight.
>>>>>>>>>>>
>>>>>>>>>>> As you see, in my chart I have "temperature indoor", 
>>>>>>>>>>> "temperature outdoor", "heating", "daylight" and "presence". There 
>>>>>>>>>>> are two 
>>>>>>>>>>> 'Y' axis to describe two different parameters "Power" and 
>>>>>>>>>>> "Temperature". 
>>>>>>>>>>> For temperature indoor, outdoor as you see we need left 'Y' Axis 
>>>>>>>>>>> (Centigrade Degree) and for heating we need 'Y' Axis in the right 
>>>>>>>>>>> (Kw). 
>>>>>>>>>>>
>>>>>>>>>>> Besides, I hope to have a color representation to the "daylight" 
>>>>>>>>>>> and "presence" in X Axis: between Sunrise and sunset I want that 
>>>>>>>>>>> the color 
>>>>>>>>>>> of the background is changed, as you see in the picture between 
>>>>>>>>>>> 6:00:00 and 
>>>>>>>>>>> 19:00:00 the color of the background is yellow. For the “presence” 
>>>>>>>>>>> also 
>>>>>>>>>>> when someone is at the home we can see it that between these times 
>>>>>>>>>>> someone 
>>>>>>>>>>> was presented in the home as you see in the picture we show it with 
>>>>>>>>>>> the 
>>>>>>>>>>> color green.
>>>>>>>>>>> Please let me know if you have any idea which chart is more 
>>>>>>>>>>> suitable for such the presentation.
>>>>>>>>>>>
>>>>>>>>>>

-- 
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/groups/opt_out.

Reply via email to