Hi ,
Data for my chart are only few rows, because of that space between the bar too much( as shown in attached picuture), how to reduce it.
thanks
Anbu.
Hello Anbu,
There are many approaches to modify the space between your ColumnBars, depending of your scenario. My suggestion is to try both properties:
ultraChart1.ColumnChart.ColumnSpacing;
ultraChart1.ColumnChart.SeriesSpacing;
The mentioned issue could be cause if you are using ultraChart1.Axis.X.ScrollScale.Scale property of any of your axis. So if you using this property, you could change the scale factor.
I`m not familiar with your scenario, but if you are using FillSceneGraphe event, you could modify the space between columnbars.
If you give me small sample. I`ll be glad to research it for you.
Let me know if you have any questions.
Regards
Have you been able to resolve your issue ? If you still have any concerns or questions I will be glad to help. If you need any additional assistance don’t hesitate to ask.
Hi Georgi,
Thanks for your solution, but still unable to fix the space between the bars.
Thanks
anbu.
Could you please take a look at the attached video file for a few possible options to modify the space between your columns. Also could you please take a look at the atatched sample and please feel free to modify this sample to reproduce your issue (or if you want you could send us your sample) and revert it back to us. I`ll be glad to take a look at your issue and solve it.
Please let me know if you have any questions.
This is the sample
Once again thanks for your help.
Now I understand where is real problem lies , my chart is dock to form with fill options. since my form shows in full screen. chart is expanded to whole screen because of that chart shows more space between the bars, how to fix it.
If you modify the dataset in your sample with below one, you can my problem.
dt = new DataTable(); dt.Columns.Add("A", typeof(decimal)); dt.Columns.Add("B", typeof(decimal));
dt.Rows.Add(10, 20); dt.Rows.Add(15, 10);
Hello anbusamy,
anbusamy said:Now I understand where is real problem lies , my chart is dock to form with fill options. since my form shows in full screen. chart is expanded to whole screen because of that chart shows more space between the bars, how to fix it.
The mentioned behavior is expected and by design. If use set property SeriesSpacing =0, then the result will be like in attached screenshot. I`m not sure what is your expectation when you change the size of the chart. Could you please give us more details