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

Posted on 2012-08-20
Last Modified: 2012-10-25
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.
Question by:MyNameIsIvan
    LVL 25

    Expert Comment

    Try entering #Name in the dialog (ref:

    Otherwise you might have to add it via code-behind
    LVL 25

    Expert Comment

    Sorry try again, make that #VAL

    Author Comment

    Adding #VAL didn't work. How do I add it via code-behind?
    LVL 25

    Accepted Solution

    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?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now