Ejemplo n.º 1
0
        /// <summary>
        /// SetAxisRanges creates the Ranges for the Axes
        /// on the Chart.
        /// </summary>
        /// <param name="xMax">The Max X-Value on the Chart</param>
        /// <param name="yMax">The Max Y-Value on the Chart</param>
        private void SetAxisRanges(Double xMax, Double yMax)
        {
            //Set the ranges on the Chart
            this.XAxisRange = new Syncfusion.Windows.Chart.DoubleRange(0, xMax);
            this.YAxisRange = new Syncfusion.Windows.Chart.DoubleRange(0, yMax);

            //Enable Zooming on the Chart
            Syncfusion.Windows.Chart.ChartAreaCommands.SwitchZooming.Execute(null, this._view._chartArea);
        }
Ejemplo n.º 2
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     if (value != null)
     {
         SparkModel record = (SparkModel)((Syncfusion.Windows.Data.RecordEntry)(((Syncfusion.Windows.Controls.Grid.GridDataCellBoundWrapper)(value)).Record)).Data;
         Syncfusion.Windows.Chart.DoubleRange value1 = new Syncfusion.Windows.Chart.DoubleRange(record.Start, record.End);
         return(value1);
     }
     return(value);
 }