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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -