Search found 71 matches

by David Novo
Thu Dec 22, 2005 12:18 am
Forum: VCL
Topic: legend filled when it is not supposed to
Replies: 5
Views: 7150

Unfortunately, its actually a bit of a mess. In different parts of the code, different pens and brushes are being used to draw the area and draw the legend for the area. I am thoroughly confused because the brushes and pens get set over and over again :D However, I think that if I create my own Area...
by David Novo
Wed Dec 21, 2005 11:26 pm
Forum: VCL
Topic: legend filled when it is not supposed to
Replies: 5
Views: 7150

Hello, As far as I can tell, it seems that someone has forgotten to override the TChartSeries.legendItemColor method for an Area Series. The default behaviour in TChartSeries is to use the seriesColor, but for areaSeries, the seriesColor is not necessarily used. So I think that will work for this bu...
by David Novo
Wed Dec 21, 2005 7:58 am
Forum: VCL
Topic: legend filled when it is not supposed to
Replies: 5
Views: 7150

Thanks for the prompt reply.

I will be glad to modify the source myself, I have done so many times myself, if you can quickly point me to the method that actually draws the shape in the legend.
by David Novo
Tue Dec 20, 2005 8:27 pm
Forum: VCL
Topic: is there a way to calculate this?
Replies: 9
Views: 12532

Hi Narcis, Is there any explanation of IStartPos, IEndPos etc. I cannot find it in the help. If there is no help, it would be great if you could you post sample code for the following two functions function getChartRectForBoundsRect(const bRect:TRect):TRect; begin // assuming the tchart boundsRect=b...
by David Novo
Mon Dec 19, 2005 10:23 pm
Forum: VCL
Topic: is there a way to calculate this?
Replies: 9
Views: 12532

is there a way to calculate this?

Is there any function I can call to say: Give me the Chart BoundsRect I need so that the axis lengths will be a certain value. That way I would be able to set the bounds so that my x and y axis will be a specified size. Alternatively, is there a function that returns: Given a specific bounds rect, t...
by David Novo
Sun Dec 18, 2005 7:27 pm
Forum: VCL
Topic: getting proper resolution graphics
Replies: 5
Views: 7554

i have figured out a way to do it partially. If the plot is 100x100 I can do the following: chart1.view3doptions.fontzoom:=200; teecreatemetafile(true,rect(0,0,200,200)) This creates the correct size metafile, with high res for the dot and the fonts come out to be the relatively correct size. The on...
by David Novo
Fri Dec 16, 2005 11:42 pm
Forum: VCL
Topic: legend filled when it is not supposed to
Replies: 5
Views: 7150

legend filled when it is not supposed to

Hello, I have created an area series that has a no fill, and only the hatch marks from the fill are visible. This worked out just great. Problem is that in the legend, a background color is coming up. So even though the series is red hatched lines on a clear background, in the legend it is coming up...
by David Novo
Fri Dec 16, 2005 7:10 am
Forum: VCL
Topic: PixelsPerInch not respected
Replies: 1
Views: 3606

Hi,

I just found that I can use the view3dOptions.fontZoom property to accomplish what I need.

Thanks,
Dave
by David Novo
Fri Dec 16, 2005 6:56 am
Forum: VCL
Topic: PixelsPerInch not respected
Replies: 1
Views: 3606

PixelsPerInch not respected

Hello. How come if I set the chart1.title.font.pixelsPerInch:=500 there is no difference in the font size on the chart as compared to leaving the pixelsPerInch alone. However, if in the formPaint for a form I do canvas.font.pixelsperinch:=500; canvas.font.size:=8; canvas.font.color:=clblack; canvas....
by David Novo
Fri Dec 16, 2005 6:16 am
Forum: VCL
Topic: getting proper resolution graphics
Replies: 5
Views: 7554

I think I realize what the problem is..... Lets stay my chart is 100 x 100 pixels I realize that if I do chart.printerResolution:=-(100; chart1.drawPartialCanvas(metafileCanvas, rect(0,0,200,200)) its the same as TeeCreateMetafile(true,rect(0,0,200,200)); What I basically need is to have a printerRe...
by David Novo
Fri Dec 16, 2005 4:25 am
Forum: VCL
Topic: getting proper resolution graphics
Replies: 5
Views: 7554

I have investigated the issue a bit further, and am still a bit confused. I created a TChart that is 100x100. I did a printPartialCanvas with the output rect as (0,0,100,100). Everything worked great, except the background did not print. Is there any way to get the background to print when doing pri...
by David Novo
Sun Dec 11, 2005 4:51 am
Forum: VCL
Topic: getting proper resolution graphics
Replies: 5
Views: 7554

getting proper resolution graphics

Hello, I have a bit of a tricky problem ( I think). Lets say I have a plot where the x- and y-axes are 100 pixels long. I am also graphing data that possibly goes from 0..99. That means, that each data point should be one pixel, since there is 100 pixels, and 100 possible data values. Everything is ...
by David Novo
Sun Dec 11, 2005 4:39 am
Forum: VCL
Topic: transparent series to metafiles
Replies: 15
Views: 27034

Thank you so much. We depend on metafiles to get resolution independent graphing, and we were very suprised to find out that the only feature we ever found that did not render properly to metafiles was the transparency :-)
by David Novo
Mon Dec 05, 2005 7:59 pm
Forum: VCL
Topic: transparent series to metafiles
Replies: 15
Views: 27034

Hi Narcis, If you can point our where the root of the problem lies, we will be glad to investigate it. I assume that some canvas brush properties are not being set up properly to work with metafiles. We have already modified the tchart source quite extensively, and will be glad to fix the problem an...
by David Novo
Tue Nov 08, 2005 12:10 am
Forum: VCL
Topic: transparent series to metafiles
Replies: 15
Views: 27034

transparent series to metafiles

Hello,

I have charts with transparent series . Whenever I try to get a metafile using teeCreateMetafile, the series are not transparent in the metafile. Is there something I am missing?

-Dave