Polar Chart problems

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jubar
Newbie
Newbie
Posts: 7
Joined: Tue Jan 20, 2009 12:00 am

Polar Chart problems

Post by Jubar » Wed Aug 05, 2009 1:08 pm

I have a few problems with Polar Chart (V8.05) :

1. I moved the title to the left. It is not printed anymore, even though the print preview displays it.

2. The dotted lines are converted to solid, no more WYSIWYG as you promised. I tried to set the linewidth to 0 as you suggested, but that jumps back to 1. I tried PDF-Writer and postsrcipt and both behave the same way

3. Exporting to PDF converts all series colors to blackwhite. How can I retain color?
I used TeeSaveToPDFFile

4. Exporting to VML also turns colors to blackwhite, the "degrees" axis (star) is not shown at all in IE

5. I use a 125% font size for windows. The small IDE windows like "Border Editor" are not sized properly, and cut the content, I don't see the buttons OK, Abort and the fields Width and Space.

Any ideas what to do?

Jurgen

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Polar Chart problems

Post by Yeray » Thu Aug 06, 2009 10:38 am

Hi Jurgen,

Here is the code I've used to test this:

Code: Select all

uses Series, TeePolar, TeeOpenGL, TeePDFCanvas, TeeVMLCanvas, TeeExport;

var Series1: TPolarSeries;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D := false;
  Series1 := TPolarSeries.Create(self);
  Chart1.AddSeries(Series1);
  Series1.FillSampleValues(25);

  Chart1.Title.Left := 10;
  Chart1.Title.Top := 20;

  Series1.Pen.Style := psDot;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  TeeSaveToPDFFile(Chart1,'C:\test.pdf');

  With TVMLExportFormat.Create do
  try
    Panel:=Chart1;
    SaveToFile('C:\test.vml');
  finally
    Free;
  end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  ChartPreviewer1.Chart := Chart1;
  ChartPreviewer1.Execute;
end;
Jubar wrote:1. I moved the title to the left. It is not printed anymore, even though the print preview displays it.
Yes, you are right. I'll add this to the with list to be fixed in future releases (TV52014340).
Jubar wrote:2. The dotted lines are converted to solid, no more WYSIWYG as you promised. I tried to set the linewidth to 0 as you suggested, but that jumps back to 1. I tried PDF-Writer and postsrcipt and both behave the same way
Yes, printing as pdf seems not to print fine the title nor the dotted lines nor the chart colors. I'll add this to the wish list too.
Jubar wrote:3. Exporting to PDF converts all series colors to blackwhite. How can I retain color?
I used TeeSaveToPDFFile
Using the code above I'm not able to reproduce this. The title, the dotted lines and the colors seem to look fine.
Jubar wrote:4. Exporting to VML also turns colors to blackwhite, the "degrees" axis (star) is not shown at all in IE
I can see the chart colors as expected except on the background in the interior of the polar series that turns to white.
And I'm not sure to understand what you exactly mean the "degrees" axis (star) is not shown at all in IE. Could you please try to explain what you exactly mean here?
Jubar wrote:5. I use a 125% font size for windows. The small IDE windows like "Border Editor" are not sized properly, and cut the content, I don't see the buttons OK, Abort and the fields Width and Space.
Could you please show us a picture of that behavior?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Jubar
Newbie
Newbie
Posts: 7
Joined: Tue Jan 20, 2009 12:00 am

Re: Polar Chart problems

Post by Jubar » Thu Aug 06, 2009 12:52 pm

This png shows everything ok,
zz.png
zz.png (14.82 KiB) Viewed 4818 times

Unzip this vml & pdf first, otherwise I could not upload it
Here the series is shown black, it should have been green
In VML the "star" is missing, "star" are the dotted lines going from center to degree numbes
zz.zip
(4.84 KiB) Downloaded 267 times

This shows how the "Border Editor" gets chopped
tchart1.png
tchart1.png (4.53 KiB) Viewed 4823 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Polar Chart problems

Post by Yeray » Tue Aug 11, 2009 10:10 am

Hi Jubar,
Jubar wrote:Here the series is shown black, it should have been green
I could reproduce it printing as pdf with PDF-Writter from CutePDF but not using TeeSaveToPDFFile with the Button1 at the code I posted above. Have you tried wit it?
Jubar wrote:In VML the "star" is missing, "star" are the dotted lines going from center to degree numbes
Ok, now I understood what you meant and reproduced. It seems that the bottom axis grid isn't exported fine to VML. I've also added this to the wish list to be fixed in future releases (TV52014343).
Jubar wrote:This shows how the "Border Editor" gets chopped
I think I now understand you also in this. Please, take a look at the demo at What's New?/Welcome!/New in Components/ChartEditor PixelsPerInch and see if that solves your issue. (You'll find demos, examples and tutorials at TeeCahrt programs group)
If that's not what you need, you still can assign a width and height to your forms when creating them. But note that this solutions only applies in case that you were calling the border editor directly from your application, not from TeeChart editor.
If you are calling the border editor from the TeeChart editor, I'm afraid that there no easy solution for this.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Jubar
Newbie
Newbie
Posts: 7
Joined: Tue Jan 20, 2009 12:00 am

Re: Polar Chart problems

Post by Jubar » Tue Aug 11, 2009 1:17 pm

I just tried it.
The pen color turns to black as soon as you set its pen-width to anything else than 1,
just set it to 3 for example. The same happens with vml.

> If you are calling the border editor from the TeeChart editor, I'm afraid that there no easy solution for this.

I do call it within Delphi, not from my application. I did not even know that this was possible

The fix is easy, do it the same way you did with all the other editors. Take the PixelPerInch value at design time and calculate it with the value you get at runtime and then size accordingly. We do that in all out app's, and you've probably done that with the other editors already

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Polar Chart problems

Post by Yeray » Wed Aug 12, 2009 10:26 am

Hi Jubar,
Jubar wrote:The pen color turns to black as soon as you set its pen-width to anything else than 1,
just set it to 3 for example. The same happens with vml.
You are right again. I've reproduced both in pdf and vml and I've added it to the wish list to be fixed in further releases (TV52014346).
Jubar wrote:I do call it within Delphi, not from my application. I did not even know that this was possible

The fix is easy, do it the same way you did with all the other editors. Take the PixelPerInch value at design time and calculate it with the value you get at runtime and then size accordingly. We do that in all out app's, and you've probably done that with the other editors already
I meant that I can't think on a workaround for that while this isn't implemented in the sources. I'll also add this to the wish list.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply