Jump to content

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...