I inserted a screen shot of a column chart using WinChart. It is very small but my question should still be clear. Notice how small the actual chart is as it uses only a small portion of the space I have given to the WinChart control. How do I make the chart itself use the entire area of space provided for it? Thanks!
Hello Elondon,
By default the ChartArea get whole available space in the UltraChart control. One possible approach to change the ChartArea is to use the property:
- ChartArea myChartArea = new ChartArea();
- myChartArea.Bounds = new Rectangle(20, 20, 350, 350);
Please take a look at the attached sample for more details. Please let me know if you have any questions
Regards
Have you been able to resolve your issue ? Did you have a time to take a look at my sample.
Please let me know if you have any further questions.
Hi -
My issue is not that I want the chart smaller, I want the chart bigger. You say by default, the chart takes up the entire space of the control - my problem is that it is not taking up the entire space of the control and I want it to. I create the control, go through the wizard, and without touching any other properties, the chart size is like 1/4th the size of the control and I'm not sure why.
Thanks.
Could you please tell me what is your component version and do you have any installed service release and which one. Also if you are able please send me small sample that reproduce your issue. I`ll be glad to research this issue for you.
Also could you please tell me what`s happen when you set new Rectangle. Are you able to change the behavior using this peroperty?
Please if you have any questions, do not hesitate to write me
I have attached a sample project. I simply dragged a chart on to a form and did not change anything else. Notice that the chart does not occupy the entire area of the control. I do see that the chart gets bigger as I drag out the control size - but my application uses small charts because there are a lot of them. The chart on the form of the sample project is approximately the size I am looking for in my real project - the only difference is, I would like the chart to occupy the entire control. The small size should not matter. In the attachment is the sample project and a screen shot of how the sample form looks on my workstation.
The new rectangle did not change anything.
WinChart version 10.1. I do not have any service releases that I am aware of unless one came with the 10.1 installer. Binary version 10.1.20101.1007.
Also - please ensure that any samples you send are in English. The string labels in the sample you sent me are not. :)
Thanks for your help.
Thanks for attached sample. I was able to see the mentioned behavior and it is expected, because the size of your Charts are too small. Maybe one possible approach to achieve desire behavior is to set the properties for example:- ultraChart1.Axis.X.Extent = 10;- ultraChart1.Axis.Y.Extent = 10;Please take a look at the modifications that I made in your sample and please let me know if you have any questions.RegardsGeorgi
Great - that is much better.
I am almost there - I have another question or two. If I should create a separate post for these let me know.
I have attached a screen shot of one of my charts. Notice that one of the bars describes a negative number. How do I make it so the X axis is always zero and a negative number will go below and a positive number will be above? Also - notice the numbers on the bars, how can I format that string?
Thanks for the feedback.
Could you please create a new forum thread for your next questions. Also please try to attach again your screenshots, because I didn`t find it here.
Thanks and Regards
Sorry, forgot the screenshot.