gonna need a slight alter version of Line charts: 1.just print the point when there exits one ,don't print anything if the corresponding data is null or "". 2. don't plot lines which connects these printed points
在 2012年3月29日星期四UTC+8下午9时16分14秒,Yuval Ronen写道: > > 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.html#Discrete_vs_Continuous>, > > 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 view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/IaKKUN5SmQkJ. 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.
