g2/zest

子系统:图表


Methods

(static) g2Bar($g, config)

「标准」Ux.g2Bar

Parameters:
Name Type Description
$g
config

(static) g2Broken($g, config)

「标准」Ux.g2Broken

Parameters:
Name Type Description
$g
config

(static) g2Chart(id, config)

「标准」Ux.g2Chart

1. 详细配置

配置详细数据结构

{ "chart": {}, // 图配置 "tooltip": {}, // Tooltip配置 "interval": {}, // 图呈现专用配置 }

Parameters:
Name Type Description
id String

图元关联的Div元素id

config any

配置属性

(static) g2Draw($g, data, config)

「标准」Ux.g2Draw

Parameters:
Name Type Description
$g
data
config

(static) g2Line($g, config)

「标准」Ux.g2Line

Parameters:
Name Type Description
$g
config

(static) g2MoreLine($g, config)

「标准」Ux.g2MoreLine

Parameters:
Name Type Description
$g
config

(static) g2Pie($g, config)

「标准」Ux.g2Pie

Parameters:
Name Type Description
$g
config

(static) g2ScaleMax(data, field, ratio) → {*}

「标准」Ux.g2ScaleMax

Parameters:
Name Type Default Description
data
field value
ratio 0.8
Returns:
Type
*