BPCharts

   

Table of Contents

  1. Overview
  2. Getting Started
  3. Colors (chco)
  4. Elevation, Rotation, Twist (chva)
  5. Layer Gap (chslg)
  6. Label chart (chl)
  7. Legend (chdl)

Overview

This chart is used to show data into pyramid.

The chart type code for the line chart is py.

Getting Started

Description Image

Pyramid chart show 2D chart:

cht=py&chs=200x200
&chd=t:20,30,10,5,20,15

As with all charts, you can specify data using different data encodings. See data encodings for more information.

cht=py&chs=200x200
&chd=s:sengelha

As with all charts, you can generate other image types using the chof parameter.

chof=s

Colors (chco)

You can control the colors of individual section in pyramid using the chco option.

See also Colors.

Syntax

chco=<color_1>|...|<color_n>
<color>
The color, in RRGGBB or RRGGBBAA format, to apply to the section.

Example

Description Image
Draw the line in red (FF0000) and green (00FF00). chco=ff0000|00ff00

Elevation, Rotation, Twist (chva)

You can specify the Elevation, Rotation and Twist.

See also Colors.

Syntax

chva=<elevation>,<rotation>,<twist>
<elevation>
Pyramid elevation.
<rotation>
Pyramid rotation.
<twist>
Camera twist.

Example

Description Image
Elevation chva=0 chva=20 chva=45
Rotation chva=0,0 chva=0,20 chva=0,45 chva=20,45
Twist chva=0,0,45 chva=0,0,90

Layer Gap (chslg)

You can specify layer gap

Syntax

chslg=<layergap>
<layergap>
Gap between data in pyramid

Example

Description Image
Layer gap chslg=0.02 chslg=0.1

Label chart (chl)

You can specify label on the chart

Syntax

chl=<template-text>
<template-text>
Template can contains:
{index} {label} {value} {percent}
index The index number of the pyramid layer. The first pyramid layer is 0. The nth pyramid layer is (n-1).
label The text label of the pyramid layer.
value The data value of the pyramid layer.
percent The percentage value of the pyramid layer.
Also can contains personalized string:
{percent}% ({value})

Example

Description Image
Label Chart chl={percent}% chl={percent}% ({value})

Legend (chdl)

Using this paramter is possible to show legend into chart. In last realease this position is fixed on the top/right.

Syntax

chdl=<legend-label-1>|...|<legend-label-n>
<legend-label>
Text to show in box

Example

Description Image
Draw the chart with legend. chdl=A1|A2|A3|A4|A5|A6