Open orwant opened 9 years ago
I found a solution, but I don't know if it's fully correct. In the getTicksInfoForAlt_
function, the width is calculated as:
Min(interval between ticks,
distance from left canvas edge,
distance from right canvas edge)
But, in my example above, the text is always rendered to the *left* of the grid line,
so it doesn't make any sense for the right edge to limit the available width.
When I commented out the third case, the bug disappeared.
Original issue reported on code.google.com by pmarks@google.com
on 2013-05-09 01:24:24
I think I understand what's going on now. The width calculations assume that the text
is *centered* on the grid line. This assumption makes sense for hAxis:{textPosition:
'out'}, but it breaks down for hAxis:{textPosition: 'in'}.
Original issue reported on code.google.com by pmarks@google.com
on 2013-05-09 21:28:02
I've found a workaround:
options: {
...
theme: 'maximized',
hAxis: {allowContainerBoundaryTextCufoff: true},
}
The documentation claims that allowContainerBoundaryTextCufoff requires a discrete
axis. Mine is continuous, but it works nonetheless.
Original issue reported on code.google.com by pmarks@google.com
on 2013-05-09 23:04:35
Original issue reported on code.google.com by
pmarks@google.com
on 2013-02-02 04:20:55