有谁用过xeccd这个画图控件,我只能是在控件的用户界面哪里绑定数据,在代码里边怎么搞啊,有知道的告诉下谢谢了,我想要个圆饼状图的,
解决方案 »
- VS2005未能映射路径,在线急等!!
- 多文档WinForm DataGridView行验证问题
- 谁有比较好的权限例子 或者数据表结构
- 关于2.0不支持allowtransparent属性
- *.img是什么文件?用是用什么软件可以打开?
- 请教:想在datagrid上,鼠标点击一行,产生一种颜色dg_ItemDataBound()事件怎么写?
- 在页面中如果输出的类型是文件的话,可不可以不提示保存路径,直接写到服务器的某一位置呢
- 请问:如何在propertygrid中插入一个combobox控件???
- 怎么在二进位字符串和十六进位字符串间转换??
- 改变MDI窗口的Client区域的颜色?
- 怎么 把数据库 备份 成 mdf 格式 ?
- winform控件抢占UI主线程的问题
里看看
m_ChartControl.Background.FillEffect.SetPattern(HatchStyle.DottedGrid, Color.White, Color.FromArgb(230, 240, 255)); // add a header label
ChartLabel header = m_ChartControl.Labels.AddHeader("Exploded Pie Chart");
header.TextProps.Backplane.Visible = false;
header.TextProps.FillEffect.Color = Color.DarkBlue;
header.TextProps.Shadow.Type = ShadowType.Solid;
header.TextProps.HorzAlign = HorzAlign.Left;
header.TextProps.VertAlign = VertAlign.Top;
header.HorizontalMargin = 2;
header.VerticalMargin = 2; m_Chart = m_ChartControl.Charts[0];
m_Chart.View.SetPredefinedProjection(PredefinedProjection.OrthogonalElevated);
m_Chart.LightModel.SetPredefinedScheme(LightScheme.NorthernLights);
m_Chart.LightModel.GlobalAmbientLight = Color.FromArgb(100, 100, 100); m_Pie = (PieSeries)m_Chart.Series.Add(SeriesType.Pie);
m_Pie.PieEdgePercent = 30;
m_Pie.AddPie(12, 0, "Cars", new FillEffect(Color.FromArgb(56, 89, 150)), new LineProperties());
m_Pie.AddPie(42, 0, "Trains", new FillEffect(Color.DarkGreen), new LineProperties());
m_Pie.AddPie(56, 0, "Airplanes", new FillEffect(Color.DarkGoldenrod), new LineProperties());
m_Pie.AddPie(23, 0, "Buses", new FillEffect(Color.DarkRed), new LineProperties()); m_Pie.PieStyle = PieStyle.SmoothEdgePie;
m_Pie.Appearance.FillMode = AppearanceFillMode.DataPoints; m_Pie.Legend.Mode = SeriesLegendMode.DataPoints;
m_Pie.Legend.Format = "<label> <percent>";
m_ChartControl.Background.FillEffect.SetPattern(HatchStyle.DottedGrid, Color.White, Color.FromArgb(230, 240, 255)); //背景颜色、样式 // add a header label 添加一个标题标签
ChartLabel header = m_ChartControl.Labels.AddHeader("Exploded Pie Chart");
header.TextProps.Backplane.Visible = false; // 查字典 Back(背景) plane(面板) Visible(可见) false(否)
header.TextProps.FillEffect.Color = Color.DarkBlue; // 查字典(下面标出单词去查找,怕麻烦,装一个金山词霸,屏幕取词) Fill Effect Color DarkBlue
header.TextProps.Shadow.Type = ShadowType.Solid; // Shadow Type Solid(这里翻译成实心)
header.TextProps.HorzAlign = HorzAlign.Left; // horizontal Align
header.TextProps.VertAlign = VertAlign.Top; // vertical
header.HorizontalMargin = 2;
header.VerticalMargin = 2; m_Chart = m_ChartControl.Charts[0];
m_Chart.View.SetPredefinedProjection(PredefinedProjection.OrthogonalElevated); // Set Predefined Projection
m_Chart.LightModel.SetPredefinedScheme(LightScheme.NorthernLights); // 下面自己找出单词
m_Chart.LightModel.GlobalAmbientLight = Color.FromArgb(100, 100, 100); m_Pie = (PieSeries)m_Chart.Series.Add(SeriesType.Pie);
m_Pie.PieEdgePercent = 30;
m_Pie.AddPie(12, 0, "Cars", new FillEffect(Color.FromArgb(56, 89, 150)), new LineProperties());
m_Pie.AddPie(42, 0, "Trains", new FillEffect(Color.DarkGreen), new LineProperties());
m_Pie.AddPie(56, 0, "Airplanes", new FillEffect(Color.DarkGoldenrod), new LineProperties());
m_Pie.AddPie(23, 0, "Buses", new FillEffect(Color.DarkRed), new LineProperties()); m_Pie.PieStyle = PieStyle.SmoothEdgePie;
m_Pie.Appearance.FillMode = AppearanceFillMode.DataPoints; m_Pie.Legend.Mode = SeriesLegendMode.DataPoints;
m_Pie.Legend.Format = "<label> <percent>";