Hi Manoj,
Have you tried solution mentioned in https://ko.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/5914/how-to-fix-width-in-chart/25885#25885
Thanks,
Sameer Borikar
Hi Sameer,
Yes, I have tried this code that is working only for Column chart. In my Bar chart that is not working. that is setting only column width. In my chart bars are horizontal as shown in chart snap. So please suggest for that.
Hi,
For horizontal fix width Bars we can try following code. But one draw back of this code is it creates blank space between bars. So please suggest how can we remove that blank space.
{
Infragistics.UltraChart.Core.Primitives.Box box = e.Primitive as Infragistics.UltraChart.Core.Primitives.Box;
}
box.rect.Height = columnWidth;
box.rect.X += dWidth / 2;
if you increase the Y axis margins (see the properties under Axis.Y.Margins), the bars will get smaller without creating additional space between them.
if you're trying to change the zoom level to something other than .5 (or 200%), unfortunately that is not possible in WebChart. but you can submit a feature request here: https://ko.infragistics.com/community/ideas
can you change the X to Y like this,
box.rect.Y += dWidth / 2;
i also had the similar issue and i just changed the Axis it works fine