除了DateTime Intervals
之外没有其他选项chart1.ChartAreas [0] .AxisX.IntervalType = ???
在xAxis下似乎没有AxisType。
我正在尝试使用Points ChartType创建一个Scatter图,而我的xAx仍然固执地广告DateTime
chart1.Series.Add(seriesName);
chart1.Series[seriesName].ChartType = SeriesChartType.Point;
chart1.Series[seriesName].Color = Color.Red;
chart1.Series[seriesName].BorderWidth = 1;
chart1.Series[seriesName].MarkerStyle = MarkerStyle.Circle;
chart1.Series[seriesName].MarkerSize = 5;
chart1.Series[seriesName].ChartArea = chart1.ChartAreas[0].Name;
chart1.Series[seriesName].XValueType = ChartValueType.Double;
double[] xData = FillArraySomeHow();
double[] yData= FillArraySomeHow();
for (int i = 0; i < yData.GetUpperBound(0); i++)
{
double x = i;
if (xData != null)
{
x = xData[i];
}
chart.Series[seriesName].Points.AddXY(x, yData[i]);
}