I have googled many times with different keywords, but could not find an e-book for drawing different charts.
我用不同的关键字搜索了很多次,但找不到用于绘制不同图表的电子书。
Ok my problem is I am drawing a column chart, I want the column chart to calculate the segment width based on the number of segments it has. Does anyone know how I could do this?
好吧我的问题是我正在绘制柱形图,我希望柱形图根据它具有的段数来计算线段宽度。有谁知道我怎么能这样做?
Thanks and Regards,
感谢致敬,
Mawy
1 个解决方案
#1
0
Try to use the WPF toolkit, reference System.Windows.Controls.DataVisualization.Toolkit.dll . You can find some samples here, it should be pretty simple, create your collection of KeyValuePair containing your data and then bind to the Key and the Value properties. More about the column charts here. If you use this you won't need extra work for the width or height of the columns.
尝试使用WPF工具包,引用System.Windows.Controls.DataVisualization.Toolkit.dll。你可以在这里找到一些示例,它应该非常简单,创建包含数据的KeyValuePair集合,然后绑定到Key和Value属性。更多关于柱形图的信息。如果使用此功能,则无需为列的宽度或高度进行额外的工作。
#1
0
Try to use the WPF toolkit, reference System.Windows.Controls.DataVisualization.Toolkit.dll . You can find some samples here, it should be pretty simple, create your collection of KeyValuePair containing your data and then bind to the Key and the Value properties. More about the column charts here. If you use this you won't need extra work for the width or height of the columns.
尝试使用WPF工具包,引用System.Windows.Controls.DataVisualization.Toolkit.dll。你可以在这里找到一些示例,它应该非常简单,创建包含数据的KeyValuePair集合,然后绑定到Key和Value属性。更多关于柱形图的信息。如果使用此功能,则无需为列的宽度或高度进行额外的工作。