RazorChartViewer works with the JsChartViewer Javascript control on the browser side to support advanced chart user interactions, such as programming track cursors, zooming and scrolling and AJAX chart updates. It provides chart information needed by the JsChartViewer, and handles the AJAX chart update requests and responses between the server and the browser.
Properties
Name | Description |
---|---|
ID | Gets or sets the ID of the RazorChartViewer. |
Image | Represent the chart image to be viewed. |
ImageUrl | Gets or sets the URL used by the <IMG> tag to load the chart image. |
ImageMap | Gets or sets the image map associated with the chart. |
ChartModel | Gets or sets the Javascript Chart Model of the chart for the purpose of support track cursors. |
ChartMetrics | Gets or sets the chart metrics of the chart. |
ContentDisposition | The suggested filename to use when user saves the chart image as a file on the browser side. |
ImageSessionId | The name of the session variable to temporarily store the chart image. |
ViewPortLeft | Gets or sets the position of the left side of the viewport. |
ViewPortTop | Gets or sets the position of the top side of the viewport. |
ViewPortWidth | Gets or sets the width of the viewport. |
ViewPortHeight | Gets or sets the height of the viewport. |
MouseUsage | Gets or sets the mouse usage mode. |
ZoomDirection | Gets or sets the zoom direction for mouse zoom in/out actions. |
ScrollDirection | Gets or sets the scroll direction for mouse scroll actions. |
ZoomInRatio | Gets or sets the magnification ratio for each zoom in click of the mouse. |
ZoomOutRatio | Gets or sets the magnification ratio for each zoom out click of the mouse. |
ZoomInWidthLimit | Gets or sets the viewport width at maximum zoom in. |
ZoomOutWidthLimit | Gets or sets the viewport width at maximum zoom out. |
ZoomInHeightLimit | Gets or sets the viewport height at maximum zoom in. |
ZoomOutHeightLimit | Gets or sets the viewport height at maximum zoom out. |
MinimumDrag | Gets or sets the minimum mouse drag distance before it is considered as an intentional drag. |
Methods
Name | Description |
---|---|
RazorChartViewer | Creates a new RazorChartViewer object. |
RenderHTML | Generates the HTML tags to represent the chart. |
PartialUpdateChart | Sends the response to a partial chart update request. |
StreamChart | Returns the chart image as an array of bytes. |
IsPartialUpdateRequest | Checks if the current HTTP Request is a partial update request (AJAX request) sent using JsChartViewer.partialUpdate. |
IsStreamRequest | Checks if the current HTTP request is a stream update request sent using JsChartViewer.streamUpdate. |
IsAttachmentRequest | Checks if the current partial update request (AJAX request) is an attachment request sent using JsChartViewer.partialUpdateAsAttachment. |
GetSenderClientId | Gets the id of the JsChartViewer that sends the current HTTP request. |
SetCustomAttr | Sets a custom attribute. |
GetCustomAttr | Gets a custom attribute. |
setFullRange | Defines the full range of a viewport data scale. |
getValueAtViewPort | Converts a viewport coordinate to a value of the specified data scale. |
getViewPortAtValue | Converts a value of the specified data scale to a viewport coordinate. |
syncLinearAxisWithViewPort | Synchronizes a linear Axis with the part of the data scale in viewport. |
syncLogAxisWithViewPort | Synchronizes a logarithmic Axis with the part of the data scale in viewport. |
syncDateAxisWithViewPort | Synchronizes a date/time Axis with the part of the data scale in viewport. |