我目前正在使用一个模块来创建图表以显示一些分析数据。 我正在使用 System.Windows.Forms.DataVisualization.Charting;
如何在剑之间的图形上写一个箭头,从而显示出动态。 现在我有一个代码:
// 2014 2015 2016 2017
double[] ipp = { 0.255, 0.232, 0.618, 0.713 };
double[] pgc = { 0.154, 0.091, 0.176, 0.185 };
chart1.Palette = ChartColorPalette.Fire;
Series s1 = chart1.Series.Add("bubble-chart");
s1.ChartType = SeriesChartType.Bubble;
s1.MarkerStyle = MarkerStyle.Circle;
s1.BorderWidth = 1;
s1.BorderColor = Color.Black;
s1["BubbleScaleMin"] = "0";
Axis axX = chart1.ChartAreas[0].AxisX;
Axis axY = chart1.ChartAreas[0].AxisY;
axX.Maximum = 1.195;
axX.IntervalOffset = 0.208;
axX.Interval = (axX.Maximum - axX.IntervalOffset) / 2;
axY.Maximum = 0.25;
axY.Interval = axY.Maximum / 4;
chart1.Series.Add("Line");
chart1.Series["Line"].Points.Add(new DataPoint(0.232, 0.091));
chart1.Series["Line"].Points.Add(new DataPoint(0.255, 0.154));
chart1.Series["Line"].ChartType = SeriesChartType.Line;
chart1.Series["Line"].BorderWidth = 2;
for (int i = 0; i < ipp.Length; i++)
{
s1.Points.AddXY(ipp[i], pgc[i], ipp[i]);
}
设法只在两点之间写一条线: https://i.stack.imgur.com/ZRwc3.png
是否可以实施? 谢谢