Hardik Kachhia

Hardik Kachhia

  • NA
  • 2
  • 1.6k

Disable zoom and drag from d3 line graph in WPF C#

Mar 28 2017 6:15 AM
I have created line graph using d3(Dynamic data display) in WPF and it's working fine. But I want to remove zoom and drag facilities from graph. It's zoom on mouse scroll button and also allowed to drag graph. Can you please help me how to prevent this.
 
<Window x:Class="HMI_Simulator.popupGraph"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="Graph" Height="650" Width="900" Background="AliceBlue" Icon="Resources/BHEL_Logo.ico" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" >
<Grid>
<d3:ChartPlotter Name="Plotter" Margin="20,10,20,20">
<d3:ChartPlotter.HorizontalAxis>
<d3:HorizontalDateTimeAxis Name="pdateAxis"/>
</d3:ChartPlotter.HorizontalAxis>
<d3:VerticalAxisTitle Content="Value"/>
<d3:HorizontalAxisTitle Content="Date"/>
<d3:LineGraph x:Name="lg_popup" Stroke="Blue" StrokeThickness="3"/>
<d3:Header HorizontalAlignment="Center" Name="popGraphHeader" Content=""></d3:Header>
</d3:ChartPlotter>
</Grid>
</Window>