Solved

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

Posted on 2011-03-25
3
1,381 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:
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

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

Suggested Solutions

Title # Comments Views Activity
Create a Dropdown list with sub group 10 43
Data Analysis 7 59
Intermittent OleDbConnection Error 20 53
function that i need to run every 1 min in win form app 6 41
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

752 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