Hi,
I need to toggle an y-axis between linear and logarithmic scaling. The only way I could archieve this was by completely rebuilding all chart objects. Is there a more efficient way?
Here's what I have tried yet.
private void checkEdit1_CheckedChanged(object sender, EventArgs e)
{
//bool logEnabled = checkEdit1.Checked;
//CartesianCoordinates pTransform1 = new CartesianCoordinates(ChartObj.LINEAR_SCALE, logEnabled?ChartObj.LOG_SCALE:ChartObj.LINEAR_SCALE);
//pTransform1.AutoScale(Dataset5, ChartObj.AUTOAXES_FAR, ChartObj.AUTOAXES_FAR);
//xAxis.ChartObjScale = pTransform1;
//xAxis.CalcAutoAxis();
//xAxisLab.ChartObjScale = pTransform1;
//yAxis.ChartObjScale = pTransform1;
//yAxis.CalcAutoAxis();
//yAxisLab.ChartObjScale = pTransform1;
//errorPlot.ChartObjScale = pTransform1;
//this.UpdateDraw();
InitializeChart();
}
Best regards