开发者

Set maximum width of labels in an ASP.NET Chart

开发者 https://www.devze.com 2023-01-06 22:43 出处:网络
I am using the .NET 4 Chart control to create a bar chart. I have labels listed along the left axis (I believe this is the y-axis, I may be wrong). I want to set the maximum width that this axis can b

I am using the .NET 4 Chart control to create a bar chart. I have labels listed along the left axis (I believe this is the y-axis, I may be wrong). I want to set the maximum width that this axis can be. Currently, I have some labels that are really large. Ideally, I would like to truncate them. However, I canno开发者_StackOverflow社区t figure out how to do either of these.

Can someone tell me how to set the maximum width used by the labels in a Chart? Is it possible to truncate the labels so that if they are larger than the alloted space a "..." appears?

Thank you


I think below code helps to truncate x-axis width. check out something similar to this. Chart1.Series("Series1")("PixelPointWidth") = "35"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号