.NET Framework Bookmark and Share   
 index > Chart Controls for .NET Framework > Can you anchor the background image for zooming
 

Can you anchor the background image for zooming

My background image is a refrence for the data I'm plotting.

When I go to zoom into the chart, it resets the image so taht it anchors off the current bottom left corner.

Is there anyway to pin the bottom left corner of the image to 0,0 on the chart so when you zoom in you also zoom in on the image?

Joel Barsotti

Instead of using background image, you can use the Chart.BackPaint event to render image with offset you need.

Alex.


http://blogs.msdn.com/alexgor
Alex Gorev
To late to ask for it in .net 4.0?
Joel Barsotti

We are feature locked for the Beta 2. It is also very unique scenario which you can address with custom painting. Have you tried using the PostPaint event? Make sure to check custom painting samples from here: http://code.msdn.microsoft.com/mschart

Alex.


http://blogs.msdn.com/alexgor
Alex Gorev

You can use google to search for other answers

Custom Search

More Threads

• How Can I get a series's color
• Simple Pie Chart Display
• Binding Chart to dgv
• chart animation
• Financial Formula
• ImageLocation - Networkshare
• How to post back hidden value
• Only background styling being applied from XML template
• How to fix margin and padding of chart when dinamic resize occurs
• error generated in using WinSamples with databinding to csv file