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

  • Home
  • SEARCH
  • 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 998783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:15:11+00:00 2026-05-16T07:15:11+00:00

Got a chart control i wanna make from a data table. the table looks

  • 0

Got a chart control i wanna make from a data table.

the table looks like this:

alt text http://www.freeimagehosting.net/uploads/5d02ce1558.png

the chart i want will look like this:

''' 
''''
'''''       '' '  
'''''       '' '
ECCTMP      ECCTMP       ECCTMP   
Monday      Tuesday      Wednesday

hope this makes sense for each day its grouped b y the type (email, calls).

I’m just now sure how to databind it?

Billy

  • 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-05-16T07:15:12+00:00Added an answer on May 16, 2026 at 7:15 am

    If you’re looking to group series in a bar chart then you’ll need to use the Chart.DataBindTable method (MSDN).

    Just add the following code:

    Chart1.DataBindTable(IEtable, "Day");
    

    This will produce a chart that looks something like the following:
    alt text

    Here’s some dummy code to use as a test:

    DataTable table = new DataTable();
    table.Columns.Add("Day", typeof(string));
    table.Columns.Add("Email", typeof(int));
    table.Columns.Add("Calls", typeof(int));
    table.Columns.Add("Contacts", typeof(int));
    table.Columns.Add("Tasks", typeof(int));
    table.Columns.Add("Meetings", typeof(int));
    table.Columns.Add("Proposals", typeof(int));
    
    table.Rows.Add("Monday", 1, 3, 3, 4, 5, 5);
    table.Rows.Add("Tuesday", 1,6,8,2,0,3);
    table.Rows.Add("Wednesday", 7, 6,3,0,2,1);
    table.Rows.Add("Thursday", 1,5,5,9,3,1);
    table.Rows.Add("Friday", 4,7,3,5,2,3);
    
    //convert datatable to a IEnumerable form
    var IEtable = (table as System.ComponentModel.IListSource).GetList();
    
    //Bind the datatable to the chart using the DataBindTable method
    Chart1.DataBindTable(IEtable, "Day");
    

    It is also possible to have the labels appear as you describe with ECCTMP but adding a legend will probably look cleaner.

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

Sidebar

Related Questions

I would like to create a main overview chart with asp:chart control, like this:
I have got this nice little method to remove control characters from a string.
I've got MS Chart control and with a references to GAC. I found them
I've got a windows app which draws charts from data points but there is
I've got a bar's graphic in a chart control in my app. I've set
I have a zedgraph control where I got at the the basic line chart
Let's say I've got this XAML (created with Live ChartBuilder ): <Grid xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:sys=clr-namespace:System;assembly=mscorlib
I've got a custom control that descends from TTreeView. I'm trying to give it
The title of this question says it all. I've got a gantt chart (RangeBar)
I'd like to show an ASP.NET Chart control that shows a distribution of grades.

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.