Introduction

This article shows how to use ZKH5chart components in a ZK application.

ZKH5Chart (based on h5chart javascript library) is a set of components that are useful to create and compose graphics and data charts in ZK.
The library includes a set of drawing tools and H5Chart elements that are canvas elements where the components are drawn in.

Base component

H5Chart

Is the canvas where the charts and tools are drawn in.
In this component (H5Chart), you can add many graphic components, so, with that in mind,
you can create rich and complex charts.

Every graphic component is positionable and dimensionable (left, top, width and height support)
relative to the canvas drawing area. The starting position (0,0) is on the top left corner.

Charts

Are components that represents data in it.
Mostly, they have parametrized objetive ranges and current data.
At this moment only one dimension charts are implemented.
Next release will include Multidimension charts (line, bars, areas, stacked, etc).

Digital

Numeric Digital Panel.
Can customize every range color, animation (blink or not) animation counter , digits and decimal count.
When current numeric data is within the range, the panel use the range definition and displays the
data.

Led

Led Matrix can display numeric and alphanumeric information in one row.
Can customize every range color, message, animation (blink, Right to left movement or static)
and animation counter.
When current numeric data is within the range, the matrix displays the message whith the
designed color and animation.

Signal

Multiple or individual signal light.
Can customize every range color, animation (blink or static) and animation counter.
When current numeric data is within the range, the signal is turned on with the designed color and animation.

Meter

Displays data in Ruler manner. If ranges are configured, the ruler is divided into customized ranges and
current data is represented by rectangle.
If ranges aren't present, current data is represented by a rectangle that fills the ruler.
Can customize, colors, fonts and current data animation.

Radialmeter

Displays data in Radial Ruler manner. If ranges are configured, the ruler is divided into customized ranges and
current data is represented by an arrow and arc (optional).
If ranges aren't present, current data is represented by an arrow and arc (optional).
Can customize, colors, fonts and current data animation (arrow and arc), ruler position and chart
background style.

Pie and Ring

Values and labels defined are represented in a pie or ring chart.
Can customize clock wise or radial animation, colors, fonts, and visible values.
Future release will include data mask customization.
This chart does not include references. You can add them with the references component.

References

Displays information in graph references format.
The text can be displayed in rows or flow in natural way.
Can customize the width (automatic height), flow (rows or natural), background, backcolor, border
color and text color, font family and size.