?
Solved

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

Posted on 2011-03-25
3
Medium Priority
?
1,470 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

718 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