Rendering

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Charts >

Rendering

Previous page Return to chapter overview Next page

Rendering methods and properties can be useful when carrying out custom drawing tasks for chart objects. Event handlers such as OnCalculateMinMax() and OnRender() allow you to override behavior at key points in the rendering process.

 

Notse:

1.Some rendering methods and properties make use of SharpDX libraries, which provide a managed framework for working with DirectX technology.  Please see the SharpDX SDK Reference for more information.
2.For a walk through for using the SharpDX, please see the educational resource Using SharpDX for Custom Chart Rendering

 

 

Methods and Properties

RenderTarget

Creates objects and exposes methods used for drawing in the chart area.

ForceRefresh()

Forces OnRender() to be called, which will re-paint the chart

IsInHitTest

Qualifies if object drawn in chart object should be selectable in the hit test procedure

IsSelected

Indicates a chart object is currently selected

IsVisibleOnChart()

Indicates a chart object is visible on the chart canvas

MaxValue

The maximum value used for the automatic scaling of the y axis

MinValue

The minimum value used for the automatic scaling of the y axis

OnCalculateMinMax()

An event driven method which is called while the chart scale is being updated

OnRender()

Used to render custom drawing to a chart from various chart objects

PanelUI

The chart panel that is configured on the chart's UI

ZOrder

A unique identifier used to control the order in which chart objects are drawn on the chart's Z-axis