using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Forms.DataVisualization.Charting; namespace DemoCustomGraph { public partial class customGraph : UserControl { public customGraph() { InitializeComponent(); } private void btnScrollOnOff_Click(object sender, EventArgs e) { if(chart1.ChartAreas["ChartArea1"].CursorX.AutoScroll == false) { chart1.ChartAreas["ChartArea1"].CursorX.AutoScroll = true; btnScrollOnOff.Text = "Scroll On"; } else { chart1.ChartAreas["ChartArea1"].CursorX.AutoScroll = false; btnScrollOnOff.Text = "Scroll Off"; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)