/// <summary> /// Initializing object GraphConfiguration. /// </summary> public GraphConfiguration() { this._itemsConfiguration = new ItemsConfiguration(); this._xConfiguration = new AxisXConfiguration(); this._yConfiguration = new AxisYConfiguration(); this._legendConfiguration = new LegendConfiguration(); this._graphType = GraphTypeEnum.NameDateStackedColumn; this._palette = new List <PaletteItem>(); this._firstWeekDay = DayOfWeek.Sunday; this._margin = new GraphMargins(); }
private void SetupAxisY(AxisYConfiguration configuration) { // log.DebugFormat("SetupAxisY: configuration.Format: '{0}'", configuration.Format); SetupAxis(this.chart.ChartAreas[0].AxisY, configuration); this.chart.ChartAreas[0].AxisY.LabelStyle.Format = configuration.Format; this.chart.ChartAreas[0].AxisY.LabelStyle.Angle = -90; // this.chart.ChartAreas[0].AxisY.IsLabelAutoFit = true; // this.chart.ChartAreas[0].AxisY.LabelAutoFitStyle = this.chart.ChartAreas[0].AxisY.LabelAutoFitStyle & (~LabelAutoFitStyles.WordWrap) & LabelAutoFitStyles.DecreaseFont; }
private void SetupAxisY(AxisYConfiguration configuration) { // log.DebugFormat("SetupAxisY: configuration.Format: '{0}'", configuration.Format); SetupAxis(this.chart.ChartAreas[0].AxisY, configuration); this.chart.ChartAreas[0].AxisY.LabelStyle.Format = configuration.Format; this.chart.ChartAreas[0].AxisY.LabelStyle.Angle = -90; // this.chart.ChartAreas[0].AxisY.IsLabelAutoFit = true; // this.chart.ChartAreas[0].AxisY.LabelAutoFitStyle = this.chart.ChartAreas[0].AxisY.LabelAutoFitStyle & (~LabelAutoFitStyles.WordWrap) & LabelAutoFitStyles.DecreaseFont; }