Appearance
你正在查看 v1.0.1 文档。切换到最新版请访问:/
散点图 API Reference
ScatterSeriesOption
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 系列类型 | 'scatter' | - |
| data | 数据数组 | ScatterDataItem[] | [] |
| name | 系列名称 | string | 未设置 |
| symbol | 点形状 | string | 未设置 |
| symbolSize | 点大小 | number | 未设置 |
| symbolPath | 自定义路径 | string | 未设置 |
| itemStyle | 点样式 | ItemStyleOption | ScatterItemStyleCallback | 未设置 |
| label | 标签 | LabelOption | 未设置 |
| emphasis / blur / select | 状态样式 | SeriesStateOption | 未设置 |
| gridIndex / xAxisIndex / yAxisIndex | 轴索引 | number | 未设置 |
| datasetIndex | 数据集索引 | number | 未设置 |
| encode | 数据映射 | SeriesEncode | 未设置 |
XAxisOption / YAxisOption(常用)
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 轴类型 | 'category' | 'value' | 未设置 |
| data | 类目数据 | (string | number)[] | [] |
| includeZero | 是否包含 0 | boolean | 未设置 |
| boundaryGap | 类目间距 | boolean | 未设置 |
| axisLabel | 标签样式 | AxisLabelOption | 未设置 |
| axisLine | 轴线样式 | AxisLineOption | 未设置 |
| axisTick | 刻度样式 | AxisTickOption | 未设置 |
| splitLine | 分割线样式 | SplitLineOption | 未设置 |
Grid / Tooltip / Legend / dataZoom
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| grid | 网格布局 | GridOption | 未设置 |
| tooltip | 提示框 | TooltipOption | 未设置 |
| legend | 图例 | LegendOption | 未设置 |
| dataZoom | 区间缩放 | DataZoomOption | DataZoomOption[] | 未设置 |