ChartDirector 7.0 (ASP/COM/VB Edition)

WebChartViewer


WebChartViewer is the server side counterpart to the browser side Javascript JsChartViewer. It generates the necessary HTML tags to allow the JsChartViewer to support programming track cursors and using mouse clicks and drags to control zooming and scrolling. Its accepts AJAX chart update requests from JsChartViewer and responses to it. Many of the JsChartViewer attributes can be set or get on the server side through WebChartViewer.

Properties
NameDescription
RequestGets the ASP Request object used to create the WebChartViewer.
IdGets the id of the WebChartViewer object.
ImageUrlGets or sets the URL used by the <IMG> tag to load the chart image.
ImageMapGets or sets the image map associated with the chart.
ChartModelGets or sets the Javascript Chart Model of the chart for the purpose of support track cursors.
ChartMetricsGets or sets the chart metrics of the chart.
IsPartialUpdateRequestChecks if the current HTTP Request is a partial update request (AJAX request) sent using JsChartViewer.partialUpdate.
IsFullUpdateRequestChecks if the current HTTP request is a full update request containing information from a JsChartViewer.
IsStreamRequestChecks if the current HTTP request is a stream update request sent using JsChartViewer.streamUpdate.
IsAttachmentRequestChecks if the current partial update request (AJAX request) is an attachment request sent using JsChartViewer.partialUpdateAsAttachment.
IsViewPortChangedEventChecks if the JsChartViewer.ViewPortChanged event has occurred.
SenderClientIdGets the id of the JsChartViewer that sends the current HTTP request.
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 HTML color.
ZoomInCursorGets or sets the mouse cursor to be used when the mouse is used for zoom in.
ZoomOutCursorGets or sets the mouse cursor to be used when the mouse is used for zoom out.
NoZoomCursorGets 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.
ScrollCursorGets or sets the mouse cursor to be used when the mouse is used for scrolling.

Methods
NameDescription
WebChartViewerCreates a new WebChartViewer object.
setChartAssigns a BaseChart to the WebChartViewer for display using the given format.
getChartGets the BaseChart object previously assigned to the WebChartViewer using WebChartViewer.getChart.
renderHTMLGenerates the HTML tags necessary to represent the chart, image map, and the JsChartViewer state.
partialUpdateChartGenerates the response to a partial chart update request.
streamChartSends the chart out as a MIME stream.
streamChart2Sends the image out as a MIME stream.
setCustomAttrSets a custom attribute.
getCustomAttrGets a custom attribute.
setFullRangeDefines the full range of a viewport data scale.
getValueAtViewPortConverts a viewport coordinate to a value of the specified data scale.
getViewPortAtValueConverts a value of the specified data scale to a viewport coordinate.
syncLinearAxisWithViewPortSynchronizes a linear Axis with the part of the data scale in viewport.
syncLogAxisWithViewPortSynchronizes a logarithmic Axis with the part of the data scale in viewport.
syncDateAxisWithViewPortSynchronizes a date/time Axis with the part of the data scale in viewport.