Query Regarding Axes in Teechart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Query Regarding Axes in Teechart

Post by Amol » Wed Oct 10, 2012 1:21 pm

Hello Steema Support,

I am using Tee chart in SilverLight Application in this chart I am using two Series one is Bar and another one is line. For Line series I am using Bottom axes as X value and Right Axes as Y value and Bar series Left axes is Y value . I want to Show two separate Bottom Axes one is For Bar Chart and another one is for Line as it is shown in attaching Image.

Any suggestion will be highly appreciated.

Thanks & Regards
Plano team
Attachments
Axeespics.png
Query Regarding Axes in Teechart
Axeespics.png (19.09 KiB) Viewed 6998 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Query Regarding Axes in Teechart

Post by Narcís » Thu Oct 11, 2012 7:36 am

Hello,

In that case you can use custom axes. You'll find information in tutorial 4 and the All Features\Welcome !\Axes\Permanent custom axes example in the features demo. Both tutorials and demo are available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Re: Query Regarding Axes in Teechart

Post by Amol » Sat Oct 13, 2012 11:55 am

Hello Steema Support,

Thanks for the reply, but I want to show axes in the manner which I have shown in previously attached image and by that tutorial of the tee chart it is possible only on that similar bottom axes but I want to use two separate bottom axes one is for Line & other one is for bar and all the time both axes must be visible.

I am also attaching one sample project for this.

Please include teechart dll version 4.1.2011.4192.

Any Solution will be highly appreciated.


Thanks & regards
Plano team
Attachments
Test.rar
(34.82 KiB) Downloaded 582 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Query Regarding Axes in Teechart

Post by Sandra » Mon Oct 15, 2012 11:06 am

Hello Amol,

I suggest you add next lines of code in your InitializeBarValues method to achieve as you want:

Code: Select all

   tChartGraph.Panel.MarginBottom = 100;
            tChartGraph.Axes.Left.PositionUnits = PositionUnits.Pixels;
            tChartGraph.Axes.Bottom.PositionUnits = PositionUnits.Pixels;
            tChartGraph.Panel.MarginUnits = PanelMarginUnits.Pixels;
            tChartGraph.Draw();
            axisLineBottom.RelativePosition = -10;
            tChartGraph.Legend.Left = axisbarBottom.IAxisSize / 2;
            tChartGraph.Legend.Top = tChartGraph.Axes.Left.IEndPos +(int) tChartGraph.Panel.MarginBottom;
            CustomAxes axes = tChartGraph.Axes.Custom;
            for (int t = 0; t < axes.Count; t++)
            {
                axes[t].Visible = true;
               
            }
Can you tell us if previous code works in your end?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply