Am 06.09.20 um 11:32 schrieb Christopher Lam:
I suspect that ChartJS isn't being loaded at all. Check the html for the 
<script> tag and whether it's pointing correctly to your Chart.bundle.min.js

I have:
<body bgcolor="#ffffff"><script language="javascript" type="text/javascript" 
src="file:///"></script>

Are you running from the build dir instead of the install dir by any chance?

Yes. I'm running from the build dir. I am pretty sure that graphical reports
worked from the build dir for GnuCash 3.x. Is this no longer the case?

There is a borrowed/chartjs/Chart.bundle.min.js file in the source dir
and a borrowed/chartjs directory in the build dir, but only cmake files and
a Makefile are in this directory.

On Sun, 6 Sep 2020 at 08:40, Herbert Thoma <herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de>> wrote:

    Am 05.09.20 um 19:13 schrieb Christopher Lam:
     > Not sure why this would fail. Edit html-chart.scm and delete the relevant (push 
"Chart"...) line. My setup successfully sets the Chart option. If this fails then 
I'm not sure, you'll have to dig in.

    If I comment out the line, then I get the
    ReferenceError: Can't find variable: Chart
    somewhere else:

    // draw the background color
    Chart.pluginService.register({
        beforeDraw: function (chart, easing) {

    I really would like to debug this, but I have no clue about
    java script. So any hints on where to start are very welcome.

     >
     > On Sat, 5 Sep 2020 at 16:47, Herbert Thoma <herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de> <mailto:herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de>>> wrote:
     >
     >     Am 05.09.20 um 17:28 schrieb Christopher Lam:
     >      > What happens with combined reports eg net worth line chart with 
display/table enabled?
     >
     >     I see the table, no chart.
     >
     >      > Try right click the blank page and open the WebKit inspector, and 
report the console messages. Maybe chartjs is not being found.
     >
     >     I get 2 errors:
     >
     >     SystaxError: Unexpected token '<'
     >        (anonymous function) --- file:///:1
     >
     >     This one I think is a bit strange, because it points to the first 
line in the report html code.
     >
     >
     >     ReferenceError: Can't find variable: Chart
     >        Global Code --- gnc-report-7J8DQ0.html:185
     >
     >     here the line in the code is:
     >     Chart.defaults.global.defaultFontFamily = "'Trebuchet MS', Arial, 
Helvetica, sans-serif";
     >
     >
     >        Herbert.
     >
     >      > On Sat, 5 Sep 2020, 10:41 pm Herbert Thoma, <herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de> <mailto:herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de>> <mailto:herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de> <mailto:herbert.th...@iis.fraunhofer.de 
<mailto:herbert.th...@iis.fraunhofer.de>>>> wrote:
     >      >
     >      >     Hi!
     >      >
     >      >     I built GnuCash on openSUSE 15.2. from git. Everything works 
as expected,
     >      >     with one exception: graphical reports are not displayed. Text 
reports work.
     >      >
     >      >     I exported a report as html and tested in firefox. This 
displays an empty
     >      >     page, too.
     >      >
     >      >     openSUSE 15.2 comes with a packaged GnuCash 3.9, there the 
graphical
     >      >     reports work.
     >      >
     >      >     Any ideas why the reports don't work?
     >      >     Any hints how I could debug this?
     >      >
     >      >        Herbert.
     >      >
     >      >     _______________________________________________
     >      >     gnucash-devel mailing list
     >      > gnucash-devel@gnucash.org <mailto:gnucash-devel@gnucash.org> <mailto:gnucash-devel@gnucash.org 
<mailto:gnucash-devel@gnucash.org>> <mailto:gnucash-devel@gnucash.org <mailto:gnucash-devel@gnucash.org> 
<mailto:gnucash-devel@gnucash.org <mailto:gnucash-devel@gnucash.org>>>
     >      > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
     >      >
     >


--
Herbert Thoma
Dipl.-Ing., MBA
Head of Video Group
Multimedia Applications Department
Fraunhofer IIS
Am Wolfsmantel 33, 91058 Erlangen, Germany
Phone: +49-9131-776-6130
Fax:   +49-9131-776-6099
email: herbert.th...@iis.fraunhofer.de
www: http://www.iis.fraunhofer.de/

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to