设置列上的宽度系列:使用dotNetCharting [英] Setting Width on a Column Series: Using dotNetCharting

查看:118
本文介绍了设置列上的宽度系列:使用dotNetCharting的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用dotNetCharting设置条形图系列的静态宽度。我的图有三个系列的线,样条和列类型的集合。我想为所有系列的列类型设置一个静态宽度。

I need to set a static width of a bar chart series using dotNetCharting. My Graph has three series collections of line, spline, and column type. I would just like to set a static width for all series of column type.

我尝试使用:

myChart.DefaultAxis.StaticColumnWidth = 10;

但是.DefaultAxis属性在整个图表的intellisense中无效强>柱系列系列。在设置此系列之前,必须先添加数据吗?

But the .DefaultAxis property isn't valid in intellisense for the whole chart nor the Column series collection. Do the series have to be added with data first before setting this?

此外,我已尝试在系列对象中添加属性,没有运气。

Also, I've tried adding properties in the series object, no luck.

任何想法?

推荐答案

series["PixelPointWidth"] = "your value for width";




  • 图表系列集合的一部分: strong>

  • 这篇关于设置列上的宽度系列:使用dotNetCharting的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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