Search found 71 matches

by David Novo
Tue Nov 08, 2005 12:07 am
Forum: VCL
Topic: mixing metafiles and bitmaps
Replies: 3
Views: 1229

Its a bit complicated, but what ended up working was putting in a fake bitmap canvas in the onBeforeDrawSeries so that when the series were being drawn, it drew to a bitmap. Then, I made a new event (changed the TChart source) to include an onAfterDrawAllSeries, where I then drew the bitmap into the...
by David Novo
Mon Oct 24, 2005 11:00 pm
Forum: VCL
Topic: axis title overlap
Replies: 9
Views: 3863

Hello Narcis, As I implement this more, I realize this solution does not work. During the course of the drawing, as I keep changing the labelSize based upon the "latest" custom axis label, the chart repaints and flickers. It seems to paint once with the original labelSize and then again with the upd...
by David Novo
Mon Oct 03, 2005 4:26 pm
Forum: VCL
Topic: axis title overlap
Replies: 9
Views: 3863

Thank you very much for your prompt and detailed answers.
by David Novo
Mon Oct 03, 2005 4:09 pm
Forum: VCL
Topic: axis title overlap
Replies: 9
Views: 3863

Hi Narcis, Ok, I see the theory. However, how would I account for different font sizes (my users scan switch label font size). Obviously, multiplying by 5 is not going to work in all cases. Is the labelSize equal to pixels, i.e. if I measure that canvas.textextent of the labelText then use that, wil...
by David Novo
Mon Oct 03, 2005 3:34 pm
Forum: VCL
Topic: axis title overlap
Replies: 9
Views: 3863

Hello Narcis, Thank you for your prompt reply. I found the labelSize property myself of course. The question is, how do I know WHAT to make the label size. In my application, I have no idea what the data is going to be and what the axis labels are going to be displayed (its quite a complicated algor...
by David Novo
Sun Oct 02, 2005 8:31 pm
Forum: VCL
Topic: axis title overlap
Replies: 9
Views: 3863

Narcis,

Done, the tile of the subject is bad labels. Please let me know if there is any way I can let them not overlay. I don't want to have to have my users manually adjust the offset, they should just never overlap.

Thanks,
dave
by David Novo
Fri Sep 30, 2005 2:46 am
Forum: VCL
Topic: axis title overlap
Replies: 9
Views: 3863

axis title overlap

hello.

I have my axis title size set to zero, so the axis titles should not overlap the labels. However, this still happens sometimes. Is this because I set custom label text on the onGetAxisLabel event? If so, is there any way to activate automatic spacing in this case?
by David Novo
Thu Aug 18, 2005 3:48 pm
Forum: VCL
Topic: mixing metafiles and bitmaps
Replies: 3
Views: 1229

Hi Bert, Thank you for the response, but this is not what I need. I can calling TeeCreateMetafile. however, that creates a separate drawing instruction for every dot on the plot in the metafile. Which leads to huge metafiles that take a while to render. I need to be able to call TeeCreateMetafile to...
by David Novo
Wed Aug 17, 2005 10:58 pm
Forum: VCL
Topic: mixing metafiles and bitmaps
Replies: 3
Views: 1229

mixing metafiles and bitmaps

Hello, I have a small problem. I am creating a pdf file from a bunch of teecharts (about 300 of them). Each tchart has about 20000 points on them. So what is happening, is that each metafile has 20,000 instructions from the drawPointer method. Adobe takes about 20 seconds to render each page (with a...
by David Novo
Fri Jun 24, 2005 9:56 pm
Forum: VCL
Topic: divide by zero error
Replies: 2
Views: 731

To solve this becomes part of a bigger issue. The way you have implemented the code, there does not seem to be a way to ask "What size will the chartRect be given the current plot options, size etc." The draw method gets called then InternalCanvas.initWindow then adjustChartBounds So, before the cha...
by David Novo
Fri Jun 24, 2005 9:35 pm
Forum: VCL
Topic: divide by zero error
Replies: 2
Views: 731

divide by zero error

Hello,

We allow our users to resize the charts. One of them went ahead and resized the chart to 0 width.

This causes a divide by zero error in:

TTeeCanvas3D.CalcPerspective

because chartRect.right-chartRect.left=0

you may want to fix this.
by David Novo
Tue Apr 12, 2005 9:53 pm
Forum: VCL
Topic: Customizing the Legend
Replies: 2
Views: 1012

I have the same issue, and have been using the same solution. However, it would really be nice if you had a "custom" legend type. You already have so many events dealing with the legend. If you just added an onNeedsNumLegendItems you could probably have an entire legend under the users control.
by David Novo
Tue Apr 12, 2005 9:42 pm
Forum: VCL
Topic: strange problem with teeCreateMetafile
Replies: 2
Views: 856

The problem still exists, but I have resolved the issue by changing to a TPointSeries and using the RainbowPalette array to choose the colors. You may want to look into this for other people though. There seems to be something about how the colorgrid is generated that can cause problems with some ap...
by David Novo
Tue Apr 12, 2005 7:12 pm
Forum: VCL
Topic: strange problem with teeCreateMetafile
Replies: 2
Views: 856

I now have a clear way to reproduce this. If you create the metafile from TCHART and paste into Adobe illustrator 10, it makes a black background, even on Windows XP. Do you have any idea how to track down what in the metafile is causing this drawing error? Again, it only happens with a rainbow pale...
by David Novo
Tue Apr 12, 2005 2:46 pm
Forum: VCL
Topic: how to make the axes the same length
Replies: 4
Views: 1073

Hello Narcis, I may be going crazy, but I do not see where the "isometric axis" demo includes a part about how to eliminate the parts of the longer axis that are unused. The demo just has a single button to "make axis isometric" that creates large unused areas on the X-axis. If it is in another demo...