Am .01.2016, 16:32 Uhr, schrieb Beth C <
ecal...@nd.edu>:
> Hi Charlie,
>
> I was playing with my code some more last evening and I found that if I
> just set the height and width of the actual chart that would work.
Good to know.
> So instead of doing
>
> barchart.layout = Layout(
> ManualLayout(
> # x=0.25, y=0.25,
> h=10.0, w=20.0,
> xMode="edge",
> yMode="edge",
> )
> )
Yeah, that stuff isn't very intuitive. Thanks to Thomas we have at least
documented it but it could probably do with some more abstract coverage of
what refers to what. Well, actually the OOXML spec should have that. :-/
> I found that doing
> barchart.height = 10
> barchart.width = 20
For reference: those values approximate to cm on a Windows screen. If you
want reliably big charts then just use a chartsheet: warning this will
currently only work with one worksheet and one chartsheet.
ws = wb.create_sheet("data")
ws.sheet_state = "hidden"
cs = wb.create_chartsheet("chart")
cs.add_chart(…)
wb._active_sheet_index = 1
> would make the chart big enough that all the labels would be shown.
>
> I have been using LibreOffice Calc to view the files.
You'll have to learn to live with the slight differences between the apps.