Search found 30 matches

by Normand Peladeau
Tue Nov 10, 2009 10:32 pm
Forum: VCL
Topic: Problem with TPNGExportFormat
Replies: 1
Views: 4219

Problem with TPNGExportFormat

I use the following code in one application: with TPNGExportFormat.Create do try Panel := AChart; PixelFormat := pf24Bit; SaveToFile(Filename); finally Free; end; I tried to use this code in another application, but I got the following message: Access Violation at address 0012F6A0. Write of address ...
by Normand Peladeau
Tue Jan 22, 2008 3:41 pm
Forum: VCL
Topic: Drawing lines on a Point3D series
Replies: 4
Views: 8441

Thanks Narcis, it works great!

Normand
narcis wrote:Hi Normand,

What about obtaining the value from CalcZPos? This requires a series ValueIndex. You could find it using Series1.ZValues.Locate which already uses a double value and returns a ValueIndex.

Hope this helps!
by Normand Peladeau
Tue Jan 22, 2008 12:47 pm
Forum: VCL
Topic: Drawing lines on a Point3D series
Replies: 4
Views: 8441

CalcZPosValue

Excellent, but it seems that there is no CalcZPosValue. How can I replicate this function. Hi Normand, What about using MoveTo3D and LineTo3D methods with X,Y and Z coordinates? Something like this: Chart1.Canvas.Pen.Width:=3; Chart1.Canvas.MoveTo3D(X0,Y0,Z0); Chart1.Canvas.LineTo3D(X1,Y1,Z1);
by Normand Peladeau
Tue Jan 15, 2008 1:02 am
Forum: VCL
Topic: Drawing lines on a Point3D series
Replies: 4
Views: 8441

Drawing lines on a Point3D series

I am drawing lines between selected points of a 2D using standard Canvas operations (MoveTo, LineTo), CalcXPosValue and CalcYPosValue. I am doing this using the BeforeDrawSeries event. The result is exactly what I expect and look like this: http://www.simstat.com/Network.png Now I would like to do s...
by Normand Peladeau
Mon May 07, 2007 5:01 pm
Forum: VCL
Topic: Text on connection line
Replies: 3
Views: 14242

Text on connection line

Can we expect a new version in 2007?

If not, can you suggest a way to implement this with the current version?
by Normand Peladeau
Sat May 05, 2007 11:41 am
Forum: VCL
Topic: Text on connection line
Replies: 3
Views: 14242

Text on connection line

Is there an option to set the text on a connecting line to have an opaque (white) background so that one can read this text easily even when it is over the connecting line?

If not, please consider this a suggestion.

Normand
by Normand Peladeau
Thu Jan 25, 2007 10:26 pm
Forum: VCL
Topic: Storing extra data in a Tee file.
Replies: 1
Views: 4674

Storing extra data in a Tee file.

I need to store some information along with a chart in order for another application to read it and interpret it (the information I would like to store is the application used to create the chart and the chart type). Ideally, I would like this information to be stored in the .tee file (and transferr...
by Normand Peladeau
Tue Jan 16, 2007 9:03 pm
Forum: VCL
Topic: Saving TChart in blob
Replies: 1
Views: 4717

Saving TChart in blob

Is there a way to store a TChart (data, settings, etc) into a Blob field?
by Normand Peladeau
Sun Jul 02, 2006 1:14 pm
Forum: VCL
Topic: Exporting to PNG files
Replies: 5
Views: 9620

No luck! The problem still occurs in v7.07. Any suggestion on what I should try to do next?
narcis wrote:Hi Normand,

Then can you please try if v7.07 works fine at your end?

Thanks in advance.
by Normand Peladeau
Thu Jun 29, 2006 11:37 am
Forum: VCL
Topic: Exporting to PNG files
Replies: 5
Views: 9620

narcis wrote:Hi Normand,

Which TeeChart version are you using?
Version 7.06. I always get an Access Violation error when calling this procedure.
by Normand Peladeau
Wed Jun 28, 2006 10:19 pm
Forum: VCL
Topic: Exporting to PNG files
Replies: 5
Views: 9620

Exporting to PNG files

I would like to export a chart into a PNG file name. I declared all the required unit and I already have a file name.

This procedure does not work. Obviously something is missing:

with TPNGExportFormat.Create do SaveTofile(Chart1,filename);

What is missing?
by Normand Peladeau
Tue Apr 18, 2006 11:25 am
Forum: VCL
Topic: Bottom axis labels
Replies: 24
Views: 35161

the only way to know how many labels has been displayed in the Axis would be by checking each axis label size and compare the sum of all with the axis size.. Actually, it should be the size of the longest one multiplied by the total number of labels, since while most labels may be short, and may be...
by Normand Peladeau
Thu Apr 13, 2006 12:19 am
Forum: VCL
Topic: Bottom axis labels
Replies: 24
Views: 35161

Sorry but I have no idea what you are talking about. Suppose I have 20 labels associated with 20 values and I need to draw a barchart. If the barchart is too narrow, it may draw only 8 or 9 labels. None of them are numerical values. Even if I implement your method, I will always get back a value of ...
by Normand Peladeau
Thu Apr 13, 2006 12:07 am
Forum: VCL
Topic: Round pie charts
Replies: 5
Views: 9647

Quite easy, create a new application, a TChart component, add a Pie series, go to the editor, put a check mark beside Circled and remove the one in the 3 Dimentions checkbox. If you leave both items checked, you will get a round pie in 3D, but if you display the pie in 2D, it will not be round but o...
by Normand Peladeau
Sat Apr 08, 2006 11:21 am
Forum: VCL
Topic: series.circled bug?
Replies: 1
Views: 4777

series.circled bug?

The series1.circled option used to obtain a round pie chart does not seems to work when one screen is used portrait mode. It seems like the algorithm create a ratio without taking into account the fact that the height may be bigger than the width. Any way to fix this so that this option works for bo...