Page 1 of 1
Query Regarding Axes in Teechart
Posted: Wed Oct 10, 2012 1:21 pm
by 9641422
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
Re: Query Regarding Axes in Teechart
Posted: Thu Oct 11, 2012 7:36 am
by narcis
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.
Re: Query Regarding Axes in Teechart
Posted: Sat Oct 13, 2012 11:55 am
by 9641422
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
Re: Query Regarding Axes in Teechart
Posted: Mon Oct 15, 2012 11:06 am
by 10050769
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,