Does anyone happen to know if there is a way to set the thickness of the bars of a gantt chart?If I hard-code the height of the chart to a size large enough, the bars widen, making the labels readable, but this results in me having to frequestly re-hard-code the height as the total number of items increases and decreases, to maintain a consistant appearance. What I would expect to be able to do is set height to "100%", that way the chart would dynamiclly resize, as items are removed/added to the underlying data. This, however, results in very thin bars, yeilding unreadable text. Any thoughts, ideas, or suggestions would be appreciated.The first pic is with height set to 100%.The second pic is with height hard-coded, which I would have to maintain.
Hello Gary,
I checked your question with our development team, and I found out that the height in percents is not supported for the charts in asp.net because, in order the image to be generated, it is necessary the height to be a defined number. So it seems that it is necessary to hardcode the height, in order to adjust the proper thickness of the bars.
Regards,
Lyuba Petrova
Developer Support Engineer
Infragistics
www.infragistics.com/support
Mr. Petrova,
For data that is static, setting a hard-coded height should work ok, but when displaying data from a dynamic data source, the inability of the control to dynamicly adjust to varying numbers of 'items' leaves a web developer having to either:a) hard code a large height, risking that viewers might see extremely thick bars if there are few items.b) hard code a small height, risking that viewers might see extremely thin bars if there are many items.c) check the data every morning and modify the control, in the production environment, every morning, so that the height is appropriate for the number of items being brought back.
I do hope your development would agree. Could we get this submitted as an enhancement request?
Thanks,Gary
gstadter said:a) hard code a large height, risking that viewers might see extremely thick bars if there are few items.b) hard code a small height, risking that viewers might see extremely thin bars if there are many items.c) check the data every morning and modify the control, in the production environment, every morning,
Perhaps you can dynamically set the height of the chart control in your asp page depending on the number of items you have i.e. calculate the the total height of the control for a desired row height based on total number of items and the space the axix labels, header margins etc need. I do this, it's a hassle but kinda works.
I would actually like to dynamically set the row height of an individual row (because I would like some rows to have line breaks in the y-axis label), unfortunately this doesn't seem to be possible.
This is exactly the work-around that I developed and put in place.Disappointingly, this is not the only IG control that seems to be weak, when it comes to connection with data that is dynamic, rather than static.