[repost] How to draw 3D chart?

TeeChart for ActiveX, COM and ASP
Post Reply
Woon
Newbie
Newbie
Posts: 6
Joined: Tue Dec 23, 2008 12:00 am
Contact:

How to draw 3D chart?

Post by Woon » Mon Jul 21, 2014 7:48 am

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.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: How to draw 3D chart?

Post by Christopher » Mon Jul 21, 2014 9:08 am

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
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Woon
Newbie
Newbie
Posts: 6
Joined: Tue Dec 23, 2008 12:00 am
Contact:

Re: How to draw 3D chart?

Post by Woon » Mon Jul 21, 2014 11:57 pm

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.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

[repost] How to draw 3D chart?

Post by Christopher » Tue Jul 22, 2014 9:19 am

Hello Woon,

I have moved your post to the ActiveX forum where the ActiveX team will be happy to answer your questions.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Wed Jul 23, 2014 7:35 am

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.

Woon
Newbie
Newbie
Posts: 6
Joined: Tue Dec 23, 2008 12:00 am
Contact:

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

Post by Woon » Thu Jul 24, 2014 2:48 am

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.
Attachments
3d bar2.JPG
3d bar2.JPG (12.75 KiB) Viewed 31380 times
3d bar1.JPG
3d bar1.JPG (36.54 KiB) Viewed 31384 times
3d bar.JPG
3d bar.JPG (55.78 KiB) Viewed 31382 times

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Thu Jul 24, 2014 12:52 pm

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

Woon
Newbie
Newbie
Posts: 6
Joined: Tue Dec 23, 2008 12:00 am
Contact:

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

Post by Woon » Thu Jul 24, 2014 11:59 pm

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.

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Mon Jul 28, 2014 6:33 am

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);

Woon
Newbie
Newbie
Posts: 6
Joined: Tue Dec 23, 2008 12:00 am
Contact:

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

Post by Woon » Tue Jul 29, 2014 7:19 am

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.

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Tue Jul 29, 2014 8:58 am

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.

Post Reply