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

ChartView Scroll bar hight

1 Answer 58 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jyotiranjan Sahoo
Top achievements
Rank 1
Jyotiranjan Sahoo asked on 09 Feb 2012, 02:32 PM
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

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 10 Feb 2012, 01:21 PM
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 >>
Tags
ChartView
Asked by
Jyotiranjan Sahoo
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or