55143681 Posted February 11, 2020 Share Posted February 11, 2020 28 minutes ago, Sherzod said: I realized that it should be loaded from a file. But where is the file? The Files are in the run path. Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2020 Share Posted February 11, 2020 6 minutes ago, 55143681 said: The Files are in the run path. Sorry, but they’re not there, check your test attachment. Link to comment Share on other sites More sharing options...
55143681 Posted February 11, 2020 Share Posted February 11, 2020 36 minutes ago, Sherzod said: Sorry, but they’re not there, check your test attachment. 1、my demo:d_demoddd.zip 2、forum's demo:ECharts0514.rar I have try to copy the forum's demo,but I still have the error, I don't know that whay I have lost, Help Please. d_demoddd.zip ECharts0514.rar Link to comment Share on other sites More sharing options...
jahlxx Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
jahlxx Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now