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

Problem with labels on X Axis - properties not recognized or accessible

3 Answers 39 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 03 Sep 2013, 07:31 PM
I'm trying to fit the labels on the X Axis when they are bunched up and unreadable. The issue is that LabelFitMode, LabelInterval, and LabelOffset are coming up with the error:

"The member "LabelFitMode" is not recognized or is not accessible" - see attached screen shot.

Am I missing a reference or something? This used to work before I updated to the latest SL5 dlls. I was using the newest SL4 dlls before... did something change in Silverlight 5? Intellisense still shows them and allows me to enter them and their values, but then I get the squiggly blue lines after they're put in.

LabelRotationAngle and Labelstep still function as expected, but the other three label properties don't work.

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 06 Sep 2013, 05:17 AM
Hello Barry,

The RadChart control never had an axis that had LabelFitMode and LabelInterval properties. These are properties that exist in axes in the new RadChartView, which is a different control and resides in a different assembly. From the attached screenshot I can clearly see that you are using the old RadChart. I am unsure why this mix up has arised but these properties do not exist in the old RadChart control.

Regards,
Petar Marchev
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Barry
Top achievements
Rank 1
answered on 06 Sep 2013, 12:45 PM
A few questions:

1. If the X Axis never had these properties, then why do they show up under intellisense? (see attached photo)

2. If the X Axis does NOT have "LabelFitMode", then is there a way to accomplish the same functionality with the RadChart control? How do I get the labels to not bunch up?

3. What DLL is the ChartView found in? I have the Charting and Chart DLLs referenced but I am not able to use the ChartView control. Or by ChartView do you mean RadCartesianChart? Because there is no RadChartView or ChartView that I can find...

I am currently using 2013.1.403.1050.


0
Petar Marchev
Telerik team
answered on 09 Sep 2013, 10:07 AM
Hello Barry,

I want to reassure you that there is no LabelFitMode property in the RadChart control. This seems to be a bug in the Visual Studio. There is an abstract class Axis in Charting assembly (in which the old RadChart resides). There is another class Axis in Chart assembly (in which the ChartView resides). The LabelFitMode is declared in the latter. So again, there is no such property in the AxisX class, and this seems to be a bug in Visual Studio. I think you can easily solve this by removing the Chart reference. Then the XAML intellisense should not get confused.

There is no exact equivalent of the LabelFitMode property. Perhaps you can use the TickDistance property but I am unsure what is the problem so I can not suggest a solution right away.

The ChartView is actually a set of controls such as the RadCartesianChart, RadPieChart, ChartDataSource and others. I suggest that you use the new ChartView instead of the old RadChart as it has a much better performance rate, it is generally more flexible and easier to customize. I also suggest that you use only the Chart assembly and not include the Charting assembly in the project as other compile time errors may occur due to name collisions.

Regards,
Petar Marchev
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Chart
Asked by
Barry
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Barry
Top achievements
Rank 1
Share this question
or