0
난 열 차트에서 데이터베이스의 데이터를 보여주고이를 %로 표시합니다. 그것은 잘 작동하지만 어떤 결과를 반환하지 않습니다. 차트 0 %를 보여 주어야하지만 0 % 대신 NaN을 보여주고있다. 이MS 칼럼 차트에서 NaN을 0 %로 얻으시겠습니까?
if (platForms != null)
foreach (var platForm in platForms)
{
DataRow dr = dt.NewRow();
dr["Platform"] = platForm;
dr["Count"] = GetPlatformCount(temp, platForm);
dt.Rows.Add(dr);
}
chartWorkItemsPlatform.Series["Series1"].ChartType = SeriesChartType.Column;
chartWorkItemsPlatform.Series["Series1"].XValueMember = "Platform";
chartWorkItemsPlatform.Series["Series1"].YValueMembers = "Count";
chartWorkItemsPlatform.Series["Series1"]["DrawingStyle"] = "Emboss";
chartWorkItemsPlatform.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;
chartWorkItemsPlatform.Series["Series1"].IsValueShownAsLabel = true;
chartWorkItemsPlatform.Series["Series1"].IsVisibleInLegend = true;
chartWorkItemsPlatform.Series["Series1"].IsXValueIndexed = true;
chartWorkItemsPlatform.Series["Series1"].Label = "#PERCENT";