Set the maximum label width in the ASP.NET diagram.

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 could be wrong). I want to set the maximum width of this axis. I currently have some shortcuts that are really big. Ideally, I would like to truncate them. However, I cannot figure out how to do this.

Can someone tell me how to set the maximum width used by the labels in the diagram? Is it possible to crop labels so that if they are larger than the allocated space, the symbol "..." appears?

thank

+3
source share
1 answer

I think the code below helps crop the width of the x axis. check something like this. Chart1.Series ("Series1") ("PixelPointWidth") = "35"

0
source

Source: https://habr.com/ru/post/1754612/


All Articles