示例#1
0
        private bool isValidAxisValue(double value, Axis axis)
        {
            if (!IsValidValue(value))
            {
                return(false);
            }

            return(axis.Scaling == Scalings.Linear || value > 0);
        }
示例#2
0
 public AxisBinder(OSPAxis axis, UxChartControl chartControl, INumericFormatterOptions numericFormatterOptions)
 {
     Axis          = axis;
     _chartControl = chartControl;
     _unitToMinorIntervalMapper = new UnitToMinorIntervalMapper();
     _defaultMinorTickCount     = AxisType == AxisTypes.X ? DEVEXPRESS_DEFAULT_X_MINOR_TICKS : DEVEXPRESS_DEFAULT_Y_MINOR_TICKS;
     _axisView = retrieveAxisView();
     _axisView.VisualRange.Auto = false;
     _numericFormatterOptions   = numericFormatterOptions;
 }
示例#3
0
 protected override void Context()
 {
     base.Context();
     _uxChartControl = new UxChartControl();
     _series         = new Series("dummySeries", ViewType.ScatterLine);
     _uxChartControl.Series.Add(_series);
     _axis = new Axis(AxisTypes.Y);
     _uxChartControl.XYDiagram.AxisY.VisualRange.Auto = true;
     _uxChartControl.XYDiagram.AxisY.WholeRange.Auto  = true;
     sut = new AxisBinder(_axis, _uxChartControl, new NumericFormatterOptions());
 }
示例#4
0
 protected CurveBinder(Curve curve, ChartControl chartControl, CurveChart chart, AxisYBase yAxisView, DataMode dataMode)
 {
     _chartControl = chartControl;
     _axisView     = yAxisView;
     _dataMode     = dataMode;
     Curve         = curve;
     _xAxis        = chart.AxisBy(AxisTypes.X);
     _yAxis        = chart.AxisBy(curve.yAxisType);
     _yAxisType    = curve.yAxisType;
     _dataTable    = new DataTable(Curve.Id);
     _series       = new List <Series>();
     _LLOQSeriesId = string.Empty;
     initializeData();
 }