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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:47:27+00:00 2026-06-16T20:47:27+00:00

I have some sales data in mysql and after some query the result would

  • 0

I have some sales data in mysql and after some query the result would be something like this:

year  |sales   |
2008  |100000  |
2009  |120040  |
2010  |239000  |
2011  |300900  |
2012  |200900  |

and this data will be shown on chart, now I want to add one value from some data forecasting for next year, and display it on chart

I’ve tried this code:

    myChart.Series[0].Points[0].XValue = (year + 1);
    myChart.Series[0].Points[0].YValues = dataForecasting;

but nothing happen, how can I add one value on chart? I want a continuous line graph, so from 2008 until 2013 there was only one series

  • 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-16T20:47:28+00:00Added an answer on June 16, 2026 at 8:47 pm
        chart1.Series.Clear();
    
        List<string> years = new List<string> { "1994", "1995", "1996", "1997" };
        List<double> yearSales = new List<double> { 10000.23, 98000, 95876, 78097 };
    
    
        Series yearSeries = chart1.Series.Add("sales");
        yearSeries.Points.DataBindXY(years, yearSales);
        yearSeries.ChartType = SeriesChartType.Line;
    
        // do stuff....
    
        // add one more value
    
        years.Add("1998");
        yearSales.Add(12345.67);
        yearSeries.Points.DataBindXY(years, yearSales);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a dataset which im using to calculate some sales figures, this data
I have these two table with some data sample in them. I would like
So I'm trying to import some sales data into my MySQL database. The data
I am receiving a weird result in this MySQL query. I am attempting to
Say I have purchase and sales data for some SKUs: po_id | sku |
I currently have a app on the market it saves some data with onRetainNonConfigurationInstance
I have some javascript code that saves a cookie. However, if after saving the
I have some data loaded as a np.ndarray and need to convert it to
I have some arbitrary pixel data that I want to save as a PNG.
I have some text lines like that : vt_wildshade2^508^508 vt_ailleurs2^1188^1188 ... vt_high2^13652^13652 Is it

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.