Solved

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

Posted on 2011-03-25
3
1,296 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:
agarwalrahul earned 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now