Jump to content

ECharts


stone feng

Recommended Posts

  • 1 year later...

Hi.

I'm trying to make some tests with this, and trying to compare ECharts with Chart.js and Highcharts.

Attached is a txt file with the script that I'm trying to test, done in the same way I that do with others.

I do something like this:

    chart1.html.text := '';

    scriptgr := tstringlist.create;
    scriptgr.loadfromfile(UniServerModule.StartPath + 'graf/test.txt');
    chart1.html.text := scriptgr.text;

    scriptgr.free;

This way works with scripts done with Chartjs, but not with ECharts.

 

Can someone help to me? I'm missing sonething in my script, but I don't know what.

Thanks in advance.

 

test.txt

Link to comment
Share on other sites

Ok.

After more test, attached is the last file. When load for first time, in the browser cosole is the error "MyChart is not defined.

When try to lado second time, the chart is shown ok.

Maybe a little mistake, but I can't see it.

Some help? Please?

Thanks.

test.txt

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...