Closed GoogleCodeExporter closed 9 years ago
This problem occurs on vertical bar charts as well: "when I show a BarChart,
and one of the values of the Y-axis is a bit long, e.g. republic of China, some
portions of the word 'republic' would not fit into the window. Where can I set
these margins? Is this the
org.thechiselgroup.choosel.client.views.chart.BarChartViewContentDisplay >
HORIZONTAL_BAR_LABEL_EXTRA_MARGIN = 20? I am not sure. "
Original comment by Lars.Grammel
on 14 Jan 2011 at 9:14
[deleted comment]
The margin should be calculated dynamically. The
HORIZONTAL_BAR_LABEL_EXTRA_MARGIN is used for statically setting the margin
right now. I will introduce a min margin and a max margin. For values that are
longer than max margin, I will cut them off and introduce '...' - the full
label will be accessible in a tooltip. Min and max margin will be configurable
via method calls.
Original comment by Lars.Grammel
on 14 Jan 2011 at 9:23
Original comment by Lars.Grammel
on 14 Feb 2011 at 10:21
The current implementation sets the label area dynamically. It does not cut of
long label texts, but this seems to be good enough for now.
Original comment by Lars.Grammel
on 15 Feb 2011 at 12:28
Original issue reported on code.google.com by
bblashko@gmail.com
on 23 Aug 2010 at 8:12