Page 1 of 1

Polar Chart problems

Posted: Wed Aug 05, 2009 1:08 pm
by 10051555
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

Re: Polar Chart problems

Posted: Thu Aug 06, 2009 10:38 am
by yeray
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?

Re: Polar Chart problems

Posted: Thu Aug 06, 2009 12:52 pm
by 10051555
This png shows everything ok,
zz.png
zz.png (14.82 KiB) Viewed 4848 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 273 times

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

Re: Polar Chart problems

Posted: Tue Aug 11, 2009 10:10 am
by yeray
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.

Re: Polar Chart problems

Posted: Tue Aug 11, 2009 1:17 pm
by 10051555
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

Re: Polar Chart problems

Posted: Wed Aug 12, 2009 10:26 am
by yeray
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.