private bool isValidAxisValue(double value, Axis axis) { if (!IsValidValue(value)) { return(false); } return(axis.Scaling == Scalings.Linear || value > 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; }
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()); }
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(); }