ComponentOne ASP.NET MVC Controls
IRenderEngine Interface
File
wijmo.chart.js
Module
wijmo.chart

Represents a rendering engine that performs the basic drawing routines.

Properties

Methods

Properties

element

Gets the rendered element.

Type
Element

fill

Gets or sets the color used to fill the element.

Type
string

fontFamily

Gets or sets the font family for the text output.

Type
string

fontSize

Gets or sets the font size for the text output.

Type
string

stroke

Gets or sets the color used to outline the element.

Type
string

strokeWidth

Gets or sets the thickness of the outline.

Type
number

textFill

Gets or sets the text color.

Type
string

Methods

addClipRect

addClipRect(clipRect: Rect, id: string): void

Adds a clipping rectangle to the context.

Parameters
  • clipRect: Rect

    The clipping rectangle.

  • id: string

    The ID of the clipping rectangle.

Returns
void

beginRender

beginRender(): void

Clears the viewport and starts the rendering cycle.

Returns
void

drawDonutSegment

drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): void

Draws a doughnut segment.

Parameters
  • cx: number

    X coordinate of the segment center.

  • cy: number

    Y coordinate of the segment center.

  • radius: number

    Outer radius of the segment.

  • innerRadius: number

    Inner radius of the segment.

  • startAngle: number

    Start angle of the segment, in degrees.

  • sweepAngle: number

    Sweep angle of the segment, in degrees clockwise.

  • className: string
Optional

Class name to be applied to the element.

Style object to be applied to the element.

Id of the path to use as a clipping path.

Returns
void

drawEllipse

drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): void

Draws an ellipse.

Parameters
Returns
void

drawImage

drawImage(href: string, x: number, y: number, w: number, h: number): void

Draws an image.

Parameters
Returns
void

drawLine

drawLine(x1: number, y1: number, x2: number, y2: number, className?: string, style?: any): void

Draws a line.

Parameters
Returns
void

drawLines

drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): void

Draws a series of lines.

Parameters
Returns
void

drawPieSegment

drawPieSegment(cx: number, cy: number, radius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): void

Draws a pie segment.

Parameters
Returns
void

drawPolygon

drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): void

Draws a polygon.

Parameters
Returns
void

drawRect

drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): void

Draws a rectangle.

Parameters
Returns
void

drawSplines

drawSplines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): void

Draws a series of splines (smooth path).

Parameters
Returns
void

drawString

drawString(s: string, pt: Point, className?: string, style?: any): void

Draws a string.

Parameters
Returns
void

drawStringRotated

drawStringRotated(s: string, pt: Point, center: Point, angle: number, className?: string, style?: any): void

Draws a rotated string.

Parameters
Returns
void

endGroup

endGroup(): void

Ends a group.

Returns
void

endRender

endRender(): void

Finishes the rendering cycle.

Returns
void

measureString

measureString(s: string, className?: string, groupName?: string, style?: any): Size

Measures a string.

Parameters
Returns
Size

setViewportSize

setViewportSize(w: number, h: number): void

Sets the size of the viewport.

Parameters
Returns
void

startGroup

startGroup(className?: string, clipPath?: string, createTransform?: boolean): void

Starts a group.

Parameters
Returns
void