ChartView Scroll bar hight

2 posts, 0 answers
  1. Jyotiranjan Sahoo
    Jyotiranjan Sahoo avatar
    6 posts
    Member since:
    Mar 2010

    Posted 09 Feb 2012 Link to this post

    Hi

    We are using ChartView control to display line graph. We have scrollbar to the graph. How do we increase the scroll bar height of the control
    Please refer attached image also
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 10 Feb 2012 Link to this post

    Hello,

    This can be easily achieved by using the exposed PanZoomBarStyle of the axes.

    For example you need to set a bigger height for the horizontal axis:
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:DateTimeContinuousAxis LabelFitMode="MultiLine" LabelFormat="yy/MM/dd" PlotMode="OnTicks"
                                        MajorStepUnit="Week" MajorStep="2">
            <telerik:DateTimeContinuousAxis.PanZoomBarStyle>
                <Style TargetType="telerik:PanZoomBar">
                    <Setter Property="Background" Value="Red" />
                    <Setter Property="Height" Value="30" />
                </Style>
            </telerik:DateTimeContinuousAxis.PanZoomBarStyle>
        </telerik:DateTimeContinuousAxis>
    </telerik:RadCartesianChart.HorizontalAxis>

    and a bigger width for the vertical axis:
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis>
            <telerik:LinearAxis.PanZoomBarStyle>
                <Style TargetType="telerik:PanZoomBar">
                    <Setter Property="Background" Value="Red" />
                    <Setter Property="Width" Value="30" />
                </Style>
            </telerik:LinearAxis.PanZoomBarStyle>
        </telerik:LinearAxis>
    </telerik:RadCartesianChart.VerticalAxis>

    Regards,
    Sia
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top