Let me think about it and get back to you.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on
www.lulu.com/owc $19.99
Thanks for the replay.
I want that when I click a category or series, the actual chart to be
located on the virtual plot area of the chart and another chart to show
onto
tha visible plot area of the chart. You know this is done trough the
ChScrollview object of the chart, using the Setposition and SetExtent
Methods, in theory, but i have'nt achieved it. What I did was: I used a
Multipage control and per each tab/page a created a Chartspace with one
chart
each one, so when i click on any series of the main chartspace/chart
I/The
user is redirected to an specif Chartspace/chart, well I wanted to
perform
this action in just one Chartspace, utilizing the methods before. Also
If
any
special effect i wanted to apply to my charts like Zoom in or Out a
specific
portion of the chart, I would have to utilize this methods. Following,
there
is an extract of the help relating this Topic, maybe I don't understand
it
well.
"You use methods and properties of the ChScrollView object to retrieve
information about and control the view of a chart. The portion of the
Chart
component that displays the chart itself is the visible plot area and
it
can
display the entire chart or a portion of the chart. When only a portion
of
the chart is displayed in the visible plot area, the effect is as if
you
have
zoomed in on that portion of the chart and the remainder of the chart
is
contained within a virtual plot area that extends beyond the boundary
of
the
visible plot area.
The VerticalPosition and HorizontalPosition properties shift the scroll
view
vertically and horizontally. The initial values of these properties are
treated as the location (0, 0), and are relative to the values of the
Left
and Top properties of the actual plot area (the ChPlotArea object). The
incremental shift in the position of the scroll view is relative to the
ratio
of the VerticalExtent and VerticalExtentMax properties, and to the
ratio
of
the HorizontalExtent and HorizontalExtentMax properties.
The ratio of the VerticalExtent and VerticalExtentMax properties
describes
the position of the scroll view area’s vertical dimension relative to
the
actual plot area’s vertical dimension. The ratio of the
HorizontalExtent
and
HorizontalExtentMax properties value describes the position of the
scroll
view area’s horizontal dimension relative to the actual plot area’s
horizontal dimension.
You can zoom the display of the chart in or out by setting the
VerticalExtentMax and HorizontalExtentMax properties to values greater
or
less than the VerticalExtent and HorizontalExtent properties,
respectively.
For example, to zoom the chart by 200%, set the VerticalExtentMax and
HorizontalExtentMax properties to twice the value of the VerticalExtent
and
HorizontalExtent properties.
Whether the chart is zoomed or not, you can access the scroll view’s
dimensions by using the Top, Left, Right, and Bottom properties of the
ChScrollView object. And, you can access the actual plot area’s
dimensions
by
using the Top, Left, Right, and Bottom properties of the ChPlotArea
object.
If the value of either the HorizontalExtent or the HorizontalExtentMax
property is less than or equal to zero (0), the scroll view is disabled
and a
chart cannot be scrolled horizontally. Similarly, a chart cannot be
scrolled
vertically if the value of either the VerticalExtentMax or the
VerticalExtent
property is less than or equal to zero.
You can also change the scroll position and scroll extent using the
SetPosition and SetExtent methods of the Chart component. Using the
SetPosition and SetExtent methods is the same as setting the individual
HorizontalExtent, VerticalExtent, HorizontalPosition, and
VerticalPosition
properties, but these methods allow you to set multiple properties at
the
same time to reduce the number of times the chart is repainted. "
Sorry for the size. Please if you could help, woul be very appreciated.
Thanks again
Edgar Rey
:
Sorry for the late reply, Vista does not support Outlook Express
grrrr.
Charts are plotted to a chartspace container, it's global. You can't
change
it per chart. For instance, if you make the plot area smaller for a
chart
that views normally, the chart will shrink and become unreadable. You
can
definitely increase the size but I doubt that is what you are after.
What
exactly are you trying to do with the background of the chart?
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on
www.lulu.com/owc $19.99
Mr. Alvin, Nice to meet you trough the web.
I'm requesting your excellence on this subject:
I'm currently working on a chartspace and need to set four charts
for
this
Chartsapace, I need that when the user click on any category, the
main
chart
to resize, setting it on the plot area virtual area, and the
submitted
subcategory chart to show/appear, and so on with the rest of charts.
Well,
i
have the routine done as far as clicks, for accesing different
charts,
but
what is kicking me out is that I can not have any specific chart
plot
area
resize done. I have read all help concerning SetExtent, SetPosition
Methods
and VerticalPosition, VerticalExtent, VerticalExtentMax,
HorizontalPo..
etc,
Properties and i've gone trough the object with the local windows,
The
values
for those properties change but chat(x) plot area remains the same,
no
change
for zooming in or out.
Would you please try it out and give some hints on that