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

Secondary Y-Axis for Chart (No scroll bar)

3 Answers 113 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Houssem
Top achievements
Rank 1
Houssem asked on 13 Sep 2017, 11:55 AM

Hi

I have added Secondary Y-Axis for Chart but the scroll bar on the both Y-Axis is not shown anymore.

Is there any fix for this issue?

Thanks



3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 14 Sep 2017, 10:39 AM
Hello Sam,

Can you clarify which chart you are using RadChart or RadCartesianChart?

Note that the RadCartesianChart is displaying the panzoombar  (the scrollbar) only for the main axes (the ones set on the Vertical/HorizontalAxis property of the chart). If you don't have a main axis set the panzoombar won't be displayed.

Also, there is a feature request for multiple axes with separate panzoombars logged in our feedback portal. You can also check the IndividualAxisZooming SDK example.

Regards,
Author nickname
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
 


Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Houssem
Top achievements
Rank 1
answered on 29 Sep 2017, 12:58 PM

Ok then while setting the vertical axis in Telerik.Windows.Controls.ChartView.CartesianSeries, the panzoombar  (the scrollbar) is not shown at all. It there a way to display it? 

Thanks

0
Martin Ivanov
Telerik team
answered on 04 Oct 2017, 09:58 AM
Hello Sam,

Yes, you can display the zoombar if you set also the VerticalAxis of the RadCartesianChart. If you don't want to see the chart's vertical axis you can set its ElementBrush property to Transparent. Here is an example in code:
<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis ElementBrush="Transparent" />
    </telerik:RadCartesianChart.VerticalAxis>          
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis/>
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartPanAndZoomBehavior ZoomMode="Both" />
    </telerik:RadCartesianChart.Behaviors>
    <telerik:AreaSeries>
        <telerik:AreaSeries.VerticalAxis>
            <telerik:LinearAxis />
        </telerik:AreaSeries.VerticalAxis>               
        <telerik:AreaSeries.DataPoints>
            <telerik:CategoricalDataPoint Value="20"/>
            <telerik:CategoricalDataPoint Value="40"/>
            <telerik:CategoricalDataPoint Value="35"/>
            <telerik:CategoricalDataPoint Value="40"/>
            <telerik:CategoricalDataPoint Value="30"/>
            <telerik:CategoricalDataPoint Value="50"/>
        </telerik:AreaSeries.DataPoints>
    </telerik:AreaSeries>
</telerik:RadCartesianChart>

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Chart
Asked by
Houssem
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Houssem
Top achievements
Rank 1
Share this question
or