eChart extension

The eChart extension is provided as a skeleton extension to enable the use of extra charts in ChartDirector. It implements a Bubble and a Radar chart as an example. Full source code is included. The eChart extension is placed in the user-directory and therefore any modifications made to it will be retained in myDBR update.


dbr.echart - Create an extended chart
dbr.echart.color - Select colors for the chart - Select category names
dbr.echart.bubble_scale - Scale bubble chart axis


select 'dbr.echart', 'radar' | 'bubble'
select 'dbr.echart.color', 'ARGB color1', 'ARGB color2'...
select 'dbr.echart.color', 'Category 1', 'Category 2'...
select 'dbr.echart.bubble_scale',1


Create a radar chart

select 'dbr.echart', 'radar', 'Example radar'; 
select 'dbr.echart.color', '0x80ff3333', '0x803333ff';
select '', 'Model Saturn', 'Model Jupiter';

select Speed, Reliability, Comfort, Safety, Efficiency
from radar_data;

Create a bubble chart

Since the axis will be automatically scaled and can contain different datatypes, the bubble size (z) is by default in pixels. If you want to use absolute sizes for bubble size, use the select 'dbr.echart.bubble_scale',1 command to scale the axis. After this the bubble size is relative to the axis.

select 'dbr.echart', 'bubble', 'Bubble chart';
select 'dbr.echart.color', '0x80ff3333', '0x803333ff','0x80FF33ff';

select select x, y, z, category
from bubble_data;