Windows forms: this.chart.PrimaryYAxis.Range = new Syncfusion.Windows.Forms.Chart.MinMaxInfo(Math.Log(500,10), Math.Log(10000,10), Math.Log(1,10)); |
Windows Forms: this.chart.PrimaryYAxis.LogLabelsDisplayMode = LogLabelsDisplayMode.IntegerLogValues; |
Thanks for that.
Now, it gets displayed like this, on the left side of the chart, when I use this both:
this._seriesChartControl.PrimaryYAxis.Range = new Syncfusion.Windows.Forms.Chart.MinMaxInfo(System.Math.Log(800, 10), System.Math.Log(4000, 10), System.Math.Log(10, 10));
this._seriesChartControl.PrimaryYAxis.ValueType = Syncfusion.Windows.Forms.Chart.ChartValueType.Logarithmic;
this._seriesChartControl.PrimaryYAxis.LogLabelsDisplayMode = Syncfusion.Windows.Forms.Chart.LogLabelsDisplayMode.IntegerLogValues
Windows Forms: this.chart.ChartFormatAxisLabel += chart_ChartFormatAxisLabel; void chart_ChartFormatAxisLabel(object sender, ChartFormatAxisLabelEventArgs e) { if (e.AxisOrientation == ChartOrientation.Vertical) e.Label = Convert.ToString(Math.Round(e.Value)); e.Handled = true; } |