如何自定义Pie系列WPF图表工具包? [英] How to customize Pie series of WPF charting toolkit ?

查看:60
本文介绍了如何自定义Pie系列WPF图表工具包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在WPF饼图中为不同的饼图分配不同的颜色。你能帮我做一下吗?如何定制其风格和如何动态地为饼图切片分配颜色?请帮忙。

I want to assign different colors to different pie slices in WPF pie chart . Can you please help me to do this ? How to customize its style & how to assign colors to pie slices dynamically?Please help.

推荐答案



嗨    unknown0308,



使用表达式混合来查找饼图的样式,或者将其谷歌用作饼图的默认样式,然后根据需要的颜色进行编辑。



在ChartStyle1样式中,您可以找到使用不同ResourceDictionaryCollection设置的Palette属性。 
$


以下链接供您参考。



WPF图表样式说明
$


如何将样式赋予WPF工具包图表
$


更改默认颜色of WPFToolkit图表控制
$


$
注意:此回复包含参考第三方万维网站点。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,微软提醒您在从互联网上检索任何软件之前确保您完全了解风险。 



最好的问候,



Yong Lu

Hi    unknown0308,

Use expression blend to look for a style for piechart, or google it for default style for piechart, edit it for required colors.

In the ChartStyle1 style you can find Palette property is set with different ResourceDictionaryCollection. 

The following links for your reference.

WPF Chart Styling Explained

How to give Style to WPF Toolkit Chart

Changing Default Colors of WPFToolkit Chart Control


Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. 

Best Regards,

Yong Lu


这篇关于如何自定义Pie系列WPF图表工具包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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