Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7840367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:45:30+00:00 2026-06-02T15:45:30+00:00

I have created a MS Chart control on my page and added 2 series

  • 0

I have created a MS Chart control on my page and added 2 series (combo bar and line graph) bound to a DataView. My DataView has a third metric (Items) which I would like to show as a label on the bars of the Bar graph. Is there a way to assign this third value from the DataView as the label for the first series?

Thanks in advance for any replies.

Here is a snippet of what I have so far;

        DataView DV = new DataView(source, exp, sortorder, DataViewRowState.CurrentRows);

        Chart1.Series.Add("Traffic");
        Chart1.Series["Traffic"].Points.DataBindXY(DV, "Date", DV, "Traffic");
        Chart1.Series["Traffic"].ChartType = SeriesChartType.Column;
        Chart1.Series["Traffic"].YAxisType = AxisType.Primary;

        Chart1.Series.Add("Sales");
        Chart1.Series["Sales"].Points.DataBindXY(DV, "Date", DV, "Sales");
        Chart1.Series["Sales"].ChartType = SeriesChartType.Line;
        Chart1.Series["Sales"].YAxisType = AxisType.Secondary;
        Chart1.Series["Sales"].BorderWidth = 4;
        Chart1.Series["Sales"].Color = System.Drawing.Color.Crimson;
        Chart1.ChartAreas["ChartArea1"].AxisY2.Title = "Sales";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:45:32+00:00Added an answer on June 2, 2026 at 3:45 pm

    you can achieve that part by using DataBind

    Chart1.Series[0].Points.DataBind(data, "Date", "Sales", "Label=yourfieldhere");
    

    Now this should plot for Date and Sales with the labels as represented by the field you assign (should be part of data or in your case DV )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hy, I have a chart,wich is created in runtime,this could be Line, Bar or
I have created a line chart using Reporting Services that charts the number of
I have a graph created with MS Chart like the following picture. As you
I have two vertical bar charts (created using jqPlot) in my HTML page. They
I have created an extension of a chart control, and I have declared following
So I've made this range bar chart with the MS Chart Control. I have
I have an ggplot2 point chart created like this qplot(Index, Popularity ,data = data.slopeone.agg)
I have an AJAX-enabled SharePoint 2007 site. I have also created a user control
I have a page that has a around 30 links divided among 6 groups.
I have a page containing a Chart object that I use as the default

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.