Stacked Bar Chart

8 posts, 0 answers
  1. Amy
    Amy avatar
    27 posts
    Member since:
    Sep 2010

    Posted 23 Oct 2013 Link to this post

    Hello,

    Can someone please advise on which control - RadChart or RadChartView - would be better suited to implement a dashboard as shown in the attached screenshot?

    Thanks,
    Amy
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 24 Oct 2013 Link to this post

    Hi,

    I would recommend you to consider using RadChartView. A topic where both charts are compared can be found here:
    http://www.telerik.com/help/silverlight/radchartview-radchartview-vs.-radchart.html

    You should also note that our efforts are concentrated on the newer chart version which in this case is RadChartView.

    Hope this helps you choose which one of both controls will fit better in your scenario.

    Regards,
    Peshito
    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. Amy
    Amy avatar
    27 posts
    Member since:
    Sep 2010

    Posted 25 Oct 2013 Link to this post

    Thank you for the response.  I have started to learn the different aspects of the RadChartView.

    Can you also provide some direction as to how to create a Title Bar for the RadChartView similar to the attached screenshot?

    Thanks,
    Amy
  5. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 30 Oct 2013 Link to this post

    Hello Amy,

    There are two ways you can have Chart Title:
    1. Retemplate RadChartView default style to add a Label inside the first grid of the Cartesian Chart (see the image attached):
        <!--CartesianChart template-->
     
                                <Border  x:Name="layoutRoot"
     
                                 BorderBrush="{TemplateBinding BorderBrush}"
     
                                 BorderThickness="{TemplateBinding BorderThickness}"
     
                                 Background="{TemplateBinding Background}">
     
                                    <Grid>
     
                                        <Label Name="TitleBar" Background="WhiteSmoke" VerticalAlignment="Top"
     
                                          HorizontalContentAlignment="Center" Content="My Title Here" ClipToBounds="False"/>
     
                                        <ContentPresenter x:Name="emptyContent"
     
                                         HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
     
                                         IsHitTestVisible="False"
     
                                         Visibility="Collapsed"
     
                                         VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
     
    ...

    All default styles and templates for the ChartView control can be found under your controls local installation path (for example: C:\ProgramFiles\Telerik\RadControls_for_Silverlight5_2013_3_1016_Trial\Themes\Windows8\Themes\Telerik.Windows.Controls.Chart.xaml).

    2. On the other side you may add such Label or TextBlock outside the visual tree of the RadCartesianChart and position it over the PlotArea via Margins.

    Let me know if you need any additional assistance.

    Regards,
    Evgenia
    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 >>
  6. MARIUSZ MADEJCZYK
    MARIUSZ MADEJCZYK avatar
    2 posts
    Member since:
    Jul 2010

    Posted 24 Sep 2014 in reply to Amy Link to this post

    How create that chart ? with multi stacked bars ? i need to create one such chart and i dont know how.

    thanks for sample/example and for help,

    best regards
  7. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 25 Sep 2014 Link to this post

    Hello MARIUSZ,

    You can refer to the following forum thread where similar inquiry is discussed.
    http://www.telerik.com/forums/-5f24dcbf812c

    Hope that helps.

    Regards,
    Peshito
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  8. MARIUSZ MADEJCZYK
    MARIUSZ MADEJCZYK avatar
    2 posts
    Member since:
    Jul 2010

    Posted 01 Oct 2014 in reply to Peshito Link to this post

    Thanks, that was very helpful,

    the last question, StackGroupKey Label, is that possible ?

    my attachments shows my needs.

    thanks for replay
  9. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 03 Oct 2014 Link to this post

    Hello MARIUSZ,

    This is not supported out of the box. However you could use a workaround by using a converter and manipulating your axis labels like shown in the attached sample project.

    Hope this helps.

    Regards,
    Peshito
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
DevCraft banner