ChartDirector 7.0 (ASP/COM/VB Edition)

ChartViewer


The ChartViewer control is an ActiveX control for viewing ChartDirector charts. It is a subclass of the VB6 UserControl. Apart from displaying the charts, its main functions are to support advanced user interactions with the charts, including:

ChartViewer Members

The followings are members specific to the ChartViewer control. Members inherited from the VB6 UserControl are omitted. Please refer to Microsoft documentation for members of the VB6 UserControl.

Properties
NameDescription
ChartGets or sets a BaseChart object for display with the ChartViewer.
PictureGets or sets the chart image to view. The chart image is typically created using BaseChart.makePicture.
AutoSizeGets or sets the sizing method of the ChartViewer control.
ImageMapGets or sets the image map that defines the hot spots on the chart image.
ToolTipTextGets or sets the tool tip to display when the mouse is not over a hot spot.
ViewPortLeftGets or sets the position of the left side of the viewport.
ViewPortTopGets or sets the position of the top side of the viewport.
ViewPortWidthGets or sets the width of the viewport.
ViewPortHeightGets or sets the height of the viewport.
MouseUsageGets or sets the mouse usage mode.
ZoomDirectionGets or sets the zoom direction for mouse zoom in/out actions.
ScrollDirectionGets or sets the scroll direction for mouse scroll actions.
ZoomInRatioGets or sets the magnification ratio for each zoom in click of the mouse.
ZoomOutRatioGets or sets the magnification ratio for each zoom out click of the mouse.
ZoomInWidthLimitGets or sets the viewport width at maximum zoom in.
ZoomOutWidthLimitGets or sets the viewport width at maximum zoom out.
ZoomInHeightLimitGets or sets the viewport height at maximum zoom in.
ZoomOutHeightLimitGets or sets the viewport height at maximum zoom out.
MinimumDragGets or sets the minimum mouse drag distance before it is considered as an intentional drag.
SelectionBorderWidthGets or sets the border width of the zoom selection box.
SelectionBorderColorGets or sets the border color of the zoom selection box as an OLE_COLOR.
MousePointerGets or sets the mouse pointer to be used when the mouse is not over a normal hot spot.
MouseIconGets or sets a custom mouse icon to be used when the mouse is not over a normal hot spot.
HotSpotMousePointerGets or sets the mouse pointer to be used when the mouse is over a normal hot spot.
HotSpotMouseIconGets or sets a custom mouse icon to be used when the mouse is over a normal hot spot.
ZoomInMousePointerGets or sets the mouse cursor to be used when the mouse is used for zoom in.
ZoomInMouseIconGets or sets a custom mouse icon to be used when the mouse is used for zoom in.
ZoomOutMousePointerGets or sets the mouse cursor to be used when the mouse is used for zoom out.
ZoomOutMouseIconGets or sets a custom mouse icon to be used when the mouse is used for zoom out.
NoZoomMousePointerGets or sets the mouse cursor to be used when the mouse is used for zoom in/out, but the zoom in/out limits has been reached.
NoZoomMouseIconGets or sets a custom mouse icon to be used when the mouse is used for zoom in/out, but the zoom in/out limits has been reached.
ScrollMousePointerGets or sets the mouse cursor to be used when the mouse is used for scrolling.
ScrollMouseIconGets or sets a custom mouse icon to be used when the mouse is used for scrolling.
UpdateIntervalGets or sets the minimum gap interval between two ViewPortChanged events in milliseconds.
IsInViewPortChangedEventChecks if the current code is executing in a ViewPortChanged event.
Note: Properties inherited from UserControl are omitted.

Methods
NameDescription
validateViewPortEnsures the viewport left, top, width and height are within valid ranges and adjusts them if necessary.
updateViewPortTriggers the ViewPortChanged event.
Note: Methods inherited from UserControl are omitted.

Events
NameDescription
ClickHotSpotThis event occurs when the mouse clicks on a hot spot on the chart image.
DblClickHotSpotThis event occurs when the mouse double clicks on a hot spot on the chart image.
MouseMoveHotSpotThis event occurs when the mouse cursor is moved over a hot spot on the chart image.
MouseDownHotSpotThis event occurs when the mouse cursor is over a hot spot on the chart image and the mouse button is pressed.
MouseUpHotSpotThis event occurs when the mouse cursor is over a hot spot on the chart image and the mouse button is released.
ViewPortChangedThis event occurs when the viewport is changed using mouse actions (see ChartViewer.MouseUsage), or when ChartViewer.updateViewPort is called.
Note: Events inherited from UserControl are omitted.