Thanks Viz Kid. It's not ideal but better than nothing.

Hopefully Google developers would make this more flexible in the
future.


On Nov 25, 10:36 am, Viz Kid <[email protected]> wrote:
> Indeed there are limitation when trying to use long labels.
> Notice that there is a way to increase the tooltip width and height (using
> the tooltipWidth and tooltipHeight options which are documented
> here<http://code.google.com/apis/visualization/documentation/gallery/piech...>)
> and this way, using a full screen chart, you would have a lot of room for
> long text.
>
> Tooltips do not ignore newline characters so you can use a more complex
> string in the formatted value of the pie chart elements if needed. The
> tooltip is constructed by
>   label (formatted value)
>   value (formatted value)
>   percentage
> You can truncate the label to 20 characters and in the value's formated
> value put "long label \n value".
>
> Hope this helps,
>   Viz Kid
>
> On Tue, Nov 24, 2009 at 10:38 AM, VoidNT <[email protected]> wrote:
> > Thanks for your reply Redidas,
>
> > yep, there seem to be no relevant options in Visualizations API. My
> > hope is that there are some hidden abilities which aren't documented
> > yet. Unfortunately we cannot simplify labels easily because we get
> > data from third party and ultimately we cannot predict what kind of
> > labels we would get.
>
> > For example, one small option in every chart API would save us - the
> > maximum length of visualized labels. We would still provide lengthy
> > labels; the algorithm of a visualization which builds the chart and
> > calculates coordinates of everything in SVG would truncate the labels
> > shown on picture, but the additional (or even standard) tooltip would
> > show a full label.
>
> > It's not specifically about piechart. We have problems with barchart
> > and columnchart also. And I guess it also revolves around automatic
> > calculation of coordinates in SVG for chart and legend, because for
> > example when we make a big visualization, almost a full screen,
> > there's still not enough space for legend to fit:
> >http://i46.tinypic.com/fvlbh0.png
> > . So with automatic font size we get unreadably small text in legend,
> > but with fixed font size the labels get cut off.
>
> > On Nov 24, 5:47 am, Redidas <[email protected]> wrote:
> > > Hi VoidNT,
>
> > > I'm not aware of any additional options the API offers regarding text
> > > format. Maybe a text wrapping enhancement could be suggested to the
> > > API team?
>
> > > For the time being, I would try to simplify the labels as much as
> > > possible. Some of the labels are so long I'm spending more time trying
> > > to figure out what grouping of data I'm looking at. I don't know if
> > > I'd use pie charts either - some even argue that pie charts limited in
> > > usefulness. (google Edward Tufte, Stephen Few, or even Jorge Camoes)
>
> > > Personally, I'd simplify all the wording, and switch to a horizontal
> > > bar chart (for label readability)
>
> > > On Nov 23, 10:28 am, VoidNT <[email protected]> wrote:
>
> > > > Hi guys,
> > > > need your advice. I'm working on project which is going to have a
> > > > dashboard using Google Visualizations API. It should be a highly
> > > > customizable functionality with user enjoying a lot of freedom with
> > > > choosing what data he wants to visualize.
>
> > > > We stuck on problem with long labels. Many labels in our
> > > > visualizations are going to be considerably long (50 symbols and
> > > > more). On many visualizations these labels get obscured. If we allow
> > > > visualization to choose font size automatically the labels can get
> > > > really small or don't appear at all; if we set a specific font size
> > > > the labels do not fit and get cut. We truncate labels which are more
> > > > than 20 characters long, but there's no way to show full labels in
> > > > tooltip, only the same truncated ones. In any case, it looks horrible.
>
> > > > We thought we could solve most of such problems by allowing user to
> > > > view a bigger version of the chart, but the problem remains even on
> > > > big ones.
>
> > > > For example:
> >http://i46.tinypic.com/1z21v9y.pnghttp://i47.tinypic.com/r74tcj.pnght...
>
> > > > On the first picture the legend fits (almost) by choosing proper
> > > > visualization size and font size, but look how much white space
> > > > remains - it could be much more compact, but we were not able to do
> > > > so.
>
> > > > Any solutions how to handle this problem?
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-visualization-api%[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 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.


Reply via email to