关键代码:
using DevExpress.Utils;
using DevExpress.XtraCharts;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace DevExpressUtilHelpV3
{
///
/// 基于.NET 3.5的Chart工具类;对应的DevExpress版本:12.1.7;
///
public static class ChartUtilsV3
{
///
/// 添加基本的Series
///
/// ChartControl
/// Series的名称
/// Series的类型
/// Series的绑定数据源
/// ArgumentDataMember绑定字段名称
/// ValueDataMembers的绑定字段数组
/// Series是否可见
/// Series
public static Series AddBaseSeries(this ChartControl chat, string seriesName, ViewType seriesType, object dataSource, string argumentDataMember, string[] valueDataMembers, bool visible)