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

4 posts, 0 answers
  1. Barry
    Barry avatar
    90 posts
    Member since:
    Jul 2011

    Posted 03 Sep 2013 Link to this post

    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.

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 06 Sep 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Barry
    Barry avatar
    90 posts
    Member since:
    Jul 2011

    Posted 06 Sep 2013 Link to this post

    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.


  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 09 Sep 2013 Link to this post

    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 >>
Back to Top