How do I make the line in my line chart take use the entire chart area for plotting purposes? I have already set the Extent of the X and Y axes to be 0. I have no Title. But there is still whitespace.
I have attached a picture of 4 charts (with sample data). The whitespace I want to eliminate is that between the dark X and Y axes and the border of the chart control. How do I do this?
Thank you.
Hi Robert,
Your definitely welcome. The maximum amount of white space that can be removed from the chart’s surface is that achieved by setting both axis extents to the minimum value; using this approach, you will be effectively removing the maximum amount of white space that is supported by the LineChart.
If you have any further questions, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Wrong picture.
Forgot to add the picture.
Chris,
Thank you for this. Your have basically replicated what i put together, and you are correct that I am creating my graphs programmatically. We are both setting the Extent of X and Y axis to zero for every chart, and indeed when I put your form side-by-side with my form, it shows that your charts have the same amount of whitespace that my charts do. I have attached a picture to show this.
I would like to eliminate this whitespace - perhaps the way to do it is with the extended properties that you mention. How do I set those? I don't see any such settings in your current project. Thank you.
It appears that you may be creating multiple instances of the chart programmatically; it will be necessary to set the extent for each chart instance discretely.
I have created another sample to better replicate your scenario, implementing the FlowLayoutPanel control; please find this new sample attached, where the expected behavior is achieved, for reference on the necessary approach.
I have included the following screen shot for reference which illustrates the result of this approach.
Further, modifying the extend property for both axes will indeed remove the maximum supported amount of white space from the charts margins.
Please take a look at the new sample and if possible, please modify it to more closely match your current approach if necessary, so that this behavior may be produced.
If you have any further questions at all in the meantime that I may assist you with, please let me know.