Solved

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

11 Experts available now in Live!

Get 1:1 Help Now