Report Charts

Robert Fewell 14ubobit at
Fri Dec 9 06:09:46 EST 2016

Drats, looks like the report pages I attached did  not get through, but I
think I have answered my question.
To set a percentage height, its parent element(*) must have an explicit

It looks like this can be fixed by using viewport units, vh,vw, all modern
browsers and IE>=9 support the new CSS units relative to viewport height (vh)
and viewport width (vw):


the <html> and <body> need to have height:100%, "<style>html, body {
height: 100%; width: 100%; margin: 0; }</style>"

In both cases, the chart is displayed full view but with a vertical scroll
bar for some reason which hope fully can be fixed.

Questions before I look further ...

Is there a preference for which setting to use ?
And also should all the css style sheets works with the charts ?


On 8 December 2016 at 16:02, Robert Fewell <14ubobit at> wrote:

> Hi,
> Just rebuilt with master and the report changes I made do not present the
> charts in the same way, the width is 100% and can be varied but the height
> turns out to be 300 pixels even though it is set to 100%.
> I have traced this back to a commit from Geert,
> c8327ccf13 which changes the report header.
> I have attached a pie chart report that has the two different headers for
> you to see the difference.
> Any ideas on how to fix this, seen this before ?
> Bob

More information about the gnucash-devel mailing list