How to set label value when databinding asp.net chart control -


i binding datatable asp.net chart want set value of label different dataitem (called reslabeltext) used x or y axis. can done? databinding code follows:

  chartres.series("month").xvaluemember = "monthname"     chartres.series("month").yvaluemembers = "res"     chartres.series("month").label = "reslabeltext"     chartres.series("month").tooltip = "#valx"     chartres.datasource = dt     chartres.databind() 

correct way:

for each row in dt.rows         dim point = new datapoint()         point.setvaluexy(row.item("monthname"), row.item("res"))         point.label = row.item("labelres")         point.tooltip = row.item("monthname")         chartres.series("month").points.add(point)     next 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -