Hi Ziming Wang, Currently, there is no automatic coordination between the two y axes, so it is up to you to constrain the viewWindow for each such that the baselines will be aligned. You might get the range of values for each axis so that you can then scale one axis range to correspond to the other. But then you also have to anticipate what the axis tick values and gridlines will be based on the rounding heuristics. This is non-trivial, I realize, but the complexity of how to do this is also why we haven't offered it as a built-in feature that can be applied in all situations. I hope that helps.
On Mon, Feb 3, 2020 at 11:20 AM 'Ziming Wang' via Google Visualization API < [email protected]> wrote: > As the screenshot shown, two baseline are two different lines. How can I > make them same line in combo chart? Thanks! > Here is the chart's option: > > options={{ > pointsVisible: true, > vAxes: { > 0: { format: 'decimal', baselineColor: 'red' }, > 1: { format: 'percent', baselineColor: 'blue' }, > }, > series: { > 0: { type: 'bars', targetAxisIndex: 0 }, > 1: { type: 'line', targetAxisIndex: 1 }, > }, > }} > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/e8c16f13-0e4b-4dd4-803d-ae68572e5a84%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/e8c16f13-0e4b-4dd4-803d-ae68572e5a84%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> Cambridge MA go/gviz-headcount -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNHYzW3Y1QVT_jGfMC0-NKoMQEjEE3wrEtE3rb%3DbTVz_Q%40mail.gmail.com.
