Silverlight Teechart - Panel hight, Teechart hight etc.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
15661441
Newbie
Newbie
Posts: 3
Joined: Wed Feb 01, 2012 12:00 am

Silverlight Teechart - Panel hight, Teechart hight etc.

Post by 15661441 » Tue Mar 13, 2012 9:53 am

Team,

I have three queries on Silverlight TeeChart: Please find the attachement for your reference:Issues are numbered as 1,2,3

1. Need spme space between broder of reactangle and Text. Code is as follows:

SeriesList[iRow].Marks.Angle = 90;
SeriesList[iRow].Marks.Visible = true;
SeriesList[iRow].Marks.Style = Steema.TeeChart.Silverlight.Styles.MarksStyles.Label;
//SeriesList[iRow]..Marks.Font.Stretch. =new FontStretch()..Equals.
SeriesList[iRow].Marks.Font.Size = 7;
SeriesList[iRow].ShowInLegend = false;
SeriesList[iRow].Title = "AGM & CM";

2.I Want to increase the height of Panel inside TeeChart.
3. I want to Increase the height of TeeChart as well.

Will appreciate your help on above queries.

Regards
Hamendra
Attachments
SilverlightTeeChart_Issue.JPG
Silverlight Teechart Image
SilverlightTeeChart_Issue.JPG (66.09 KiB) Viewed 7117 times

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

Re: Silverlight Teechart - Panel hight, Teechart hight etc.

Post by Sandra » Wed Mar 14, 2012 3:53 pm

Hello 15661441,
1. Need spme space between broder of reactangle and Text. Code is as follows:

SeriesList[iRow].Marks.Angle = 90;
SeriesList[iRow].Marks.Visible = true;
SeriesList[iRow].Marks.Style = Steema.TeeChart.Silverlight.Styles.MarksStyles.Label;
//SeriesList[iRow]..Marks.Font.Stretch. =new FontStretch()..Equals.
SeriesList[iRow].Marks.font.Size = 7;
SeriesList[iRow].ShowInLegend = false;
SeriesList[iRow].Title = "AGM & CM";
I suggest you change the size of font and use property of Marks.TextAlign as do in next code :

Code: Select all

private Steema.TeeChart.Silverlight.Styles.Bar bar1;
private void InitializeChart()
{
bar1 = new Steema.TeeChart.Silverlight.Styles.Bar(tChart1.Chart);
bar1.Add(6.75, 2.4523);
bar1.Add(9.75, 2.4523);
tChart1.Axes.Left.SetMinMax(1, 15);
bar1.Marks.Angle = 90;
bar1.Marks.Style = Steema.TeeChart.Silverlight.Styles.
MarksStyles.XY;
bar1.Marks.TextAlign = TextAlignment.Center;
bar1.Marks.MultiLine =true;
bar1.Marks.Font.Size = 8;
}
If previous code doesn't help you, there is other option I suggest you is, use Annotation Tool you can find samples in the TeeChart.Net Demo, concretely: All Feauter\Welcome !\Tools\Annotation or in the Silverlight sample of Annotation.
2.I Want to increase the height of Panel inside TeeChart.
3. I want to Increase the height of TeeChart as well.
I suggest you do something as next code:

Code: Select all

private void button1_Click(object sender, RoutedEventArgs e)
{
tChart1.Header.Text = "Grid Height: " + LayoutRoot.DesiredSize.Height.ToString() + " TChart1.Height:" + tChart1.Height.ToString();
LayoutRoot.Height = LayoutRoot.DesiredSize.Height + 150.0;
tChart1.Height = tChart1.Height + 100;
tChart1.SubHeader.Visible = true;
tChart1.SubHeader.Text = "Grid Height: " + LayoutRoot.Height.ToString() + " TChart1.Height:" + tChart1.Height.ToString();
}
Can you tell us if previous code works as you expect?

I hope will helps.

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

15661441
Newbie
Newbie
Posts: 3
Joined: Wed Feb 01, 2012 12:00 am

Re: Silverlight Teechart - Panel hight, Teechart hight etc.

Post by 15661441 » Sat Mar 24, 2012 6:42 pm

Thanks Sandra,

for your valuable answers (2 & 3). It works for me.

But still I did not get solution of question 1. Change font size and TextAlignment did not help me as suggested by you.
Please sugeest some beter answer for quetion 1 .


Regards
Hamendra

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

Re: Silverlight Teechart - Panel hight, Teechart hight etc.

Post by Sandra » Tue Mar 27, 2012 2:00 pm

Hello Hamendra,

I am afraid that the only you can change the size of Marks, at the moment, is the font size. You have other option, use the Annotation tool as a Mark, as I suggested you in previous post. On the other hand, I have added your request in wish-list with number (TF02016087) to be consider its inclusion for next maintenance releases of TeeChartFor.Net.

If you have any problem, please let me know.

Thank,
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