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

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

问题描述

我需要设置的使用dotNetCharting条形图一系列静态的宽度。我的图有行,花键和列型三大系列集合。我只想设置一个静态的宽度为全系列列式。

我使用的尝试:

  myChart.DefaultAxis.StaticColumnWidth = 10;
 

但.DefaultAxis财产是无效的智能感知整个图表的列系列集合。做系列必须用数据来补充之前先设置吗?

另外,我已经试过了一系列的对象添加属性,没有运气。

任何想法?

解决方案

 系列[PixelPointWidth] =你的价值的宽度;
 

  • 在图表系列集合的一部分:一个隐藏属性

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.

I've tried using:

myChart.DefaultAxis.StaticColumnWidth = 10;

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.

Any ideas?

解决方案

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

  • part of chart series collection: a hidden property

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

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