AntonioM Posted December 10, 2019 Share Posted December 10, 2019 Hello I'm using Unigui 1.0.1424 I have a (BIG) problem: When I change data in a TUnichart (by clearing and reloading the series) in screen it looks ok, but when I save the image in server (I need that to create a html report), the PNG file shows previous data and overlapped legends in vertical axis, as if it not has been cleared before rendering. Any help? Could I manually clear the PNG canvas of the Chart before render (save image)? Thank You in advance Antonio Torregrosa Link to comment Share on other sites More sharing options...
AntonioM Posted December 10, 2019 Author Share Posted December 10, 2019 I've noticed that if you show a series with less data than previous, old data still appear in the image Link to comment Share on other sites More sharing options...
Sherzod Posted December 11, 2019 Share Posted December 11, 2019 11 hours ago, AntonioM said: I'm using Unigui 1.0.1424 Hello, Please specify which edition of UniGUI are you using? http://unigui.com/explore/matrix/#featurem Link to comment Share on other sites More sharing options...
AntonioM Posted December 11, 2019 Author Share Posted December 11, 2019 Proffesional Edition Thx Link to comment Share on other sites More sharing options...
Sherzod Posted December 11, 2019 Share Posted December 11, 2019 Just now, AntonioM said: Proffesional Edition Can you adjust your forum email address?: Link to comment Share on other sites More sharing options...
AntonioM Posted December 11, 2019 Author Share Posted December 11, 2019 Updated! License is registered to atorregrosa@tricom.es Link to comment Share on other sites More sharing options...
Sherzod Posted December 11, 2019 Share Posted December 11, 2019 2 minutes ago, AntonioM said: Updated! License is registered to atorregrosa@tricom.es Thank you for the update. Can you please make a simple testcase and attach here? And can you upgrade to the latest build!? Link to comment Share on other sites More sharing options...
AntonioM Posted December 11, 2019 Author Share Posted December 11, 2019 I attach some screen captures. Please note that in screen chart appears right, but when I generate PNG by saveimage procedure this file has "rubbish". I have several apps in production, so I don't want to upgrade unless I am sure this error is fixed. Chart #1 (screen) - 2 series, 3 records Chart #1 (PNG image) Chart #2 (screen) - 2 series, 1 record Chart #2 (PNG) - Here you can see "rubbish" from previous chart (in bars and in left vertical axis) Link to comment Share on other sites More sharing options...
Sherzod Posted December 11, 2019 Share Posted December 11, 2019 1 minute ago, AntonioM said: I attach some screen captures. Please note that in screen chart appears right, but when I generate PNG by saveimage procedure this file has "rubbish". Please make a simple testcase to check. Link to comment Share on other sites More sharing options...
AntonioM Posted December 11, 2019 Author Share Posted December 11, 2019 Hello. Here you are a simple sample: A chart, two series (Bars), a UniImage and two buttons. Rubbish appear when series has less records than previous. unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIRegClasses, uniGUIForm, uniButton, uniChart, uniImage, uniGUIBaseClasses, uniPanel; type TMainForm = class(TUniForm) UniChart1: TUniChart; UniImage1: TUniImage; UniBarSeries1: TUniBarSeries; UniBarSeries2: TUniBarSeries; UniButton1: TUniButton; UniButton2: TUniButton; procedure UniButton1Click(Sender: TObject); procedure UniChart1ChartImage(Sender: TUniCustomChart; Image: TGraphic); procedure UniButton2Click(Sender: TObject); private { Private declarations } public { Public declarations } end; function MainForm: TMainForm; implementation {$R *.dfm} uses uniGUIVars, MainModule, uniGUIApplication; function MainForm: TMainForm; begin Result := TMainForm(UniMainModule.GetFormInstance(TMainForm)); end; procedure TMainForm.UniButton1Click(Sender: TObject); var t, q : integer; begin UNiChart1.SeriesList[0].Clear; UNiChart1.SeriesList[1].Clear; t:=random(10)+1; for q:=1 to t do begin UNiChart1.SeriesList[0].Add(random(100),inttostr(q)); UNiChart1.SeriesList[1].Add(random(100),''); end; end; procedure TMainForm.UniButton2Click(Sender: TObject); begin UniChart1.SaveImage; end; procedure TMainForm.UniChart1ChartImage(Sender: TUniCustomChart; Image: TGraphic); begin UNiImage1.Picture.Assign(Image); end; initialization RegisterAppFormClass(TMainForm); end. Link to comment Share on other sites More sharing options...
AntonioM Posted August 5, 2020 Author Share Posted August 5, 2020 Anyone has an answer ti this? Error is not fixed yet Link to comment Share on other sites More sharing options...
Sherzod Posted August 5, 2020 Share Posted August 5, 2020 5 minutes ago, AntonioM said: Anyone has an answer ti this? Error is not fixed yet Hello, Sorry, can you please attach a simple app? Link to comment Share on other sites More sharing options...
AntonioM Posted August 5, 2020 Author Share Posted August 5, 2020 Just in previous post you have the simplest sample posible. I can't put it online, but I attach as ZIP. Regards _unichartdemo1.zip Link to comment Share on other sites More sharing options...
Sherzod Posted August 5, 2020 Share Posted August 5, 2020 37 minutes ago, AntonioM said: Just in previous post you have the simplest sample posible. I can't put it online, but I attach as ZIP. Regards _unichartdemo1.zip OK, but what is the problem with the first Get Image? Link to comment Share on other sites More sharing options...
AntonioM Posted August 5, 2020 Author Share Posted August 5, 2020 Please repeat the "Generate Data" button and click each time on first "Get Image" Button. If you don't see rubbish (in Y labels) and overlapped bars in image (like in this image), then we can be sure that the problem is in the Unigui/Sencha version. In this case I'd like to know if I can patch just this component, so I can not update my Unigui version by now. I'm using Unigui 1.0.1424 (proffesional, registered to atorregrosa@tricom.es) and Delphi 10.3. Regards PD The Second "Get Image" button was for testing if I can get the image directly from object, but it only works in client side, not in server side (and I can't change the filename and destination folder). Thx in advance Link to comment Share on other sites More sharing options...
AntonioM Posted August 5, 2020 Author Share Posted August 5, 2020 I attach a sample video (URL): https://randomware.es/descargas/2020-08-05 16-06-34.mkv Thx Link to comment Share on other sites More sharing options...
Sherzod Posted August 5, 2020 Share Posted August 5, 2020 1 hour ago, AntonioM said: I attach a sample video (URL): https://randomware.es/descargas/2020-08-05 16-06-34.mkv OK, We will check. Link to comment Share on other sites More sharing options...
Sherzod Posted August 5, 2020 Share Posted August 5, 2020 1 hour ago, AntonioM said: I'm using Unigui 1.0.1424 With the latest builds I couldn't reproduce. Can you please upgrade to the latest builds? Link to comment Share on other sites More sharing options...
AntonioM Posted August 5, 2020 Author Share Posted August 5, 2020 2 hours ago, Sherzod said: With the latest builds I couldn't reproduce. Can you please upgrade to the latest builds? Sorry, but now I have 3 apps in production and upgrading suposes to buy a license renovation, plus rebuild and review all apps. Probably I'll update Unigui after this summer. Thanks anyway. Link to comment Share on other sites More sharing options...
AntonioM Posted August 6, 2020 Author Share Posted August 6, 2020 I've set up a VM with Unigui 1.90 (last one I can get with my subscription) and it works ok. The problem was in the old version. Link to comment Share on other sites More sharing options...
AntonioM Posted August 18, 2020 Author Share Posted August 18, 2020 But now there are problems with the bar colors. The java that I used to set bar colors in old version now hangs the form. 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