Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_canvas_chart_radar

Plugin, ACE table, Discussion thread
Dependence: canvas plugin

Introduction
Draw a radar chart on the canvas object. i.e. it is a behavior of canvas plugin.
Reference from Chart.js.

Usage
Sample capx
Data in this chart had 2 dimensions - datasets (row), and labels (column). Drawing the radar chart follows these steps -
  1. Call "Action:Add label" to add labels, and "Action:Add dataset" to add datasets.
  2. Call "Action:Set data" to set data indexed by dataset and label.
  3. Call "Action:Draw" to draw this chart.
Reset chart
Call "Action:Clean all labels" or "Action:Clean all datasets" to clean the labels or datasets, then call "Action:Add label" or "Action:Add dataset" to add new labels an datasets. "Action:Clean all data" could clean all data.
Configure
There are some configurations in properties table,  which could set the color, line width, stroke width, or font. Or change them at runtime by actions.
Animation
It also has a tween animation for drawing chart. Set "Animation" to "Yes", and give a "Duration" in properties table to turn on it. When drawing finished, "Condition:On drawing finished" will be triggered.
It is better to turn the animation off in cocoonJS environment.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About