Page 1 of 1

How to draw 3D chart?

Posted: Mon Jul 21, 2014 7:48 am
by 15051216
hi~ I'm Woon

i want to draw 3D Chart.

but i don't know how to draw chart.

i have not any reference of teechart .

so i want to example source.

i draw to 3D graph about the image pixel value

if 3 Points is (x = 0, y = 5, z = 7), (x = 2, y = 3, z = 10), (x = 4, y = 1, z = 3)

i wish to draw 3D bar Graph that x, y Axis is bottom Plane, and z Axis is Value.

is that possible?

i will wait to your answer.

thank you.

Re: How to draw 3D chart?

Posted: Mon Jul 21, 2014 9:08 am
by Christopher
Hello Woon.
Woon wrote:hi~ I'm Woon

i want to draw 3D Chart.
You should have TeeChart installed on your machine in a location similar to this one:

%Program Files%\Steema Software\Steema TeeChart for .NET 2014 4.1.2014.05090

There are many example of how to use TeeChart you can see by running TeeChartNetExamples.exe, which is under this folder:

%Program Files%\Steema Software\Steema TeeChart for .NET 2014 4.1.2014.05090\Examples\DemoProject\bin\ExecutableDemo

Re: How to draw 3D chart?

Posted: Mon Jul 21, 2014 11:57 pm
by 15051216
hi~ I'm woon.

thank you for your answer

Now, i used to TeeChart8ActiveX.

i can find this folder

C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Examples

but i can't find 3D Chart Examples.

so i want to get the Examples from you.

[repost] How to draw 3D chart?

Posted: Tue Jul 22, 2014 9:19 am
by Christopher
Hello Woon,

I have moved your post to the ActiveX forum where the ActiveX team will be happy to answer your questions.

Re: [repost] How to draw 3D chart?

Posted: Wed Jul 23, 2014 7:35 am
by Pep
Hello Woon,

have you looked at the Bar 3D examples you can find into the TeeChartFeatures Demo, which is included into the TeeChart ActiveX installer ?
You can find them at : All Features -> Welcome -> Chart Styles -> Other -> Bar 3D.

Please take a look at the examples and if you still need help on this let us know.

Re: [repost] How to draw 3D chart?

Posted: Thu Jul 24, 2014 2:48 am
by 15051216
hi~ i'm woon.

Sorry, I can't find the TeeChartFeatures Demo.

i installed TeeChart from the file which is downloaded the download page of your website.

and i attached three picture files that i want to draw using TeeChart.

is that possible?

if you have check that, I am enormously grateful to you.

Re: [repost] How to draw 3D chart?

Posted: Thu Jul 24, 2014 12:52 pm
by Pep
Hello Woon,

with the TeeChart ActiveX and VB code you could make use of the Tower Series Chart and then change its aspect (orthogonal, zoom, rotated, 3dpercent, axis..). A simple example could be :

Code: Select all

Private Sub Form_Load()
TeeCommander1.Chart = TChart1
With TChart1
    .AddSeries scTower
    .Series(0).asTower.AddXYZ 0, 5, 7, "", clTeeColor
    .Series(0).asTower.AddXYZ 2, 3, 10, "", clTeeColor
    .Series(0).asTower.AddXYZ 4, 1, 3, "", clTeeColor
    .Aspect.Chart3DPercent = 100
    .Aspect.Orthogonal = False
End With
End Sub

Re: [repost] How to draw 3D chart?

Posted: Thu Jul 24, 2014 11:59 pm
by 15051216
hi~

Thank you for your answer.

Now I use to C++.

I try to change from VB Code to C++ Code, but I failed

So I need C++ sample code.

Re: [repost] How to draw 3D chart?

Posted: Mon Jul 28, 2014 6:33 am
by Pep
Hello Woon,

vc++ code should be something like :

Code: Select all

   m_chart.AddSeries(44); // tower
   m_chart.Series(0).GetasTower().AddXYZ(0, 5, 7, "", clTeeColor);
   m_chart.Series(0).GetasTower().AddXYZ(2, 3, 10, "", clTeeColor);
   m_chart.Series(0).GetasTower().AddXYZ(4, 1, 3, "", clTeeColor);
   m_chart.GetAspect().setChart3DPercent (100);
   m_chart.GetAspect().setOrthogonal(False);

Re: [repost] How to draw 3D chart?

Posted: Tue Jul 29, 2014 7:19 am
by 15051216
Hi ~

Thank you for your answer.

I have a mistake. sorry.

I just have Setting of Teechart in OnInitDialog() that is my mistake.

but Now, i know how to use TeeChart. I call a event fuction after then Teechart is drawed.

I'm sorry to bother you. Thank you.

Re: [repost] How to draw 3D chart?

Posted: Tue Jul 29, 2014 8:58 am
by Pep
Hello,

great ! I'm glat to hear all is working fine now.
Do not hesitate to contact us in the case we can be of any further help.