You'll want to use a ComboChart. To get you started, create a ComboChart
with "line" type series for your lines. In the "series.<series index>"
options, you can set the type of the data series and assign it to the left
or right axis:
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
},
3: {
// make this a "line" series
type: line,
// use the right axis
targetAxisIndex: 1
}
}
On Tuesday, August 20, 2013 4:40:10 PM UTC-4, armon000 wrote:
>
> hello @asgallant I'm trying to do this but could you tell me for The
> lines and left/right axes i can use which chart with which option? (i don't
> know do you have any example!!! ) and also for the colored bands how do you
> think, i can use combochart or areachart? maybe i must to use the
> combination of the two chart !!!
>
>
>
> On Tuesday, August 20, 2013 5:06:51 PM UTC+2, asgallant wrote:
>>
>> That chart should be possible to create, but it will probably be
>> complicated to put together. The lines and left/right axes are easy; the
>> colored bands are a bit harder, you'll need to use something like
>> this<http://jsfiddle.net/asgallant/KJavc/>to make them (don't use that exact
>> example, I think there is a better way
>> to handle your use case).
>>
>> On Tuesday, August 20, 2013 5:29:10 AM UTC-4, 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.