using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraCharts;
namespace StatsReports.Forms
{
public partial class FormCompositeQueryPieChart : Form
{
public DataTable dtReportSource = null;
public string groupName = "";//进行分组的字段名
public string groupSum = "";//进行汇总的字段名
public string groupType = "0";//图表显示类型,默认显示0表示显示全部的三部,1表示柱状图,2表示饼图,3表示折线图
private Series S1 = new Series("柱状图", ViewType.Bar);
private Series S2 = new Series("饼图", ViewType.Pie3D);
private Series S3=new Series("折线图",ViewType.Line);
private string reportTitle = "";
public FormCompositeQueryPieChart()
{
InitializeComponent();
}
public FormCompositeQueryPieChart(DataTable dt,string groupname,string groupsum,string grouptype,string title)
{
dtReportSource = dt;
groupName = groupname;
groupSum = groupsum;
groupType = grouptype;
reportTitle = title;
InitializeComponent();