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

[Solved] ScrollBar Barseries

3 Answers 74 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mag
Top achievements
Rank 2
Mag asked on 04 Feb 2014, 08:06 PM

Hello
i need to implement a scroll bar on a bar series, because i have a lot of data to show. Can someone help me how to do it?
This is the code of my bar series.:


<Chart:BarSeries ItemsSource="{Binding ListData}"   >
                    <Chart:BarSeries.PointTemplate>
                        <DataTemplate>
                            <Rectangle Fill="{Binding DataItem.Color}" />
                        </DataTemplate>
                    </Chart:BarSeries.PointTemplate>
                    <Chart:BarSeries.LabelDefinitions>
                        <Chart:ChartSeriesLabelDefinition HorizontalAlignment="Center" VerticalAlignment="Top" >
                            <Chart:ChartSeriesLabelDefinition.Template>
                                <DataTemplate>
                                    <TextBlock FontSize="15" Text="{Binding DataItem.Value}" Foreground="Black"/>
                                </DataTemplate>
                            </Chart:ChartSeriesLabelDefinition.Template>
                        </Chart:ChartSeriesLabelDefinition>
                    </Chart:BarSeries.LabelDefinitions>
                    <Chart:BarSeries.ValueBinding>
                        <Chart:PropertyNameDataPointBinding PropertyName="Value"/>
                    </Chart:BarSeries.ValueBinding>
                    <Chart:BarSeries.CategoryBinding>
                        <Chart:PropertyNameDataPointBinding PropertyName="Caption"/>
                    </Chart:BarSeries.CategoryBinding>
                </Chart:BarSeries>

Thank you

3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 05 Feb 2014, 12:06 PM
Hi Mario,

Thank you for contacting us.

The chart control supports panning and zooming. You can take a look at this article from our online documentation to see how to use the ChartPanAndZoomBehavior.

I hope this helps.

Regards,
Rositsa Topchiyska
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Mag
Top achievements
Rank 2
answered on 05 Feb 2014, 07:20 PM
hello
I used the ChartPanAndZoombehavior but i still have the same problem, although i can zoom and pan the bar series, when i opened for the first time i saw something like the attach file.
Can you help me?? 
Thank you
0
Rosy Topchiyska
Telerik team
answered on 06 Feb 2014, 04:42 PM
Hello Mario,

You can initially apply zoom and an offset to the chart by setting the Zoom and ScrollOffset properties when you create the chart.

I hope this was useful.

Regards,
Rositsa Topchiyska
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
Chart for XAML
Asked by
Mag
Top achievements
Rank 2
Answers by
Rosy Topchiyska
Telerik team
Mag
Top achievements
Rank 2
Share this question
or