silverlight chart设置折线图颜色
2012-03-14 10:18
351 查看
Style dataPointStyle = new System.Windows.Style();
dataPointStyle.TargetType = typeof(System.Windows.Controls.Control);
Style LegendStyle = new System.Windows.Style();
LegendStyle.TargetType = typeof(System.Windows.Controls.Control);
Setter setterDataRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
Setter setterLegendRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
dataPointStyle.Setters.Add(setterDataRed);
LegendStyle.Setters.Add(setterLegendRed);
lineSeries11.DataPointStyle = dataPointStyle;
lineSeries11.LegendItemStyle = LegendStyle;
dataPointStyle.TargetType = typeof(System.Windows.Controls.Control);
Style LegendStyle = new System.Windows.Style();
LegendStyle.TargetType = typeof(System.Windows.Controls.Control);
Setter setterDataRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
Setter setterLegendRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
dataPointStyle.Setters.Add(setterDataRed);
LegendStyle.Setters.Add(setterLegendRed);
lineSeries11.DataPointStyle = dataPointStyle;
lineSeries11.LegendItemStyle = LegendStyle;
相关文章推荐
- HighChart如何自行设置x轴的名字和加载多条折线
- MPAndroidChart 教程:设置数据,设置颜色(四)
- Silverlight 设置颜色
- MpAndroidChart如何根据Y轴值设置不同的颜色
- Acharts设置折线图的折线颜色和粗细
- ECharts 设置折线颜色和小圆点颜色
- echarts-设置折线图中折线线条颜色和折线点颜色
- Silverlight Visifire控件 后台设置颜色
- Extjs4 chart颜色设置
- extjs ColumnChart设置不同的颜色实现代码
- echarts设置折线图中折线线条颜色和折线点颜色
- echarts设置折线拐点中心的颜色
- echarts-设置折线图中折线线条颜色和折线点颜色
- echarts设置折线图中折线线条颜色和折线点颜色
- extjs ColumnChart设置不同的颜色实现代码
- extjs ColumnChart 设置不同的颜色
- Silverlight Chart(一) ----chart基本设置
- MPAndroidChart 教程:设置数据,设置颜色(四)
- silverlight toolkit chart自定义颜色
- DevExpress ChartControl Pie 颜色设置