This is a migrated thread and some comments may be shown as answers.

Appearance is being ignored

1 Answer 75 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
shovavnik
Top achievements
Rank 1
shovavnik asked on 11 Jul 2009, 01:14 PM
I'm using the RadChart from 2008 Q2 SP1.

Nothing I do to change the appearance in code causes the style information to change. I've tried with and without DataBind(), and I've tried changing the style informaiton in the designer as well as writing the code explicitly. It always reverts to the basic empty skin.

Here's an example:
var series = chart.Series[0]; 
var appearance = series.Appearance; 
appearance.PointMark.Dimensions.AutoSize = false
appearance.PointMark.Dimensions.Width = 2; 
appearance.PointMark.Dimensions.Height = 2; 
appearance.PointDimentions.AutoSize = false
appearance.PointDimentions.SetDimensions(2, 2); 
appearance.LabelAppearance.Visible = false
appearance.TextAppearance.Visible = false

Note that I'm using a Point chart.

Any ideas what I could be missing?


1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 14 Jul 2009, 10:06 AM
Hello Noam,

By default there is a single ChartSeries in the Series collection, but it is being removed on data bind. New series are created instead. Please, try changing the appearance properties after calling DataBind().

Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (obsolete as of Q1 2013)
Asked by
shovavnik
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or