Hmm. That might not do what you want it to. The reason that works is because you made your div small enough that multiple words couldn't fit on the same line. If you changed your words to be longer, or if you changed the font size to be larger, this would break. You either want to use the "pre" tag (pre-formatted text) and style it, or you want to run it through some code that creates a div for each individual line. Here's a jsfiddle that does the latter: http://jsfiddle.net/yu8q6dxu/2/
On Tue Nov 11 2014 at 11:25:09 PM Greg Pearl <[email protected]> wrote: > It seems that changing the added div tag at the bottom from... > > <div id="tooltip_div"></div> > > ...to... > > <div id="tooltip_div" style="width: 50px; height: 900px;"></div> > > ...does the trick. Although, I have a feeling I'm overlooking a few > pitfalls there. In any case, it's a good starting place! > > -- > 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 > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
