Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将图表更改为日志图表C#_C#_Charts_Scale_Interactive - Fatal编程技术网

将图表更改为日志图表C#

将图表更改为日志图表C#,c#,charts,scale,interactive,C#,Charts,Scale,Interactive,是否可以将图表上y轴的比例更改为对数?我想通过点击一个按钮来完成,即使在点已经绘制好之后 这是我的散点图的代码。X值是我在冒泡排序算法中使用的数字数组的长度。Y值来自一个秒表,用于计时方法排序所需的时间 type = "bubble"; chart1.Series[type].Points.AddXY(dataArray.Length, sw.ElapsedMilliseconds); Axis.IsLogarithmic设置一个标志,指示轴是否为对数。对数图

是否可以将图表上y轴的比例更改为对数?我想通过点击一个按钮来完成,即使在点已经绘制好之后

这是我的散点图的代码。
X
值是我在冒泡排序算法中使用的数字数组的长度。
Y
值来自一个秒表,用于计时方法排序所需的时间

type = "bubble";                
chart1.Series[type].Points.AddXY(dataArray.Length, sw.ElapsedMilliseconds); 

Axis.IsLogarithmic设置一个标志,指示轴是否为对数。对数图表上不允许使用零或负数据值


chart1.ChartAreas[0]。AxisY.IsLogarithmic=true

您应该提供一些代码。目前,没有人知道您在绘图时使用了什么工具和/或控件-这是一个开放式的问题。@Übercoder我更新了这个问题,请尝试以下操作:
chart.ChartAreas[0]。AxisY.IsLogarithmic=true