Page 1 of 1

asarea.useYOrigin and aspect.view3d

Posted: Wed Dec 05, 2007 11:11 pm
by 9442966
Hi guys

I have an issue with teechart and filling an area chart

If the aspect.view3d is set to true then the chart fills perfectly.
if the aspect.view3d is set to false then the chart only fills to its lowest value (only the peaks of the chart are filled)

e.g. if the lowest value of a chart is 7 then the area chart is only filled above 7 (even though my Yorigin is set to 0 and my useyorigin is set to true)

Toggling the view3d to true fixes this - but we dont use 3d charts

any ideas ???
we are using teechart v7

Chris

Posted: Fri Dec 07, 2007 10:42 am
by narcis
Hi Chris,

I'm not able to reproduce this here using v7.0.1.4 which is the latest v7 release available at the client area. Which exact version are you using?

If the problem persists could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Mon Dec 10, 2007 1:43 am
by 9442966
Hi Narcis

Thanks for getting back to me
I am using V7.0.1.3 so the latest version is potentially a fix.

Is there any chance you can email me the latest v7 release, for some reason my login and password will not get me into the client download area.

Thanks
Chris

Posted: Mon Dec 10, 2007 8:33 am
by narcis
Hi Chris,

In that case please contact our Sales Dept. (sales at steema dot com) to check your license details.

Thanks in advance.

Posted: Wed Dec 12, 2007 12:59 am
by 9534969
Hi Narcis

I finally downloaded the Version 7.0.1.4
but it still does the same thing

I have just uploaded a simple sample (sample.zip) of what I am trying to do

if you click on the add area and then toggle the 3d aspect of the chart you will clearly see the problem (or at least i hope you will)

Chris

Posted: Wed Dec 12, 2007 9:48 am
by narcis
Hi Chris,

Thanks for the example project but I'm not able to reproduce the issue here because I don't have XML data for the series. Could you please provide necessary file or arrange your example so that it uses random data and we can run it "as-is" here?

Thanks in advance.

Posted: Thu Dec 13, 2007 2:40 am
by 9534969
The sample i sent should wok as is

The xml data is hard coded into the source

If you just do the following
1) extract it
2) double click the "sample.htm" file to load it in IE
3) click the "VB add area" button once
4) click "VB toggle 3d" button as many times as you like to show the problem

Please try this and let me know if it doesnt work

Chris

Posted: Thu Dec 13, 2007 9:00 am
by narcis
Hi Chris,
The xml data is hard coded into the source
Yes, so I see. Sorry.
Please try this and let me know if it doesnt work


No, this doesn't work. Series are added to the chart but I still see no series data on it. Can you see series data at your end?

Thanks in advance.

Posted: Fri Dec 14, 2007 6:51 am
by 9534969
Hi Narcis

I have uploaded a new sample "hatchTeechartSample.zip"

In case it still doesnt work - I included two images ("2d.jpg" and "3d.jpg")
which clearly show the problem i am having

I guess even if my sample doesnt work, if you can replicate the conditions you should see the same result

Regards
Chris

Posted: Fri Dec 14, 2007 9:52 am
by narcis
Hi Chris,

Thanks for the information. I couldn't get your example working here but looking at the code and images was enough to reproduce the issue here. It can be reproduced with this code:

Code: Select all

    TChart1.Aspect.View3D = False
    
    TChart1.AddSeries 3
    TChart1.Series(0).FillSampleValues 5    
    TChart1.Series(0).asArea.UseYOrigin = True
    TChart1.Series(0).asArea.YOrigin = 0
    TChart1.Series(0).asArea.Gradient.Visible = True
The problem only happens when the gradient is set to visible and has already been fixed in TeeChart Pro v8 ActiveX.

Posted: Wed Dec 19, 2007 4:55 am
by 9442966
That worked
Thanks for your assistance

Chris