[reportlab-users] Pie chart with all wedge labels to one side, with horizontal label pointers
Andy Robinson
andy at reportlab.com
Thu Sep 4 18:17:46 EDT 2008
2008/9/4 Stevens, Ian <IStevens at globeandmail.com>:
> I'm looking to create a pie chart where all the wedge labels are aligned to
> one side of the pie, connected to their respective wedges by a horizontal
> label pointer. This would be similar to a pie chart with the legend to one
> side, except that instead of a color swatch a horizontal label pointer
> connects to the wedge. I need a chart like this as there's not enough room
> to have labels on both left and right sides, but I'd still like pointers.
> Can this be done with the existing Pie charts?
>
No.
> Is it feasible as a customisation?
Sure, unless you want really intelligent drawing of the connectors
and labels.
You're probably best to copy the piechart code and make a new class,
and add in some
drawing instructions to extend a line from each wedge to the side,
and draw the labels there.
- Andy
More information about the reportlab-users
mailing list