Thanks. Those responses were very helpful.
To give you some insight of what I'm trying to do.. I'm plotting an
area chart that defines the good region in my graph. And then I need
to trace points that fall inside/outside the good region which will
end up becoming a scatter chart. That is where combining the two is
needed for my purposes.

I do think that your suggestion on using area+line as a ComboChart
might work for me, so I will certainly give that a try.

Thanks!

On Mar 29, 9:16 am, Jinji <[email protected]> wrote:
> Mixing ScatterChart and AreaChart isn't currently possible, and also isn't
> planed, and I want to take this opportunity to explain the rationale behind
> it.
>
> Area/Line/Column/Bar/SteppedArea/Candlestick charts are all "function
> charts". "Function" as in "mathematical function" - something that maps
> values from some domain to target values. The domain can be either discrete
> or 
> continuous<http://code.google.com/apis/chart/interactive/docs/customizing_axes.h...>,
> and each domain value has exactly one target value (or null). Each function
> chart can have multiple series, where each series is a single mathematical
> function, configured by the series option, and all series in the chart
> share the same domain. ComboChart is a function chart where each series can
> be of different type, from the above types (yes, all of the above types,
> the docs are out-dated).
>
> ScatterChart, on the other hand, is not a function chart. Each "domain"
> value can have multiple "target" values, even within the same series (and
> therefor the terms "domain" and "target" aren't really accurate for scatter
> chart). That's why scatter chart and function charts don't mix, at least
> not easily.
>
> That said, you can try a ComboChart with 2 series, one of them configured
> with {type: 'area'} and the other configured with {type: 'line', lineWidth:
> 0, pointSize: 7}. This might be good enough for you.
>
> On Wed, Mar 28, 2012 at 8:08 PM, asgallant <[email protected]>wrote:
>
>
>
> > I'm afraid that this is not (yet?) possible.  Using the ScatterCharts, you
> > can have some series represented by lines (not areas), but they don't
> > support multiple vertical axes.  Area charts do support multiple veritical
> > axes, but there is no way to combine them with ScatterCharts as of yet.
> >  ComboCharts have started us down this road, though, so hopefully this will
> > be available at some point in the future.
>
> > On Wednesday, March 28, 2012 11:45:30 AM UTC-4, cd2012 wrote:
>
> >> I need to plot an area chart and a scatter chart on the single graph.
> >> Each chart will have its own axes. Is there any support for this in
> >> the Google Visualization API?
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/google-visualization-api/-/MhNys9U3NMMJ.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/google-visualization-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to