Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Edge padding for chart area?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nkilzer

8 Posts

Posted - 26 Apr 2005 :  17:56:13  Show Profile  Reply with Quote
When using a Bar chart type that contains more data points than are shown on the screen (i.e. the chart shows a subset of the data from the middle of the set), the leftmost and rightmost bars are drawn (clipped) across the left and right edges of the charting area so that only half a bar is shown. This is visually disconcerting.

Is there any way to specify a padding value or make it so that the chart area shows only an integral number of bars on the screen at any one time?

quinncurtis

1164 Posts

Posted - 26 Apr 2005 :  18:20:11  Show Profile  Reply with Quote
You can add or subtract anything that you want from the scaled coordinate system. Something like this would probably work in your case:

pTransform1.AutoScale(Dataset1, ChartObj.AUTOAXES_FAR , ChartObj.AUTOAXES_FAR);
.
.
.
pTransform1.ScaleStartX -= (0.5 * barwidth);
pTransform1.ScaleStopX += (0.5 * barwidth);

where barwidth is whatever you set the barwidth to be.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07