C#图表日期工具提示仅适用于第一个系列

时间:2014-07-07 09:46:02

标签: c# charts linechart

myChart.ChartAreas[0].AxisX.LabelStyle.Format = "hh MM/dd/yyyy";

foreach(item in Collection)
{
            myChart.Series.Add(station.Name);
            myChart.Series[station.Name].ChartType = SeriesChartType.Line;
            myChart.Series[station.Name].BorderWidth = 3;
            myChart.Series[station.Name].ToolTip = "#SERIESNAME \r\n Date: #VALX \r\n Value: #VALY";
}

这里我有这个C#winform代码,目的是当用户鼠标悬停在图表上时显示工具提示。预计会显示日期和值,但它仅适用于图表中的第一个系列。对于本系列的其余部分,它将日期显示为0。

任何解决方案?

0 个答案:

没有答案
相关问题