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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:34:35+00:00 2026-06-19T00:34:35+00:00

I am trying to add chart as control in flowlayoutpanel but after executing all

  • 0

I am trying to add chart as control in flowlayoutpanel but after executing all charts appears blank how to solve this ? here is my code

flowLayoutPanel1.Controls.Clear();
System.Windows.Forms.DataVisualization.Charting.Series Series = new Series();
Chart[] chartMensal = new Chart[12];
for (int i = 1; i <= 12; i++)
{
  string[] seriesArray = { "Total Contrato", "Total Vendas", "Total Despeses" };
  Double[] pointsArray = { 1000, 1500, 500 };

  chartMensal[i] = new Chart();
  chartMensal[i].Width = this.Width - 100;
  chartMensal[i].Height = 200;

  chartMensal[i].Titles.Add(CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(i).ToUpper());
  chartMensal[i].Palette = ChartColorPalette.Fire;
  chartMensal[i].Series.Clear();
  Series.Points.Clear();

  for (int t = 0; t < seriesArray.Length; t++)
  {
    Series.Points.Add(pointsArray[t]);
    Series = chartMensal[i].Series.Add(seriesArray[t]);
  }

  chartMensal[i].Visible = true;
  flowLayoutPanel1.Controls.Add(chartMensal[i]);
}
  • 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-19T00:34:37+00:00Added an answer on June 19, 2026 at 12:34 am

    You are missing the chart area itself.
    Add before the last line:

                    ChartArea ca = new ChartArea();
                chartMensal[i].ChartAreas.Add(ca);
    

    Have a look how the designer creates a chart. You sure find a solution in this forum, too.

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

Sidebar

Related Questions

Trying to add a blank sample app for a rails tutorial to GitHub, but
I am trying to add a pie chart to my winforms application - but
I am trying to bind some values to an ASP.NET Chart control. This is
I'm trying to add more than one bar chart in one page, but when
Im new to asp.net mvc. I'm trying add new model class but it got
I'm trying to add an HTML link to a Google Chart Table column. I
Using TChart in Android. I'm trying to add a shadow to the chart header,
I'm trying to code something like this - I'd love to add my coding
I'm trying to generate sparklines for a dashboard using the Microsoft chart control on
When using the Chart control, invoking the Add method to add new data point,

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.