lema Posted April 22, 2012 Share Posted April 22, 2012 Just testing the Steema TeeChart for Javascript. http://www.steema.com/teechart/html5 chart.rar 3 Quote Link to comment Share on other sites More sharing options...
delphiboy Posted April 25, 2012 Share Posted April 25, 2012 Good Work! Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 25, 2012 Administrators Share Posted April 25, 2012 Thanks Quote Link to comment Share on other sites More sharing options...
chefdackel Posted May 2, 2012 Share Posted May 2, 2012 Just testing the Steema TeeChart for Javascript. great, thank you. A good deal to eliminate the flash based charts of UniGui, and at the moment free for non commercial development. Quote Link to comment Share on other sites More sharing options...
lema Posted May 2, 2012 Author Share Posted May 2, 2012 It is a good approach from Steema, fast and simple , but , I think that it has some incompatibilities with uniGUI. (eg. when you want to work with datetime values and include the src\date.format.js , it breaks down the uniDateTimePicker) Quote Link to comment Share on other sites More sharing options...
estor485 Posted June 22, 2012 Share Posted June 22, 2012 Thanks is very good, but I have a doubt, how to conect the graphic with a DB? Quote Link to comment Share on other sites More sharing options...
estor485 Posted July 5, 2012 Share Posted July 5, 2012 I've played with the example and I changed this line "'var series=Chart1.addSeries(new Tee.line(Chart1));' +" and I created a graphic Pie , but I can't activate the property "Donut", in Sencha example the form contain a buttom for active this option and one button for save image, how is posible activate these options for this example? Best regards. Quote Link to comment Share on other sites More sharing options...
Semper Posted March 12, 2013 Share Posted March 12, 2013 Tip for saving TeeChart for Javascript as Image: 1. Add to example UniHTMLFrame. 2. Edit UniHTMLFrame.HTML property. Insert line: <img id="img"> 3. Add button. OnButtonClick -> UniSession.AddJS('Chart1.toImage("img");'); The resulting image can be saved in any browser. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 21, 2013 Share Posted March 21, 2013 Hi lema, Thank you for sharing. How can we connect this to DB? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 25, 2013 Share Posted March 25, 2013 Hi, you can show value of database like that: . . . adoquery.active:=True; while not eof do begin tmp:=tmp+',"'+IntToStr(Trunc(FieldByName('hiz').AsFloat))+'"'; next; Application.ProcessMessages; end; tmp:=Copy(tmp,2,length(tmp)-1); UniSession.AddJS('var querydata = new Array('+tmp+');'); UniSession.AddJS( 'for (var t=0; t<'+IntToStr(ADOQuery.RecordCount)+'; t++) {' + 'series.data.values[t]=querydata[t];' + 'series.data.x[t]=t;' + '}' ); Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 25, 2013 Administrators Share Posted March 25, 2013 Application.ProcessMessages; Has no effect in web mode. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 25, 2013 Share Posted March 25, 2013 Application.ProcessMessages; Has no effect in web mode. Hi Farshad, I use this because i am used to using this. Thanks for your information. Quote Link to comment Share on other sites More sharing options...
Semper Posted March 26, 2013 Share Posted March 26, 2013 Hi, you can show value of database like that: . . . adoquery.active:=True; while not eof do begin tmp:=tmp+',"'+IntToStr(Trunc(FieldByName('hiz').AsFloat))+'"'; next; Application.ProcessMessages; end; tmp:=Copy(tmp,2,length(tmp)-1); UniSession.AddJS('var querydata = new Array('+tmp+');'); UniSession.AddJS( 'for (var t=0; t<'+IntToStr(ADOQuery.RecordCount)+'; t++) {' + 'series.data.values[t]=querydata[t];' + 'series.data.x[t]=t;' + '}' ); I tried this solution. It works but for large datasets it increases the amount of memory occupied by the program. I'm beginner in Javascript. Maybe there is some way to clear Javascripts? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 26, 2013 Share Posted March 26, 2013 Hi Semper, I search the other examples such as UniKendodataviz and they are also use this method. Quote Link to comment Share on other sites More sharing options...
VojkoCendak Posted November 29, 2021 Share Posted November 29, 2021 Hi, is it possible to align TeeChart alclient and respond to window (parent) resize event ? thank you, Vojko Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.