将y-Values加载到图表后重命名?

时间:2015-04-30 12:23:00

标签: vb.net charts

这是我的第一个问题,所以我希望我以正确的方式提出问题:)

我在更改y值方面遇到了问题。 目前他们的数字从1到14。 现在我想重命名这些值:例如而不是

"1"->ID_a, "2"->ID_b依此类推

有谁知道怎么做?我用]

添加了点数
For Each row As DataRow In viewCIStateVerlauf2.Table.Rows
    Itemm = "ID" & row.Item("Item_ID")
    Select Case row.Item("State")
        Case "Change Completed                        "
            Series12.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))

        Case "Change Failed                           "
            Series11.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change Tested"
            Series10.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change Implemented                      "
            Series9.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change Accepted                         "
            Series8.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change Planned                          "
            Series7.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change Rejected                         "
            Series6.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change CCB_NOK                          "
            Series5.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change CCB_OK                           "
            Series4.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change Analyzed                         "
            Series3.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
        Case "Change New                              "
            Series2.Points.AddXY(row.Item("Snapshot_Date"), row.Item("Nummer"))
    End Select
    Series1.Points.AddXY(Convert.ToDateTime(dateTo), row.Item("Nummer"))
Next

enter image description here

0 个答案:

没有答案