Test Environment: Win7 + Chrome
version of UltraWebChart : 12.2.20122.1007(latest version)
we use the UltraChart to display the detail work time history of one pupil , and the data should be long or short .(we split one month to five weeks every month was one row and every week is one cloumn ) we want to set the width of the cloumns and rows based on the data . if we can use one prop or something else to set that, thanks.
I had add the screenshot . you can check the attach . you will see we have an scroll bar for the Ultrachart , and for this situation we only want two month data to be visible (if we move the scroll bar we will see all the data), so we want the two month data fill out the visible Ultra Chart . if we can set the data width, i think this problem will be sloved
Thanks in advance
Hello ZimingLi ,
Could you provide me with some screenshot of the design that you are trying to achieve so I can be sure that we are looking over the same functionality.
Thanks in advance.
Please give me an feed back , thanks.
Hello ZimingLi,
There is no property available for such modification because the width of the chart primitives is determined by the amount of data points in the Data Source (http://ko.infragistics.com/community/forums/p/41921/235170.aspx#235170).
What you can do is to loop through chart primitives and for every Box primitive add the needed width.
This approach is shown here - http://ko.infragistics.com/community/forums/p/10017/38500.aspx
hi Alex:
i had tried the solution you provided, i uset this delegate, and i only can get the (e.Primitive as Box) at the first time , it told me the width and hight of this chart area, and we have too many additional information for every row and cloumn , if we only change the width of every cloumn , all the other information still in their origion position , i don't think it's an good solution for this issue , what do you think? Thanks in advance.
Yes, currently this is a limitation of the control while used in such scenarios.
The main solution in this case can be to change the direction of X-axis labels to 90 degrees so they will appear bellow actual chart bars - http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=Chart_Rotate_Series_Labels.html
You can also change the tick mark position of specific Axis in order to display:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=Chart_Axes.html (“Tickmark” section)
http://ko.infragistics.com/products/aspnet/sample/chart/axis-tickmarks
Let me know if this is better solution in your scenario.