Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

Setting a Chart label using ‘String Keyword Editor’- need a keyword!

Using Visual Studio 2010 for asp .NET4 website

I have a ‘Bar’ chart that is provided data from 3 columns from my SQL database: Name, Company and Value. I have set Y Axis to display the ‘Company’, X Axis to display the ‘Value’, and want to set data point label (the label at the end of each bar) the ‘Name’ associated to that record.

How can I set the datapoint label to read the value in the data source 'Name'?

In the ‘String Keyword Editor’ dialog box (myChart>Series collection>Label) is I think where I do this, but don’t know the keyword to put for the ‘Name’ value.

Thanks in advance.
0
MyNameIsIvan
Asked:
MyNameIsIvan
  • 3
1 Solution
 
RouchieCommented:
Try entering #Name in the dialog (ref: http://msdn.microsoft.com/en-us/library/dd456687.aspx)

Otherwise you might have to add it via code-behind
0
 
RouchieCommented:
Sorry try again, make that #VAL
0
 
MyNameIsIvanAuthor Commented:
Adding #VAL didn't work. How do I add it via code-behind?
0
 
RouchieCommented:
Can you provide the code you have in the page, and what creates the chart so far, so that I can try and work with your correct ID's/data collections?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now