如何更改wpftoolkit图表的bar char默认颜色 [英] How to change the bar char default color of wpftoolkit chart

查看:154
本文介绍了如何更改wpftoolkit图表的bar char默认颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的XAML代码显示带有一个默认颜色的条形图。并且只显示一个系列1



:(



i我的网址是: Windows 8图表控件在WPF示例中的C#,VB.NET,XAML for Visual Studio 2012 [ ^ ] c9727c28> Windows 8用于Visual Studio 2012的C#,VB.NET,XAML中的WPF示例中的图表控件[ ^ ])



i想要更改条形图颜色。比如第一个条形图黄色和第二个条形图颜色绿色。

并且还想将系列1更改为IMPORT AND SCAN







提前感谢。



我尝试过:



my XAML code display the Bar Chart with One Default color. and displays only one series1

:(

i am referred this site : Windows 8 Chart Control in WPF sample in C#, VB.NET, XAML for Visual Studio 2012[^] c9727c28">Windows 8 Chart Control in WPF sample in C#, VB.NET, XAML for Visual Studio 2012[^])

i want to change the Bar chart color.like first Bar Chart yellow and second Bar Chart color Green.
and also want to change the series1 to IMPORT And SCAN



thanks in advance.

What I have tried:

<chartingToolkit:Chart Height="316" HorizontalAlignment="Right" Margin="0,38,405,0" Name="columnChart" Title="Column Chart" VerticalAlignment="Top" Width="330" Grid.Column="1">
                   <chartingToolkit:ColumnSeries DependentValuePath="Value"  IndependentValuePath="Key" ItemsSource="{Binding}" />
                   
                </chartingToolkit:Chart>

推荐答案

几天前在这里回答了同样的问题。 ..阅读我的评论:如何更改WPF柱形图颜色(如何为列提供不同的颜色) [ ^ ]
Answered the same question here a couple of days ago... Have a read of my comments: How to change WPF column chart color (how to give different color for column)[^]


这篇关于如何更改wpftoolkit图表的bar char默认颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆