private void Ax_RangeChanged(LiveCharts.Events.RangeChangedEventArgs eventArgs)
        {
            Axis ax = (Axis)eventArgs.Axis;

            if (limitMax)
            {
                ax.MaxValue = AxisMax;
            }
            if (limitMin)
            {
                ax.MinValue = AxisMin;
            }
        }
Example #2
0
 /// <summary>
 /// Raises the <see cref="E:RangeChanged" /> event.
 /// </summary>
 /// <param name="e">The <see cref="RangeChangedEventArgs"/> instance containing the event data.</param>
 protected void OnRangeChanged(RangeChangedEventArgs e)
 {
     RangeChanged?.Invoke(e);
 }
Example #3
0
 /// <summary>
 /// Raises the <see cref="E:RangeChanged" /> event.
 /// </summary>
 /// <param name="e">The <see cref="RangeChangedEventArgs"/> instance containing the event data.</param>
 protected void OnRangeChanged(RangeChangedEventArgs e)
 {
     if (RangeChanged != null) RangeChanged.Invoke(e);
 }