Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.NET Chart - Trying to remove empty space right of chart

Posted on 2011-03-25
3
Medium Priority
?
1,494 Views
Last Modified: 2012-05-11
Take a look at the attached image.  The title I've created isn't permanent, I simply created it to illustrate the fact that between 15% to 20% of the chart width is empty space to the right of the chart area.  To some extent, I can compensate for this empty space by simply making the parent <asp:Chart> control wider, but this just makes my chart look stretched.  Is it possible to simply remove the empty space to the right of the chart?
Title-Width.png
0
Comment
Question by:jdana
3 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 35219920
I don't think you can do that :/
0
 
LVL 13

Accepted Solution

by:
Rahul Agarwal earned 1000 total points
ID: 35220596
Try This:

You may need to set chartarea position

<asp:ChartArea BorderDashStyle="Solid">              
        <Position Height="100" Width="100" X="0" Y="0" />
</asp:ChartArea>
Where that height and width and relative percentages which means chartArea occupies the entire space of the Chart.

and X and Y are co-ordinates

http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.elementposition.aspx
0
 

Author Closing Comment

by:jdana
ID: 35226434
agarwalrahul,

I used your suggestion, experimented, and got it.  

Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question