简体   繁体   English

使用 WPF Toolkit 的 WPF 堆叠条形图

[英]WPF Stacked bar chart using WPF Toolkit

I am fairly new to both C# and WPF however i did come across the WPF toolkit which allows you to create chart fairly easily.我对 C# 和 WPF 都很陌生,但是我确实遇到了 WPF 工具包,它允许您相当轻松地创建图表。

My goal is to create a stacked barchart however i am unable to find it in the kit the last question about this topic was asked in mid 2012 and i was wondering if anyone knows of any solution to creation of stacked bar charts using WPF?我的目标是创建一个堆叠条形图,但是我无法在套件中找到它关于这个主题的最后一个问题是在 2012 年年中提出的,我想知道是否有人知道使用 WPF 创建堆叠条形图的任何解决方案?

Seems to be that the latest published version of the WPF Toolkit is 3.5 or 3.5.5, depending on where you get it from.似乎 WPF Toolkit 的最新发布版本是 3.5 或 3.5.5,具体取决于您从何处获取它。

The stacked charts are only available in version 4 of the toolkit, which is available for Silverlight, but not officially for WPF.堆叠图表仅在工具包的第 4 版中可用,该版本适用于 Silverlight,但不适用于 WPF。

If you'll head to this post (link seems broken due to MS archiving, i believe this was the original post ), you can download the examples he uses ( direct link ).如果您将前往这篇文章(由于 MS 存档,链接似乎已损坏,我相信这是原始文章),您可以下载他使用的示例( 直接链接)。

Now, here's the beauty: browse to the "Toolkit -> WPF4" folder, and take the dll you'll find there.现在,美妙之处在于:浏览到“Toolkit -> WPF4”文件夹,然后获取您将在那里找到的 dll。 This is the version 4 toolkit for WPF , which you can then reference in your project, and have access to the stacked barcharts.这是 WPF 的第 4 版工具包,然后您可以在您的项目中引用它,并可以访问堆叠条形图。

Side note: This toolkit is seriously lacking in documentation, and I'm not sure if it'll be updated in the future ... which is a shame.旁注:这个工具包严重缺乏文档,我不确定它是否会在未来更新......这是一种耻辱。


Update: 7 Years later, it would seem you can try this one out: Extended WPF Toolkit .更新: 7 年后,您似乎可以试试这个: Extended WPF Toolkit I haven't tried it, but it might be useful to whomever walks this path in the future.我没有尝试过,但它可能对未来走这条路的人有用。

It's too late but anyway I put it here for fellows like me:太晚了,但无论如何我把它放在这里给像我这样的人:

The WPF Toolkit hasn't released a new version since the April 2010 Silverlight Toolkit was released with stacked series support, so what's in the current download is not the latest stuff.自 2010 年 4 月 Silverlight Toolkit 发布支持堆栈系列以来,WPF Toolkit 尚未发布新版本,因此当前下载中的内容不是最新的。 However, you can get the latest version of the Data Visualization assembly (binaries and code) for all supported platforms as part of my Development Release : download但是,作为我的开发版本的一部分,您可以获得适用于所有支持平台的最新版本的数据可视化程序集(二进制文件和代码): 下载

From here: http://dlaa.me/blog/post/9997400#comment-1378418769从这里: http : //dlaa.me/blog/post/9997400#comment-1378418769

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM