The width of the bars is computed from the minimum distance between any two
adjacent bars, so I would expect that somewhere in your data you have two
domain values that are closer than you expected.  This is true even before
the viewWindow constraints are applied, I believe.

On Thu, May 26, 2016 at 4:41 AM, Steve Morris <[email protected]> wrote:

> I have a stacked column chart. The bars are set at 75%.
>
> var defaultGraphOptions = {
>     legend: { position: 'top', maxLines: 2 },
>     title: '',
>     height:400,
>     width:800,
>     chartArea: {left:"15%",top:40,width:"90%",height:"80%"},
>     isStacked: true,
>     bar: { groupWidth: '75%' },
>     hAxis: { title:"", titleTextStyle: { bold: true, italic: false, }, 
> slantedText: false, viewWindow: { min: [5, 0, 0], max:[20, 0, 0]}},
>     vAxis: { title:"", textPosition:"out", titleTextStyle: { bold: true, 
> italic: false, }, viewWindow: { min: 0, }, },
>     colors: [],
> };
>
>  The bars almost always show correctly
>
>
> <https://lh3.googleusercontent.com/-H2LAke4FM88/V0axjIfsSfI/AAAAAAABPNk/q_h3oyfNGQILPZhUTIREsIwBwxtRDMaiACLcB/s1600/ScreenShot060.png>
>
>  However, every so often the bars appear very narrow.
>
>
> <https://lh3.googleusercontent.com/-m2_2dVfzICs/V0a0yzLyvvI/AAAAAAABPN4/10slqo90SwYIFSjPoDElvNBbbjSFN9EtQCLcB/s1600/ScreenShot061.png>
>
>
>  The default options are set once when the application starts and the
> "faulty" graph may suddenly show several times after viewing the "correct"
> graph many times with different data and then revert to normal.
>
>
> Any ideas?
>
>
>
> --
> 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
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/004400e9-9f43-42b3-8c05-dc04844f2570%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/004400e9-9f43-42b3-8c05-dc04844f2570%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNmGkdVnhBZ1VA46ZDtAEbbE_X_2Xo-RzQ5GQvUv7SNiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to