Yes, I pulled that code from the help documentation, but it works only in OnRender.
I did not find a Sample indicator that provide options for the YAxis RangeType and ScalingType. However, I added statements for both YAxisScalingType and YAxisRangeType for my indicator as the following code and worked fine.
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { // call the base.OnRender() to ensure standard Plots work as designed base.OnRender(chartControl, chartScale); chartScale.Properties.YAxisRangeType = YAxisRangeType.Automatic; chartScale.Properties.YAxisScalingType = YAxisScalingType.Logarithmic; }
Many thanks for your help.
Leave a comment: