C# .NET - chart

Asked By Deepika S
11-Feb-12 06:05 AM
hi


i need chart form...wheather there is chance for chart in c# .net
  kalpana aparnathi replied to Deepika S
11-Feb-12 06:20 AM
Try this code:

using System;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
 
namespace WindowsFormsApplication1
{
  public partial class Form1 : Form
  {
  public Form1()
  {
    InitializeComponent();
  }
 
  private void Form1_Load(object sender, EventArgs e)
  {
    // Data arrays.
    string[] seriesArray = { "Cats", "Dogs" };
    int[] pointsArray = { 1, 2 };
 
    // Set palette.
    this.chart1.Palette = ChartColorPalette.SeaGreen;
 
    // Set title.
    this.chart1.Titles.Add("Pets");
 
    // Add series.
    for (int i = 0; i < seriesArray.Length; i++)
    {
    // Add series.
    Series series = this.chart1.Series.Add(seriesArray[i]);
 
    // Add point.
    series.Points.Add(pointsArray[i]);
    }
  }
  }
}
 

Read more:http://www.dotnetperls.com/chart

Thanks,
  R B replied to Deepika S
11-Feb-12 08:05 AM
Hello,

You need to use RDLC Report.

RDLC report suport Chart Control



Thanks
Create New Account
help
NET C# hi, Can some one please tell me how to make a Stacked Column Chart with the code? I've no dataset to bind, just plain values to display in a stacked column chart. I'm using normal .NET Chart controls provided by Visual Studio 2010 in .NET Framework 40. So please refrain from talking or any other paid charting like Dundee charts etc. . Thank you very much, Manish chart1.Series[0].Points.AddY(30); chart1.Series[1].Points.AddY(20); depends what you are trying to do though Stacked column charts compare the value each data point contributes to a total across categories. To create this chart try this code- protected void Page_Load(object sender, EventArgs e) { / / Populate series data ConnectionStringSettings settings; settings = ConfigurationManager.ConnectionStrings["ConnectionString1"]; SqlConnection conn = new SqlConnection(settings.ConnectionString); conn.Open
Changing Series Color Currently i am working to export a chart in power point. I have stuck in one point. How to change the color of a series in a chart? code is as follows Graph.Series series = (Graph.Series)objChart.SeriesCollection(2); when i write series.interior.color = color.blue it gives an error. How to solve this problem???????? / / Can you
how can i generate XY Scatter Chart in windows application hi frds i'm using Microsoft Office Chart 10.0 i had to generate XY Scatter Chart pls give one example how to generate it using c# Hi I'd use the ChartType of 'Point' - drop a Chart onto your form, open the Properties panel, choose the 'Series' property for the chart, and set the ChartType for the Series to "Point". I think that might do the trick for you. That's how I 939c-e65feb0ae358 / http: / / www.programmersheaven.com / mb / vba / 263264 / 263264 / how-to-create-xy-scatter-chart-in-vb / Hi, 1. Download MS chart dll from http: / / archive.msdn.microsoft.com / mschart
Excel Chart black and white (Clipboard Copy) .NET Framework Hi all We are creating a chart in an excel app that we then copy to clipboard using CopyPicture(Screen, xlBitmap, Screen) (interop). Everything works fine when we set the excelApp.Visible = true; The chart is created and copied into the clipboard. When we get it from the clipboard its colorfull und good. But when we set excelApp.Visible = false and then create the chart and copy it to the clipboard. When we then hit paste the chart is black and white. . .why is it changing the chart color to black and white when we set excelApp.Visible = false? We use Microsoft.Office VB.NET 2005 code: 1) I first created an excel file which contains a simple chart (colorful) 2) Using following code, I created an instance of Excel (hidden) and opened the file, then locate the chart and copy to clipboard, then paste into paint brush and it's fine: Dim app