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 6049365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:34:07+00:00 2026-05-23T07:34:07+00:00

i have the following dataset NAME | GP | ORD_GP | EXP | TOTAL

  • 0

i have the following dataset

NAME | GP   | ORD_GP | EXP   | TOTAL GP | TARGET
a      206     48      -239     15         1600
b      0       27       0        27        1520

iv managed to display the TOTAL GP on the chart using the code

    Chart1.BackColor = Color.Gray;
    Chart1.BackSecondaryColor = Color.WhiteSmoke;
    Chart1.BackGradientStyle = GradientStyle.DiagonalRight;

    Chart1.BorderlineDashStyle = ChartDashStyle.Solid;
    Chart1.BorderlineColor = Color.Gray;
    Chart1.BorderSkin.SkinStyle = BorderSkinStyle.Emboss;

    // format the chart area
    Chart1.ChartAreas[0].BackColor = Color.Wheat;
    // add and format the title
    Chart1.Titles.Add("TOTAL GP Against TARGET  ");
    Chart1.Titles[0].Font = new Font("Utopia", 16);

    Chart1.Series.Add(new Series("TotalGP")
    {
        ChartType = SeriesChartType.Column,
    });

    Chart1.Series.Add(new Series("Target")
    {
        ChartType = SeriesChartType.Column,
    });

    Chart1.Series[0].ChartType = SeriesChartType.Column;

    DataView dataView = new DataView(ds.Tables[0]);

    Chart1.Series[0].Points.DataBindXY(dataView, "NAME", dataView, "TOTAL_GP");

please can some one tell me how i can plot the target on the same chart ?

UPDATE

also how do i get the chart to show the values for each column ?

  • 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-23T07:34:08+00:00Added an answer on May 23, 2026 at 7:34 am

    You just need to databind the second column to some source data

    Chart1.Series[1].Points.DataBindXY(dataView, "NAME", dataView, "TARGET");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: ListBox.DataSource = DataSet.Tables(table_name).Select(some_criteria = match) ListBox.DisplayMember = name The
If I have the following xml document: <xml> <data> <dataset name=X></dataset> </data> </xml> How
I have the following model class Plugin(models.Model): name = models.CharField(max_length=50) # more fields which
I have a dataset named: FileUploadDataSet.xsd and i have the following table adapter: The
I have the following Entity: @Entity @Table @NamedQuery(name = Constants.FINDALLFINDERNAME, query = Constants.FINDALLQUERY) public
I have the following code to convert my JSON dataset to html table. I
Hi I have a dataset in the following format: NodeID | NodeName | NodeAttribute1
I have created a dataset with the C# designer following this tutorial http://www.devx.com/dotnet/Article/28678/1954 ;
I have big dataset (but the following is small one for example). I can
I have the following data set that I am trying to plot with ggplot2,

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.