2020-11-01 00:26:47 +08:00
|
|
|
|
{
|
|
|
|
|
"id": {
|
|
|
|
|
"desc": "<p>组件 ID。默认不指定。指定则可用于在 option 或者 API 中引用组件。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"desc": "<p>系列名称,用于<a href=\"#tooltip\">tooltip</a>的显示,<a href=\"#legend\">legend</a> 的图例筛选,在 <code class=\"codespan\">setOption</code> 更新数据和配置项时用于指定对应的系列。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"legendHoverLink": {
|
|
|
|
|
"desc": "\n\n<p>是否启用<a href=\"#legend\">图例</a> hover 时的联动高亮。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"coordinateSystem": {
|
|
|
|
|
"desc": "<p>该系列使用的坐标系,可选:</p>\n<ul>\n<li><p><code class=\"codespan\">'cartesian2d'</code></p>\n<p> 使用二维的直角坐标系(也称笛卡尔坐标系),通过 <a href=\"#series-bar.xAxisIndex\">xAxisIndex</a>, <a href=\"#series-bar.yAxisIndex\">yAxisIndex</a>指定相应的坐标轴组件。</p>\n</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"xAxisIndex": {
|
|
|
|
|
"desc": "<p>使用的 <a href=\"#xAxis\">x 轴</a>的 index,在单个图表实例中存在多个 x 轴的时候有用。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"yAxisIndex": {
|
|
|
|
|
"desc": "<p>使用的 <a href=\"#yAxis\">y 轴</a>的 index,在单个图表实例中存在多个 y轴的时候有用。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"roundCap": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n\n<blockquote>\n<p>从 <code class=\"codespan\">v4.5.0</code> 开始支持</p>\n</blockquote>\n\n\n<p>是否在环形柱条两侧使用圆弧效果。</p>\n<p>仅对极坐标系柱状图有效。</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=polar-roundCap&reset=1&edit=1\" width=\"800\" height=\"500\"><iframe />\n\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"clean": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"showBackground": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v4.7.0</code> 开始支持</p>\n</blockquote>\n\n\n<p>是否显示柱条的背景色。通过 <a href=\"#series-bar.backgroundStyle\">backgroundStyle</a> 配置背景样式。</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=bar-background&reset=1&edit=1\" width=\"800\" height=\"400\"><iframe />\n\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"clean": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v4.7.0</code> 开始支持</p>\n</blockquote>\n<p>每一个柱条的背景样式。需要将 <a href=\"#series-bar.showBackground\">showBackground</a> 设置为 <code class=\"codespan\">true</code> 时才有效。</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=bar-background&reset=1&edit=1\" width=\"800\" height=\"400\"><iframe />\n\n\n\n"
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"backgroundStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"label": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.position": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.distance": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.offset": {
|
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.formatter": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>标签内容格式器,支持字符串模板和回调函数两种形式,字符串模板与回调函数返回的字符串均支持用 <code class=\"codespan\">\\n</code> 换行。</p>\n<p><strong>字符串模板</strong>\n模板变量有:</p>\n<ul>\n<li><code class=\"codespan\">{a}</code>:系列名。</li>\n<li><code class=\"codespan\">{b}</code>:数据名。</li>\n<li><code class=\"codespan\">{c}</code>:数据值。</li>\n<li><code class=\"codespan\">{@xxx}:数据中名为</code>'xxx'<code class=\"codespan\">的维度的值,如</code>{@product}<code class=\"codespan\">表示名为</code>'product'` 的维度的值。</li>\n<li><code class=\"codespan\">{@[n]}:数据中维度</code>n<code class=\"codespan\">的值,如</code>{@[3]}` 表示维度 3 的值,从 0 开始计数。</li>\n</ul>\n<p><strong>示例:</strong></p>\n<pre><code class=\"lang-js\">formatter: '{b}: {@score}'\n</code></pre>\n<p><strong>回调函数</strong></p>\n<p>回调函数格式:</p>\n<pre><code class=\"lang-js\">(params: Object|Array) => string\n</code></pre>\n<p>参数 <code class=\"codespan\">params</code> 是 formatter 需要的单个数据集。格式如下:</p>\n<pre><code class=\"lang-js\">{\n componentType: 'series',\n // 系列类型\n seriesType: string,\n // 系列在传入的 option.series 中的 index\n seriesIndex: number,\n // 系列名称\n seriesName: string,\n // 数据名,类目名\n name: string,\n // 数据在传入的 data 数组中的 index\n dataIndex: number,\n // 传入的原始数据项\n data: Object,\n // 传入的数据值。在多数系列下它和 data 相同。在一些系列下是 data 中的分量(如 map、radar 中)\n value: number|Array|Object,\n // 坐标轴 encode 映射信息,\n // key 为坐标轴(如 'x' 'y' 'radius' 'angle' 等)\n // value 必然为数组,不会为 null/undefied,表示 dimension index 。\n // 其内容如:\n // {\n // x: [2] // dimension index 为 2 的数据映射到 x 轴\n // y: [0] // dimension index 为 0 的数据映射到 y 轴\n // }\n encode: Object,\n // 维度名列表\n dimensionNames: Array<String>,\n // 数据的维度 index,如 0 或 1 或 2 ...\n // 仅在雷达图中使用。\n dimensionIndex: number,\n // 数据图形的颜色\n color: string,\n\n\n\n}\n</code></pre>\n<p>注:encode 和 dimensionNames 的使用方式,例如:</p>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n source: [\n ['Matcha Latte', 43.3, 85.8, 93.7],\n ['Milk Tea', 83.1, 73.4, 55.1],\n ['Cheese Cocoa', 86.4, 65.2, 82.5],\n ['Walnut Brownie', 72.4, 53.9, 39.1]\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.encode.y[0]]\n</code></pre>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n dimensions: ['product', '2015', '2016', '2017'],\n source: [\n {product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},\n {product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},\n {product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},\n {product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.dimensionNames[params.encode.y[0]]]\n</code></pre>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"label.color": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.fontStyle": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.fontWeight": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.fontFamily": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.align": {
|
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.verticalAlign": {
|
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.lineHeight": {
|
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.backgroundColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.borderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.padding": {
|
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.width": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"label.height": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"label.textBorderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"label.rich": {
|
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.color": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.fontStyle": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.fontWeight": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.fontFamily": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.align": {
|
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.verticalAlign": {
|
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.lineHeight": {
|
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.backgroundColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.borderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.padding": {
|
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.width": {
|
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.height": {
|
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.textBorderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.rich.<style_name>.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.showAbove": {
|
|
|
|
|
"desc": "<p>是否显示在图形上方。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLine.length2": {
|
|
|
|
|
"desc": "\n\n<p>视觉引导项第二段的长度。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "15",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.smooth": {
|
|
|
|
|
"desc": "\n\n<p>是否平滑视觉引导线,默认不平滑,可以设置成 <code class=\"codespan\">true</code> 平滑显示,也可以设置为 0 到 1 的值,表示平滑程度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"labelLine.minTurnAngle": {
|
|
|
|
|
"desc": "<p>通过调整第二段线的长度,限制引导线两端之间最小的夹角,以防止过小的夹角导致显示不美观。</p>\n<p>可以设置为 0 - 180 度。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "1",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.lineStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.lineStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.lineStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.lineStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"labelLine.lineStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle": {
|
|
|
|
|
"desc": "<p> 图形样式。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.borderType": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"itemStyle.decal(Object | 'none')": {
|
|
|
|
|
"desc": "<p>图形的贴花图案,在 <a href=\"#aria.enabled\">aria.enabled</a> 与 <a href=\"#aria.decal.show\">aria.decal.show</a> 都是 <code class=\"codespan\">true</code> 的情况下才生效。</p>\n<p>如果为 <code class=\"codespan\">'none'</code> 表示不使用贴花图案。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').symbol(string|string[]) = 'rect'": {
|
|
|
|
|
"desc": "<p>贴花的图案,如果是 <code class=\"codespan\">string[]</code> 表示循环使用数组中的图案。</p>\n<p>ECharts 提供的标记类型包括</p>\n<p><code class=\"codespan\">'circle'</code>, <code class=\"codespan\">'rect'</code>, <code class=\"codespan\">'roundRect'</code>, <code class=\"codespan\">'triangle'</code>, <code class=\"codespan\">'diamond'</code>, <code class=\"codespan\">'pin'</code>, <code class=\"codespan\">'arrow'</code>, <code class=\"codespan\">'none'</code></p>\n<p>可以通过 <code class=\"codespan\">'image://url'</code> 设置为图片,其中 URL 为图片的链接,或者 <code class=\"codespan\">dataURI</code>。</p>\n<p>URL 为图片链接例如:</p>\n<pre><code>'image://http://xxx.xxx.xxx/a/b.png'\n</code></pre><p>URL 为 <code class=\"codespan\">dataURI</code> 例如:</p>\n<pre><code>'image://data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7'\n</code></pre><p>可以通过 <code class=\"codespan\">'path://'</code> 将图标设置为任意的矢量路径。这种方式相比于使用图片的方式,不用担心因为缩放而产生锯齿或模糊,而且可以设置为任意颜色。路径图形会自适应调整为合适的大小。路径的格式参见 <a href=\"http://www.w3.org/TR/SVG/paths.html#PathData\" target=\"_blank\">SVG PathData</a>。可以从 Adobe Illustrator 等工具编辑导出。</p>\n<p>例如:</p>\n<pre><code>'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z'\n</code></pre>"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').symbolSize": {
|
|
|
|
|
"desc": "<p>取值范围:<code class=\"codespan\">0</code> 到 <code class=\"codespan\">1</code>,表示占图案区域的百分比。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').symbolKeepAspect": {
|
|
|
|
|
"desc": "<p>是否保持图案的长宽比。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').color": {
|
|
|
|
|
"desc": "<p>贴花图案的颜色,建议使用半透明色,这样能叠加在系列本身的颜色上。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').backgroundColor": {
|
|
|
|
|
"desc": "<p>贴花的背景色,将会覆盖在系列本身颜色之上,贴花图案之下。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').dashArrayX(number | number[] | (number | number[])[]) = 5": {
|
|
|
|
|
"desc": "<p>贴花图案的基本模式是在横向和纵向上分别以<code class=\"codespan\">图案 - 空白 - 图案 - 空白 - 图案 - 空白</code>的形式无限循环。通过设置每个图案和空白的长度,可以实现复杂的图案效果。</p>\n<p><code class=\"codespan\">dashArrayX</code> 控制了横向的图案模式。当其值为 <code class=\"codespan\">number</code> 或 <code class=\"codespan\">number[]</code> 类型时,与 <a href=\"https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray\" target=\"_blank\">SVG stroke-dasharray</a> 类似。</p>\n<ul>\n<li><p>如果是 <code class=\"codespan\">number</code> 类型,表示图案和空白分别是这个值。如 <code class=\"codespan\">5</code> 表示先显示宽度为 5 的图案,然后空 5 像素,再然后显示宽度为 5 的图案……</p>\n</li>\n<li><p>如果是 <code class=\"codespan\">number[]</code> 类型,则表示图案和空白依次为数组值的循环。如:<code class=\"codespan\">[5, 10, 2, 6]</code> 表示图案宽 5 像素,然后空 10 像素,然后图案宽 2 像素,然后空 6 像素,然后图案宽 5 像素……</p>\n</li>\n<li><p>如果是 <code class=\"codespan\">(number | number[])[]</code> 类型,表示每行的图案和空白依次为数组值的循环。如:<code class=\"codespan\">[10, [2, 5]]</code> 表示第一行以图案 10 像素空 10 像素循环,第二行以图案 2 像素空 5 像素循环,第三行以图案 10 像素空 10 像素循环……</p>\n</li>\n</ul>\n<p>可以结合以下的例子理解本接口:</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/aria-decal&edit=1&reset=1\" width=\"700\" height=\"300\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').dashArrayY(number | number[]) = 5": {
|
|
|
|
|
"desc": "<p>贴花图案的基本模式是在横向和纵向上分别以<code class=\"codespan\">图案 - 空白 - 图案 - 空白 - 图案 - 空白</code>的形式无限循环。通过设置每个图案和空白的长度,可以实现复杂的图案效果。</p>\n<p><code class=\"codespan\">dashArrayY</code> 控制了横向的图案模式。与 <a href=\"https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray\" target=\"_blank\">SVG stroke-dasharray</a> 类似。</p>\n<ul>\n<li><p>如果是 <code class=\"codespan\">number</code> 类型,表示图案和空白分别是这个值。如 <code class=\"codespan\">5</code> 表示先显示高度为 5 的图案,然后空 5 像素,再然后显示高度为 5 的图案……</p>\n</li>\n<li><p>如果是 <code class=\"codespan\">number[]</code> 类型,则表示图案和空白依次为数组值的循环。如:<code class=\"codespan\">[5, 10, 2, 6]</code> 表示图案高 5 像素,然后空 10 像素,然后图案高 2 像素,然后空 6 像素,然后图案高 5 像素……</p>\n</li>\n</ul>\n<p>可以结合以下的例子理解本接口:</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/aria-decal&edit=1&reset=1\" width=\"700\" height=\"300\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').rotation": {
|
|
|
|
|
"desc": "<p>图案的整体旋转角度(弧度制),取值范围从 <code class=\"codespan\">-Math.PI</code> 到 <code class=\"codespan\">Math.PI</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').maxTileWidth": {
|
|
|
|
|
"desc": "<p>生成的图案在未重复之前的宽度上限。通常不需要设置该值,当你发现图案在重复的时候出现不连续的接缝时,可以尝试提高该值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.decal(Object | 'none').maxTileHeight": {
|
|
|
|
|
"desc": "<p>生成的图案在未重复之前的高度上限。通常不需要设置该值,当你发现图案在重复的时候出现不连续的接缝时,可以尝试提高该值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v5.0.0</code> 开始支持</p>\n</blockquote>\n<p>标签的统一布局配置。</p>\n<p>该配置项是在每个系列默认的标签布局基础上,统一调整标签的<code class=\"codespan\">(x, y)</code>位置,标签对齐等属性以实现想要的标签布局效果。</p>\n<p>该配置项也可以是一个有如下参数的回调函数</p>\n<pre><code class=\"lang-js\">// 标签对应数据的 dataIndex\ndataIndex: number\n// 标签对应的数据类型,只在关系图中会有 node 和 edge 数据类型的区分\ndataType?: string\n// 标签对应的系列的 index\nseriesIndex: number\n// 标签显示的文本\ntext: string\n// 默认的标签的包围盒,由系列默认的标签布局决定\nlabelRect: {x: number, y: number, width: number, height: number}\n// 默认的标签水平对齐\nalign: 'left' | 'center' | 'right'\n// 默认的标签垂直对齐\nverticalAlign: 'top' | 'middle' | 'bottom'\n// 标签所对应的数据图形的包围盒,可用于定位标签位置\nrect: {x: number, y: number, width: number, height: number}\n// 默认引导线的位置,目前只有饼图(pie)和漏斗图(funnel)有默认标签位置\n// 如果没有该值则为 null\nlabelLinePoints?: number[][]\n</code></pre>\n<p><strong>示例:</strong></p>\n<p>将标签显示在图形右侧 10px 的位置,并且垂直居中:</p>\n<pre><code class=\"lang-js\">labelLayout(params) {\n return {\n x: params.rect.x + 10,\n y: params.rect.y + params.rect.height / 2,\n verticalAlign: 'middle',\n align: 'left'\n }\n}\n</code></pre>\n<p>根据图形的包围盒尺寸决定文本尺寸</p>\n<pre><code class=\"lang-js\">\nlabelLayout(params) {\n return {\n fontSize: Math.max(params.rect.width / 10, 5)\n };\n}\n</code></pre>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.hideOverlap": {
|
|
|
|
|
"desc": "<p>是否隐藏重叠的标签。</p>\n<p>下面示例演示了在关系图中开启该配置后,在缩放时可以实现自动的标签隐藏。</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=graph-label-overlap&edit=1&reset=1\" width=\"600\" height=\"400\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.moveOverlap": {
|
|
|
|
|
"desc": "<p>在标签重叠的时候是否挪动标签位置以防止重叠。</p>\n<p>目前支持配置为:</p>\n<ul>\n<li><code class=\"codespan\">'shiftX'</code> 水平方向依次位移,在水平方向对齐时使用</li>\n<li><code class=\"codespan\">'shiftY'</code> 垂直方向依次位移,在垂直方向对齐时使用</li>\n</ul>\n<p>下面是标签右对齐并配置垂直方向依次位移以防止重叠的示例。</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=scatter-label-align-right&edit=1&reset=1\" width=\"600\" height=\"400\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.x": {
|
|
|
|
|
"desc": "<p>标签的 x 位置。支持绝对的像素值或者<code class=\"codespan\">'20%'</code>这样的相对值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.y": {
|
|
|
|
|
"desc": "<p>标签的 y 位置。支持绝对的像素值或者<code class=\"codespan\">'20%'</code>这样的相对值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.dx": {
|
|
|
|
|
"desc": "<p>标签在 x 方向上的像素偏移。可以和<code class=\"codespan\">x</code>一起使用。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.dy": {
|
|
|
|
|
"desc": "<p>标签在 y 方向上的像素偏移。可以和<code class=\"codespan\">y</code>一起使用</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.rotate": {
|
|
|
|
|
"desc": "<p>标签旋转角度。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.width": {
|
|
|
|
|
"desc": "<p>标签显示的宽度。可以配合<code class=\"codespan\">overflow</code>使用控制标签显示在固定宽度内</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.height": {
|
|
|
|
|
"desc": "<p>标签显示的高度。可以配合<code class=\"codespan\">lineOverflow</code>使用控制标签显示在固定高度内</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.align": {
|
|
|
|
|
"desc": "<p>标签水平对齐方式。可以设置<code class=\"codespan\">'left'</code>, <code class=\"codespan\">'center'</code>, <code class=\"codespan\">'right'</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.verticalAlign": {
|
|
|
|
|
"desc": "<p>标签垂直对齐方式。可以设置<code class=\"codespan\">'top'</code>, <code class=\"codespan\">'middle'</code>, <code class=\"codespan\">'bottom'</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.fontSize": {
|
|
|
|
|
"desc": "<p>The text size of the label.</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.draggable": {
|
|
|
|
|
"desc": "<p>标签是否可以允许用户通过拖拽二次调整位置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLayout.labelLinePoints": {
|
|
|
|
|
"desc": "<p>标签引导线三个点的位置。格式为:</p>\n<pre><code class=\"lang-js\">[[x, y], [x, y], [x, y]]\n</code></pre>\n<p>在饼图中常用来微调已经计算好的引导线,其它情况一般不建议设置。</p>\n"
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"emphasis": {
|
|
|
|
|
"desc": "<p>高亮的图形样式和标签样式。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.focus": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v5.0.0</code> 开始支持</p>\n</blockquote>\n<p>在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。支持如下配置:</p>\n<ul>\n<li><code class=\"codespan\">'none'</code> 不淡出其它图形,默认使用该配置。</li>\n<li><code class=\"codespan\">'self'</code> 只聚焦(不淡出)当前高亮的数据的图形。</li>\n<li><code class=\"codespan\">'series'</code> 聚焦当前高亮的数据所在的系列的所有图形。</li>\n</ul>\n<p><strong>示例:</strong></p>\n<p>下面代码配置了柱状图在高亮一个图形的时候,淡出当前直角坐标系所有其它的系列。</p>\n<pre><code class=\"lang-js\">emphasis: {\n focus: 'series',\n blurScope: 'coordinateSystem'\n}\n</code></pre>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=bar-y-category-stack&reset=1&edit=1\" width=\"600\" height=\"400\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.blurScope": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v5.0.0</code> 开始支持</p>\n</blockquote>\n<p>在开启<code class=\"codespan\">focus</code>的时候,可以通过<code class=\"codespan\">blurScope</code>配置淡出的范围。支持如下配置</p>\n<ul>\n<li><code class=\"codespan\">'coordinateSystem'</code> 淡出范围为坐标系,默认使用该配置。</li>\n<li><code class=\"codespan\">'series'</code> 淡出范围为系列。</li>\n<li><code class=\"codespan\">'global'</code> 淡出范围为全局。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label": {
|
|
|
|
|
"desc": "<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"emphasis.label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.position": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.distance": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.offset": {
|
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.formatter": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>标签内容格式器,支持字符串模板和回调函数两种形式,字符串模板与回调函数返回的字符串均支持用 <code class=\"codespan\">\\n</code> 换行。</p>\n<p><strong>字符串模板</strong>\n模板变量有:</p>\n<ul>\n<li><code class=\"codespan\">{a}</code>:系列名。</li>\n<li><code class=\"codespan\">{b}</code>:数据名。</li>\n<li><code class=\"codespan\">{c}</code>:数据值。</li>\n<li><code class=\"codespan\">{@xxx}:数据中名为</code>'xxx'<code class=\"codespan\">的维度的值,如</code>{@product}<code class=\"codespan\">表示名为</code>'product'` 的维度的值。</li>\n<li><code class=\"codespan\">{@[n]}:数据中维度</code>n<code class=\"codespan\">的值,如</code>{@[3]}` 表示维度 3 的值,从 0 开始计数。</li>\n</ul>\n<p><strong>示例:</strong></p>\n<pre><code class=\"lang-js\">formatter: '{b}: {@score}'\n</code></pre>\n<p><strong>回调函数</strong></p>\n<p>回调函数格式:</p>\n<pre><code class=\"lang-js\">(params: Object|Array) => string\n</code></pre>\n<p>参数 <code class=\"codespan\">params</code> 是 formatter 需要的单个数据集。格式如下:</p>\n<pre><code class=\"lang-js\">{\n componentType: 'series',\n // 系列类型\n seriesType: string,\n // 系列在传入的 option.series 中的 index\n seriesIndex: number,\n // 系列名称\n seriesName: string,\n // 数据名,类目名\n name: string,\n // 数据在传入的 data 数组中的 index\n dataIndex: number,\n // 传入的原始数据项\n data: Object,\n // 传入的数据值。在多数系列下它和 data 相同。在一些系列下是 data 中的分量(如 map、radar 中)\n value: number|Array|Object,\n // 坐标轴 encode 映射信息,\n // key 为坐标轴(如 'x' 'y' 'radius' 'angle' 等)\n // value 必然为数组,不会为 null/undefied,表示 dimension index 。\n // 其内容如:\n // {\n // x: [2] // dimension index 为 2 的数据映射到 x 轴\n // y: [0] // dimension index 为 0 的数据映射到 y 轴\n // }\n encode: Object,\n // 维度名列表\n dimensionNames: Array<String>,\n // 数据的维度 index,如 0 或 1 或 2 ...\n // 仅在雷达图中使用。\n dimensionIndex: number,\n // 数据图形的颜色\n color: string,\n\n\n\n}\n</code></pre>\n<p>注:encode 和 dimensionNames 的使用方式,例如:</p>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n source: [\n ['Matcha Latte', 43.3, 85.8, 93.7],\n ['Milk Tea', 83.1, 73.4, 55.1],\n ['Cheese Cocoa', 86.4, 65.2, 82.5],\n ['Walnut Brownie', 72.4, 53.9, 39.1]\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.encode.y[0]]\n</code></pre>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n dimensions: ['product', '2015', '2016', '2017'],\n source: [\n {product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},\n {product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},\n {product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},\n {product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.dimensionNames[params.encode.y[0]]]\n</code></pre>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"emphasis.label.color": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.fontStyle": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.fontWeight": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.fontFamily": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.align": {
|
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.verticalAlign": {
|
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.lineHeight": {
|
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.backgroundColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.borderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.padding": {
|
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.width": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"emphasis.label.height": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"emphasis.label.textBorderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"emphasis.label.rich": {
|
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.color": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.fontStyle": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.fontWeight": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.fontFamily": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.align": {
|
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.verticalAlign": {
|
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.lineHeight": {
|
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.backgroundColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.borderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.padding": {
|
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.width": {
|
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.height": {
|
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.textBorderColor": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rich.<style_name>.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "1",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.labelLine.lineStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle": {
|
|
|
|
|
"desc": "<p> 图形样式。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"emphasis.itemStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur": {
|
|
|
|
|
"desc": "<p>淡出时的图形样式和标签样式。开启 <a href=\"#series-bar.emphasis.focus\">emphasis.focus</a> 后有效。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label": {
|
|
|
|
|
"desc": "<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.position": {
|
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.distance": {
|
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rotate": {
|
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.offset": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.formatter": {
|
|
|
|
|
"desc": "<p>标签内容格式器,支持字符串模板和回调函数两种形式,字符串模板与回调函数返回的字符串均支持用 <code class=\"codespan\">\\n</code> 换行。</p>\n<p><strong>字符串模板</strong>\n模板变量有:</p>\n<ul>\n<li><code class=\"codespan\">{a}</code>:系列名。</li>\n<li><code class=\"codespan\">{b}</code>:数据名。</li>\n<li><code class=\"codespan\">{c}</code>:数据值。</li>\n<li><code class=\"codespan\">{@xxx}:数据中名为</code>'xxx'<code class=\"codespan\">的维度的值,如</code>{@product}<code class=\"codespan\">表示名为</code>'product'` 的维度的值。</li>\n<li><code class=\"codespan\">{@[n]}:数据中维度</code>n<code class=\"codespan\">的值,如</code>{@[3]}` 表示维度 3 的值,从 0 开始计数。</li>\n</ul>\n<p><strong>示例:</strong></p>\n<pre><code class=\"lang-js\">formatter: '{b}: {@score}'\n</code></pre>\n<p><strong>回调函数</strong></p>\n<p>回调函数格式:</p>\n<pre><code class=\"lang-js\">(params: Object|Array) => string\n</code></pre>\n<p>参数 <code class=\"codespan\">params</code> 是 formatter 需要的单个数据集。格式如下:</p>\n<pre><code class=\"lang-js\">{\n componentType: 'series',\n // 系列类型\n seriesType: string,\n // 系列在传入的 option.series 中的 index\n seriesIndex: number,\n // 系列名称\n seriesName: string,\n // 数据名,类目名\n name: string,\n // 数据在传入的 data 数组中的 index\n dataIndex: number,\n // 传入的原始数据项\n data: Object,\n // 传入的数据值。在多数系列下它和 data 相同。在一些系列下是 data 中的分量(如 map、radar 中)\n value: number|Array|Object,\n // 坐标轴 encode 映射信息,\n // key 为坐标轴(如 'x' 'y' 'radius' 'angle' 等)\n // value 必然为数组,不会为 null/undefied,表示 dimension index 。\n // 其内容如:\n // {\n // x: [2] // dimension index 为 2 的数据映射到 x 轴\n // y: [0] // dimension index 为 0 的数据映射到 y 轴\n // }\n encode: Object,\n // 维度名列表\n dimensionNames: Array<String>,\n // 数据的维度 index,如 0 或 1 或 2 ...\n // 仅在雷达图中使用。\n dimensionIndex: number,\n // 数据图形的颜色\n color: string,\n\n\n\n}\n</code></pre>\n<p>注:encode 和 dimensionNames 的使用方式,例如:</p>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n source: [\n ['Matcha Latte', 43.3, 85.8, 93.7],\n ['Milk Tea', 83.1, 73.4, 55.1],\n ['Cheese Cocoa', 86.4, 65.2, 82.5],\n ['Walnut Brownie', 72.4, 53.9, 39.1]\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.encode.y[0]]\n</code></pre>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n dimensions: ['product', '2015', '2016', '2017'],\n source: [\n {product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},\n {product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},\n {product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},\n {product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.dimensionNames[params.encode.y[0]]]\n</code></pre>\n"
|
|
|
|
|
},
|
|
|
|
|
"blur.label.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.width": {
|
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.height": {
|
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"blur.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"blur.label.rich": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.width": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.height": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rich.<style_name>.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"blur.itemStyle": {
|
|
|
|
|
"desc": "<p> 图形样式。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"blur.itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.borderType": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select": {
|
|
|
|
|
"desc": "<p>数据选中时的图形样式和标签样式。开启 <a href=\"#series-bar.selectedMode\">selectedMode</a> 后有效。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label": {
|
|
|
|
|
"desc": "<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"select.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.position": {
|
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.distance": {
|
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rotate": {
|
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.offset": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.formatter": {
|
|
|
|
|
"desc": "<p>标签内容格式器,支持字符串模板和回调函数两种形式,字符串模板与回调函数返回的字符串均支持用 <code class=\"codespan\">\\n</code> 换行。</p>\n<p><strong>字符串模板</strong>\n模板变量有:</p>\n<ul>\n<li><code class=\"codespan\">{a}</code>:系列名。</li>\n<li><code class=\"codespan\">{b}</code>:数据名。</li>\n<li><code class=\"codespan\">{c}</code>:数据值。</li>\n<li><code class=\"codespan\">{@xxx}:数据中名为</code>'xxx'<code class=\"codespan\">的维度的值,如</code>{@product}<code class=\"codespan\">表示名为</code>'product'` 的维度的值。</li>\n<li><code class=\"codespan\">{@[n]}:数据中维度</code>n<code class=\"codespan\">的值,如</code>{@[3]}` 表示维度 3 的值,从 0 开始计数。</li>\n</ul>\n<p><strong>示例:</strong></p>\n<pre><code class=\"lang-js\">formatter: '{b}: {@score}'\n</code></pre>\n<p><strong>回调函数</strong></p>\n<p>回调函数格式:</p>\n<pre><code class=\"lang-js\">(params: Object|Array) => string\n</code></pre>\n<p>参数 <code class=\"codespan\">params</code> 是 formatter 需要的单个数据集。格式如下:</p>\n<pre><code class=\"lang-js\">{\n componentType: 'series',\n // 系列类型\n seriesType: string,\n // 系列在传入的 option.series 中的 index\n seriesIndex: number,\n // 系列名称\n seriesName: string,\n // 数据名,类目名\n name: string,\n // 数据在传入的 data 数组中的 index\n dataIndex: number,\n // 传入的原始数据项\n data: Object,\n // 传入的数据值。在多数系列下它和 data 相同。在一些系列下是 data 中的分量(如 map、radar 中)\n value: number|Array|Object,\n // 坐标轴 encode 映射信息,\n // key 为坐标轴(如 'x' 'y' 'radius' 'angle' 等)\n // value 必然为数组,不会为 null/undefied,表示 dimension index 。\n // 其内容如:\n // {\n // x: [2] // dimension index 为 2 的数据映射到 x 轴\n // y: [0] // dimension index 为 0 的数据映射到 y 轴\n // }\n encode: Object,\n // 维度名列表\n dimensionNames: Array<String>,\n // 数据的维度 index,如 0 或 1 或 2 ...\n // 仅在雷达图中使用。\n dimensionIndex: number,\n // 数据图形的颜色\n color: string,\n\n\n\n}\n</code></pre>\n<p>注:encode 和 dimensionNames 的使用方式,例如:</p>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n source: [\n ['Matcha Latte', 43.3, 85.8, 93.7],\n ['Milk Tea', 83.1, 73.4, 55.1],\n ['Cheese Cocoa', 86.4, 65.2, 82.5],\n ['Walnut Brownie', 72.4, 53.9, 39.1]\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.encode.y[0]]\n</code></pre>\n<p>如果数据为:</p>\n<pre><code class=\"lang-js\">dataset: {\n dimensions: ['product', '2015', '2016', '2017'],\n source: [\n {product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},\n {product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},\n {product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},\n {product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}\n ]\n}\n</code></pre>\n<p>则可这样得到 y 轴对应的 value:</p>\n<pre><code class=\"lang-js\">params.value[params.dimensionNames[params.encode.y[0]]]\n</code></pre>\n"
|
|
|
|
|
},
|
|
|
|
|
"select.label.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.width": {
|
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.height": {
|
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"select.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"select.label.rich": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.width": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.height": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rich.<style_name>.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"select.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "1",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.labelLine.lineStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle": {
|
|
|
|
|
"desc": "<p> 图形样式。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "#000"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "vector",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"dims": "LT,RT,RB,LB"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": ""
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "0",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "0",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"selectedMode": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v5.0.0</code> 开始支持</p>\n</blockquote>\n\n\n<p>选中模式的配置,表示是否支持多个选中,默认关闭,支持布尔值和字符串,字符串取值可选<code class=\"codespan\">'single'</code>,<code class=\"codespan\">'multiple'</code>,分别表示单选还是多选。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "false,true,single,multiple"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"stack": {
|
|
|
|
|
"desc": "<p>数据堆叠,同个类目轴上系列配置相同的<code class=\"codespan\">stack</code>值可以堆叠放置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"sampling": {
|
|
|
|
|
"desc": "<p>柱状图在数据量远大于像素点时候的降采样策略,开启后可以有效的优化图表的绘制效率,默认关闭,也就是全部绘制不过滤数据点。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'lttb'</code> 采用 Largest-Triangle-Three-Bucket 算法,可以最大程度保证采样后线条的趋势,形状和极值。</li>\n<li><code class=\"codespan\">'average'</code> 取过滤点的平均值</li>\n<li><code class=\"codespan\">'max'</code> 取过滤点的最大值</li>\n<li><code class=\"codespan\">'min'</code> 取过滤点的最小值</li>\n<li><code class=\"codespan\">'sum'</code> 取过滤点的和</li>\n</ul>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"cursor": {
|
|
|
|
|
"desc": "\n\n<p>鼠标悬浮时在图形元素上时鼠标的样式是什么。同 CSS 的 <code class=\"codespan\">cursor</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "auto,pointer,move",
|
|
|
|
|
"default": "pointer"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"barWidth": {
|
|
|
|
|
"desc": "<p>柱条的宽度,不设时自适应。</p>\n\n\n\n\n<p>可以是绝对值例如 <code class=\"codespan\">40</code> 或者百分数例如 <code class=\"codespan\">'60%'</code>。百分数基于自动计算出的每一类目的宽度。</p>\n<p>在同一坐标系上,此属性会被多个 <code class=\"codespan\">'bar'</code> 系列共享。此属性应设置于此坐标系中最后一个 <code class=\"codespan\">'bar'</code> 系列上才会生效,并且是对此坐标系中所有 <code class=\"codespan\">'bar'</code> 系列生效。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "percent"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"barMaxWidth": {
|
|
|
|
|
"desc": "<p>柱条的最大宽度。</p>\n<p>比 <a href=\"#series-bar.barWidth\">barWidth</a> 优先级高。</p>\n<p>可以是绝对值例如 <code class=\"codespan\">40</code> 或者百分数例如 <code class=\"codespan\">'60%'</code>。百分数基于自动计算出的每一类目的宽度。</p>\n<p>在同一坐标系上,此属性会被多个 <code class=\"codespan\">'bar'</code> 系列共享。此属性应设置于此坐标系中最后一个 <code class=\"codespan\">'bar'</code> 系列上才会生效,并且是对此坐标系中所有 <code class=\"codespan\">'bar'</code> 系列生效。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"barMinWidth": {
|
|
|
|
|
"desc": "<p>柱条的最小宽度。在直角坐标系中,默认值是 <code class=\"codespan\">1</code>。否则默认值是 <code class=\"codespan\">null</code>。</p>\n<p>比 <a href=\"#series-bar.barWidth\">barWidth</a> 优先级高。</p>\n<p>可以是绝对值例如 <code class=\"codespan\">40</code> 或者百分数例如 <code class=\"codespan\">'60%'</code>。百分数基于自动计算出的每一类目的宽度。</p>\n<p>在同一坐标系上,此属性会被多个 <code class=\"codespan\">'bar'</code> 系列共享。此属性应设置于此坐标系中最后一个 <code class=\"codespan\">'bar'</code> 系列上才会生效,并且是对此坐标系中所有 <code class=\"codespan\">'bar'</code> 系列生效。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"barMinHeight": {
|
|
|
|
|
"desc": "<p>柱条最小高度,可用于防止某数据项的值过小而影响交互。</p>\n\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"barGap": {
|
|
|
|
|
"desc": "\n\n<p>不同系列的柱间距离,为百分比(如 <code class=\"codespan\">'30%'</code>,表示柱子宽度的 <code class=\"codespan\">30%</code>)。</p>\n<p>如果想要两个系列的柱子重叠,可以设置 barGap 为 <code class=\"codespan\">'-100%'</code>。这在用柱子做背景的时候有用。</p>\n<p>在同一坐标系上,此属性会被多个 <code class=\"codespan\">'bar'</code> 系列共享。此属性应设置于此坐标系中最后一个 <code class=\"codespan\">'bar'</code> 系列上才会生效,并且是对此坐标系中所有 <code class=\"codespan\">'bar'</code> 系列生效。</p>\n<p>例子:</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/barGrid-barGap&reset=1&edit=1\" width=\"600\" height=\"400\"><iframe />\n\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "percent",
|
|
|
|
|
"default": "30%"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"barCategoryGap": {
|
|
|
|
|
"desc": "\n\n<p>同一系列的柱间距离,默认为类目间距的20%,可设固定值</p>\n<p>在同一坐标系上,此属性会被多个 <code class=\"codespan\">'bar'</code> 系列共享。此属性应设置于此坐标系中最后一个 <code class=\"codespan\">'bar'</code> 系列上才会生效,并且是对此坐标系中所有 <code class=\"codespan\">'bar'</code> 系列生效。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "percent",
|
|
|
|
|
"default": "20%"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"large": {
|
|
|
|
|
"desc": "\n\n<p>是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。</p>\n<p>开启后配合 <code class=\"codespan\">largeThreshold</code> 在数据量大于指定阈值的时候对绘制进行优化。</p>\n<p>缺点:优化后不能自定义设置单个数据项的样式。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"largeThreshold": {
|
|
|
|
|
"desc": "\n\n<p>开启绘制优化的阈值。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"default": "400"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"progressive": {
|
|
|
|
|
"desc": "<p>渐进式渲染时每一帧绘制图形数量,设为 0 时不启用渐进式渲染,支持每个系列单独配置。</p>\n<p>在图中有数千到几千万图形元素的时候,一下子把图形绘制出来,或者交互重绘的时候可能会造成界面的卡顿甚至假死。ECharts 4 开始全流程支持渐进渲染(progressive rendering),渲染的时候会把创建好的图形分到数帧中渲染,每一帧渲染只渲染指定数量的图形。</p>\n<p>该配置项就是用于配置该系列每一帧渲染的图形数,可以根据图表图形复杂度的需要适当调整这个数字使得在不影响交互流畅性的前提下达到绘制速度的最大化。比如在 lines 图或者平行坐标中线宽大于 1 的 polyline 绘制会很慢,这个数字就可以设置小一点,而线宽小于等于 1 的 polyline 绘制非常快,该配置项就可以相对调得比较大。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"progressiveThreshold": {
|
|
|
|
|
"desc": "<p>启用渐进式渲染的图形数量阈值,在单个系列的图形数量超过该阈值时启用渐进式渲染。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"progressiveChunkMode": {
|
|
|
|
|
"desc": "<p>分片的方式。可选值:</p>\n<ul>\n<li><code class=\"codespan\">'sequential'</code>: 按照数据的顺序分片。缺点是渲染过程不自然。</li>\n<li><code class=\"codespan\">'mod'</code>: 取模分片,即每个片段中的点会遍布于整个数据,从而能够视觉上均匀得渲染。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"dimensions": {
|
|
|
|
|
"desc": "<p>使用 dimensions 定义 <code class=\"codespan\">series.data</code> 或者 <code class=\"codespan\">dataset.source</code> 的每个维度的信息。</p>\n<p>注意:如果使用了 <a href=\"#dataset\">dataset</a>,那么可以在 <a href=\"#dataset.dimensions\">dataset.dimensions</a> 中定义 dimension ,或者在 <a href=\"#dataset.source\">dataset.source</a> 的第一行/列中给出 dimension 名称。于是就不用在这里指定 dimension。但如果在这里指定了 <code class=\"codespan\">dimensions</code>,那么优先使用这里的。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">option = {\n dataset: {\n source: [\n // 有了上面 dimensions 定义后,下面这五个维度的名称分别为:\n // 'date', 'open', 'close', 'highest', 'lowest'\n [12, 44, 55, 66, 2],\n [23, 6, 16, 23, 1],\n ...\n ]\n },\n series: {\n type: 'xxx',\n // 定义了每个维度的名称。这个名称会被显示到默认的 tooltip 中。\n dimensions: ['date', 'open', 'close', 'highest', 'lowest']\n }\n}\n</code></pre>\n<pre><code class=\"lang-js\">series: {\n type: 'xxx',\n dimensions: [\n null, // 如果此维度不想给出定义,则使用 null 即可\n {type: 'ordinal'}, // 只定义此维度的类型。\n // 'ordinal' 表示离散型,一般文本使用这种类型。\n // 如果类型没有被定义,会自动猜测类型。\n {name: 'good', type: 'number'},\n 'bad' // 等同于 {name: 'bad'}\n ]\n}\n</code></pre>\n<p><code class=\"codespan\">dimensions</code> 数组中的每一项可以是:</p>\n<ul>\n<li><code class=\"codespan\">string</code>,如 <code class=\"codespan\">'someName'</code>,等同于 <code class=\"codespan\">{name: 'someName'}</code></li>\n<li><code class=\"codespan\">Object</code>,属性可以有:<ul>\n<li>name: <code class=\"codespan\">string</code>。</li>\n<li>type: <code class=\"codespan\">string</code>,支持<ul>\n<li><code class=\"codespan\">number</code>,默认,表示普通数据。</li>\n<li><code class=\"codespan\">ordinal</code>,对于类目、文本这些 string 类型的数据,如果需要能在数轴上使用,须是 'ordinal' 类型。ECharts 默认会自动判断这个类型。但是自动判断也是不可能很完备的,所以使用者也可以手动强制指定。</li>\n<li><code class=\"codespan\">float</code>,即 <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\" target=\"_blank\">Float64Array</a>。</li>\n<li><code class=\"codespan\">int</code>,即 <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\" target=\"_blank\">Int32Array</a>。</li>\n<li><code class=\"codespan\">time</code>,表示时间类型。设置成 'time' 则能支持自动解析数据成时间戳(timestamp),比如该维度的数据是 '2017-05-10',会自动被解析。时间类型的支持参见 <a href=\"#series.data\">data</a>。</li>\n</ul>\n</li>\n<li>displayName: 一般用于 tooltip 中维度名的展示。<code class=\"codespan\">string</code> 如果没有指定,默认使用 name 来展示。</li>\n</ul>\n</li>\n</ul>\n<p>值得一提的是,当定义了 <code class=\"codespan\">dimensions</code> 后,默认 <code class=\"codespan\">tooltip</code> 中对个维度的显示,会变为『竖排』,从而方便显示每个维度的名称。如果没有定义 <code class=\"codespan\">dimensions</code>,则默认 <code class=\"codespan\">tooltip</code> 会横排显示,且只显示数值没有维度名称可显示。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"encode": {
|
|
|
|
|
"desc": "<p>可以定义 <code class=\"codespan\">data</code> 的哪个维度被编码成什么。比如:</p>\n<pre><code class=\"lang-js\">option = {\n dataset: {\n source: [\n // 每一列称为一个『维度』。\n // 这里分别是维度 0、1、2、3、4。\n [12, 44, 55, 66, 2],\n [23, 6, 16, 23, 1],\n ...\n ]\n },\n series: {\n type: 'xxx',\n encode: {\n x: [3, 1, 5], // 表示维度 3、1、5 映射到 x 轴。\n y: 2, // 表示维度 2 映射到 y 轴。\n tooltip: [3, 2, 4] // 表示维度 3、2、4 会在 tooltip 中显示。\n }\n }\n}\n</code></pre>\n<p>当使用 <a href=\"#series.dimensions\">dimensions</a> 给维度定义名称后,<code class=\"codespan\">encode</code> 中可直接引用名称,例如:</p>\n<pre><code class=\"lang-js\">series: {\n type: 'xxx',\n dimensions: ['date', 'open', 'close', 'highest', 'lowest'],\n encode: {\n x: 'date',\n y: ['open', 'close', 'highest', 'lowest']\n }\n}\n</code></pre>\n<p><code class=\"codespan\">encode</code> 声明的基本结构如下,其中冒号左边是坐标系、标签等特定名称,如 <code class=\"codespan\">'x'</code>, <code class=\"codespan\">'y'</code>, <code class=\"codespan\">'tooltip'</code> 等,冒号右边是数据中的维度名(string 格式)或者维度的序号(number 格式,从 0 开始计数),可以指定一个或多个维度(使用数组)。通常情况下,下面各种信息不需要所有的都写,按需写即可。</p>\n<p>下面是 encode 支持的属性:</p>\n<pre><code class=\"lang-js\">// 在任何坐标系和系列中,都支持:\nencode: {\n // 使用 “名为 product 的维度” 和 “名为 score 的维度” 的值在 tooltip 中显示\n tooltip: ['product', 'score']\n // 使用 “维度 1” 和 “维度 3” 的维度名连起来作为系列名。(有时候名字比较长,这可以避免在 series.name 重复输入这些名字)\n seriesName: [1, 3],\n // 表示使用 “维度2” 中的值作为 id。这在使用 setOption 动态更新数据时有用处,可以使新老数据用 id 对应起来,从而能够产生合适的数据更新动画。\n itemId: 2,\n // 指定数据项的名称使用 “维度3” 在饼图等图表中有用,可以使这个名字显示在图例(legend)中。\n itemName: 3\n}\n\n// 直角坐标系(grid/cartesian)特有的属性:\nencode: {\n // 把 “维度1”、“维度5”、“名为 score 的维度” 映射到 X 轴:\n x: [1, 5, 'score'],\n // 把“维度0”映射到 Y 轴。\n y: 0\n}\n\n// 单轴(singleAxis)特有的属性:\nencode: {\n single: 3\n}\n\n// 极坐标系(polar)特有的属性:\nencode: {\n radius: 3,\n angle: 2\n}\n\n// 地理坐标系(geo)特有的属性:\nencode: {\n lng: 3,\n lat: 2\n}\n\n// 对于一些没有坐标系的图表,例如饼图、漏斗图等,可以是:\nencode: {\n value: 3\n}\n</code></pre>\n<p>这是个更丰富的 <code class=\"codespan\">encode</code> 的<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=dataset-encode1&edit=1&reset=1\" target=\"_blank\">示例</a>:</p>\n<p>特殊地,在 <a href=\"#series-custom\">自定义系列(custom series)</a> 中,<code class=\"codespan\">encode</code> 中轴可以不指定或设置为 <code class=\"codespan\">null/undefined</code>,从而使系列免于受这个轴控制,也就是说,轴的范围(extent)不会受此系列数值的影响,轴被 <a href=\"#dataZoom\">dataZoom</a> 控制时也不会过滤掉这个系列:</p>\n<pre><code class=\"lang-js\">var option = {\n xAxis: {},\n yAxis: {},\n dataZoom: [{\n xAxisIndex: 0\n }, {\n yAxisIndex: 0\n }],\n serie
|
|
|
|
|
},
|
|
|
|
|
"seriesLayoutBy": {
|
|
|
|
|
"desc": "<p>当使用 <a href=\"#dataset\">dataset</a> 时,<code class=\"codespan\">seriesLayoutBy</code> 指定了 <code class=\"codespan\">dataset</code> 中用行还是列对应到系列上,也就是说,系列“排布”到 <code class=\"codespan\">dataset</code> 的行还是列上。可取值:</p>\n<ul>\n<li>'column':默认,<code class=\"codespan\">dataset</code> 的列对应于系列,从而 <code class=\"codespan\">dataset</code> 中每一列是一个维度(dimension)。</li>\n<li>'row':<code class=\"codespan\">dataset</code> 的行对应于系列,从而 <code class=\"codespan\">dataset</code> 中每一行是一个维度(dimension)。</li>\n</ul>\n<p>参见这个 <a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=dataset-series-layout-by&theme=lite\" target=\"_blank\">示例</a></p>\n"
|
|
|
|
|
},
|
|
|
|
|
"datasetIndex": {
|
|
|
|
|
"desc": "<p>如果 <a href=\"#series.data\">series.data</a> 没有指定,并且 <a href=\"#dataset\">dataset</a> 存在,那么就会使用 <a href=\"#dataset\">dataset</a>。<code class=\"codespan\">datasetIndex</code> 指定本系列使用那个 <a href=\"#dataset\">dataset</a>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data": {
|
|
|
|
|
"desc": "<p>系列中的数据内容数组。数组项通常为具体的数据项。</p>\n<p>注意,如果系列没有指定 <code class=\"codespan\">data</code>,并且 option 有 <a href=\"#dataset\">dataset</a>,那么默认使用第一个 <a href=\"#dataset\">dataset</a>。如果指定了 <code class=\"codespan\">data</code>,则不会再使用 <a href=\"#dataset\">dataset</a>。</p>\n<p>可以使用 <code class=\"codespan\">series.datasetIndex</code> 指定其他的 <a href=\"#dataset\">dataset</a>。</p>\n<p>通常来说,数据用一个二维数组表示。如下,每一列被称为一个『维度』。</p>\n<pre><code class=\"lang-js\">series: [{\n data: [\n // 维度X 维度Y 其他维度 ...\n [ 3.4, 4.5, 15, 43],\n [ 4.2, 2.3, 20, 91],\n [ 10.8, 9.5, 30, 18],\n [ 7.2, 8.8, 18, 57]\n ]\n}]\n</code></pre>\n<ul>\n<li>在 <a href=\"#grid\">直角坐标系 (grid)</a> 中『维度X』和『维度Y』会默认对应于 <a href=\"#xAxis\">xAxis</a> 和 <a href=\"#yAxis\">yAxis</a>。</li>\n<li>在 <a href=\"#polar\">极坐标系 (polar)</a> 中『维度X』和『维度Y』会默认对应于 <a href=\"#radiusAxis\">radiusAxis</a> 和 <a href=\"#anbleAxis\">angleAxis</a>。</li>\n<li>后面的其他维度是可选的,可以在别处被使用,例如:<ul>\n<li>在 <a href=\"#visualMap\">visualMap</a> 中可以将一个或多个维度映射到颜色,大小等多个图形属性上。</li>\n<li>在 <a href=\"#series.symbolSize\">series.symbolSize</a> 中可以使用回调函数,基于某个维度得到 symbolSize 值。</li>\n<li>使用 <a href=\"#tooltip.formatter\">tooltip.formatter</a> 或 <a href=\"#series.label.formatter\">series.label.formatter</a> 可以把其他维度的值展示出来。</li>\n</ul>\n</li>\n</ul>\n<p>特别地,当只有一个轴为类目轴(axis.type 为 <code class=\"codespan\">'category'</code>)的时候,数据可以简化用一个一维数组表示。例如:</p>\n<pre><code class=\"lang-js\">xAxis: {\n data: ['a', 'b', 'm', 'n']\n},\nseries: [{\n // 与 xAxis.data 一一对应。\n data: [23, 44, 55, 19]\n // 它其实是下面这种形式的简化:\n // data: [[0, 23], [1, 44], [2, 55], [3, 19]]\n}]\n</code></pre>\n<p><strong>『值』与 <a href=\"#xAxis.type\">轴类型</a> 的关系:</strong></p>\n<ul>\n<li><p>当某维度对应于数值轴(axis.type 为 <code class=\"codespan\">'value'</code> 或者 <code class=\"codespan\">'log'</code>)的时候:</p>\n<p> 其值可以为 <code class=\"codespan\">number</code>(例如 <code class=\"codespan\">12</code>)。(也可以兼容 <code class=\"codespan\">string</code> 形式的 number,例如 <code class=\"codespan\">'12'</code>)</p>\n</li>\n<li><p>当某维度对应于类目轴(axis.type 为 <code class=\"codespan\">'category'</code>)的时候:</p>\n<p> 其值须为类目的『序数』(从 <code class=\"codespan\">0</code> 开始)或者类目的『字符串值』。例如:</p>\n<pre><code class=\"lang-js\"> xAxis: {\n type: 'category',\n data: ['星期一', '星期二', '星期三', '星期四']\n },\n yAxis: {\n type: 'category',\n data: ['a', 'b', 'm', 'n', 'p', 'q']\n },\n series: [{\n data: [\n // xAxis yAxis\n [ 0, 0, 2 ], // 意思是此点位于 xAxis: '星期一', yAxis: 'a'。\n [ '星期四', 2, 1 ], // 意思是此点位于 xAxis: '星期四', yAxis: 'm'。\n [ 2, 'p', 2 ], // 意思是此点位于 xAxis: '星期三', yAxis: 'p'。\n [ 3, 3, 5 ]\n ]\n }]\n</code></pre>\n<p> 双类目轴的示例可以参考 <a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=scatter-punchCard\" target=\"_blank\">Gith
|
|
|
|
|
},
|
|
|
|
|
"data.name": {
|
|
|
|
|
"desc": "<p>数据项名称。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.value": {
|
|
|
|
|
"desc": "<p>单个数据项的数值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.label": {
|
|
|
|
|
"desc": "<p>单个数据的文本配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.position": {
|
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.distance": {
|
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rotate": {
|
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.offset": {
|
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.width": {
|
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.height": {
|
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.width": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.height": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "#000"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.label.rich.<style_name>.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.showAbove": {
|
|
|
|
|
"desc": "<p>是否显示在图形上方。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.labelLine.length2": {
|
|
|
|
|
"desc": "\n\n<p>视觉引导项第二段的长度。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "15",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"step": "1"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.smooth": {
|
|
|
|
|
"desc": "\n\n<p>是否平滑视觉引导线,默认不平滑,可以设置成 <code class=\"codespan\">true</code> 平滑显示,也可以设置为 0 到 1 的值,表示平滑程度。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.minTurnAngle": {
|
|
|
|
|
"desc": "<p>通过调整第二段线的长度,限制引导线两端之间最小的夹角,以防止过小的夹角导致显示不美观。</p>\n<p>可以设置为 0 - 180 度。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.lineStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": ""
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "0",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "0",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle": {
|
|
|
|
|
"desc": "<p>单个数据的图形样式设置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.decal(Object | 'none')": {
|
|
|
|
|
"desc": "<p>图形的贴花图案,在 <a href=\"#aria.enabled\">aria.enabled</a> 与 <a href=\"#aria.decal.show\">aria.decal.show</a> 都是 <code class=\"codespan\">true</code> 的情况下才生效。</p>\n<p>如果为 <code class=\"codespan\">'none'</code> 表示不使用贴花图案。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').symbol(string|string[]) = 'rect'": {
|
|
|
|
|
"desc": "<p>贴花的图案,如果是 <code class=\"codespan\">string[]</code> 表示循环使用数组中的图案。</p>\n<p>ECharts 提供的标记类型包括</p>\n<p><code class=\"codespan\">'circle'</code>, <code class=\"codespan\">'rect'</code>, <code class=\"codespan\">'roundRect'</code>, <code class=\"codespan\">'triangle'</code>, <code class=\"codespan\">'diamond'</code>, <code class=\"codespan\">'pin'</code>, <code class=\"codespan\">'arrow'</code>, <code class=\"codespan\">'none'</code></p>\n<p>可以通过 <code class=\"codespan\">'image://url'</code> 设置为图片,其中 URL 为图片的链接,或者 <code class=\"codespan\">dataURI</code>。</p>\n<p>URL 为图片链接例如:</p>\n<pre><code>'image://http://xxx.xxx.xxx/a/b.png'\n</code></pre><p>URL 为 <code class=\"codespan\">dataURI</code> 例如:</p>\n<pre><code>'image://data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7'\n</code></pre><p>可以通过 <code class=\"codespan\">'path://'</code> 将图标设置为任意的矢量路径。这种方式相比于使用图片的方式,不用担心因为缩放而产生锯齿或模糊,而且可以设置为任意颜色。路径图形会自适应调整为合适的大小。路径的格式参见 <a href=\"http://www.w3.org/TR/SVG/paths.html#PathData\" target=\"_blank\">SVG PathData</a>。可以从 Adobe Illustrator 等工具编辑导出。</p>\n<p>例如:</p>\n<pre><code>'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z'\n</code></pre>"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').symbolSize": {
|
|
|
|
|
"desc": "<p>取值范围:<code class=\"codespan\">0</code> 到 <code class=\"codespan\">1</code>,表示占图案区域的百分比。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').symbolKeepAspect": {
|
|
|
|
|
"desc": "<p>是否保持图案的长宽比。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').color": {
|
|
|
|
|
"desc": "<p>贴花图案的颜色,建议使用半透明色,这样能叠加在系列本身的颜色上。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').backgroundColor": {
|
|
|
|
|
"desc": "<p>贴花的背景色,将会覆盖在系列本身颜色之上,贴花图案之下。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').dashArrayX(number | number[] | (number | number[])[]) = 5": {
|
|
|
|
|
"desc": "<p>贴花图案的基本模式是在横向和纵向上分别以<code class=\"codespan\">图案 - 空白 - 图案 - 空白 - 图案 - 空白</code>的形式无限循环。通过设置每个图案和空白的长度,可以实现复杂的图案效果。</p>\n<p><code class=\"codespan\">dashArrayX</code> 控制了横向的图案模式。当其值为 <code class=\"codespan\">number</code> 或 <code class=\"codespan\">number[]</code> 类型时,与 <a href=\"https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray\" target=\"_blank\">SVG stroke-dasharray</a> 类似。</p>\n<ul>\n<li><p>如果是 <code class=\"codespan\">number</code> 类型,表示图案和空白分别是这个值。如 <code class=\"codespan\">5</code> 表示先显示宽度为 5 的图案,然后空 5 像素,再然后显示宽度为 5 的图案……</p>\n</li>\n<li><p>如果是 <code class=\"codespan\">number[]</code> 类型,则表示图案和空白依次为数组值的循环。如:<code class=\"codespan\">[5, 10, 2, 6]</code> 表示图案宽 5 像素,然后空 10 像素,然后图案宽 2 像素,然后空 6 像素,然后图案宽 5 像素……</p>\n</li>\n<li><p>如果是 <code class=\"codespan\">(number | number[])[]</code> 类型,表示每行的图案和空白依次为数组值的循环。如:<code class=\"codespan\">[10, [2, 5]]</code> 表示第一行以图案 10 像素空 10 像素循环,第二行以图案 2 像素空 5 像素循环,第三行以图案 10 像素空 10 像素循环……</p>\n</li>\n</ul>\n<p>可以结合以下的例子理解本接口:</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/aria-decal&edit=1&reset=1\" width=\"700\" height=\"300\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').dashArrayY(number | number[]) = 5": {
|
|
|
|
|
"desc": "<p>贴花图案的基本模式是在横向和纵向上分别以<code class=\"codespan\">图案 - 空白 - 图案 - 空白 - 图案 - 空白</code>的形式无限循环。通过设置每个图案和空白的长度,可以实现复杂的图案效果。</p>\n<p><code class=\"codespan\">dashArrayY</code> 控制了横向的图案模式。与 <a href=\"https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray\" target=\"_blank\">SVG stroke-dasharray</a> 类似。</p>\n<ul>\n<li><p>如果是 <code class=\"codespan\">number</code> 类型,表示图案和空白分别是这个值。如 <code class=\"codespan\">5</code> 表示先显示高度为 5 的图案,然后空 5 像素,再然后显示高度为 5 的图案……</p>\n</li>\n<li><p>如果是 <code class=\"codespan\">number[]</code> 类型,则表示图案和空白依次为数组值的循环。如:<code class=\"codespan\">[5, 10, 2, 6]</code> 表示图案高 5 像素,然后空 10 像素,然后图案高 2 像素,然后空 6 像素,然后图案高 5 像素……</p>\n</li>\n</ul>\n<p>可以结合以下的例子理解本接口:</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/aria-decal&edit=1&reset=1\" width=\"700\" height=\"300\"><iframe />\n\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').rotation": {
|
|
|
|
|
"desc": "<p>图案的整体旋转角度(弧度制),取值范围从 <code class=\"codespan\">-Math.PI</code> 到 <code class=\"codespan\">Math.PI</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').maxTileWidth": {
|
|
|
|
|
"desc": "<p>生成的图案在未重复之前的宽度上限。通常不需要设置该值,当你发现图案在重复的时候出现不连续的接缝时,可以尝试提高该值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.itemStyle.decal(Object | 'none').maxTileHeight": {
|
|
|
|
|
"desc": "<p>生成的图案在未重复之前的高度上限。通常不需要设置该值,当你发现图案在重复的时候出现不连续的接缝时,可以尝试提高该值。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis": {
|
|
|
|
|
"desc": "<p>单个数据的高亮状态配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.label": {
|
|
|
|
|
"desc": "<p>单个数据的文本配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.position": {
|
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.distance": {
|
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rotate": {
|
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.offset": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.width": {
|
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.height": {
|
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.label.rich": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.width": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.height": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.label.rich.<style_name>.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "1",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle": {
|
|
|
|
|
"desc": "<p>单个数据的图形样式设置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.emphasis.itemStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.emphasis.itemStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v5.0.0</code> 开始支持</p>\n</blockquote>\n<p>单个数据的淡出状态配置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label": {
|
|
|
|
|
"desc": "<p>单个数据的文本配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.blur.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.position": {
|
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.distance": {
|
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rotate": {
|
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.offset": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.width": {
|
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.height": {
|
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.blur.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.blur.label.rich": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.width": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.height": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.label.rich.<style_name>.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.itemStyle": {
|
|
|
|
|
"desc": "<p>单个数据的图形样式设置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.blur.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.blur.itemStyle.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.blur.itemStyle.opacity": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select": {
|
|
|
|
|
"desc": "<blockquote>\n<p>从 <code class=\"codespan\">v5.0.0</code> 开始支持</p>\n</blockquote>\n<p>单个数据的选中状态配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.select.label": {
|
|
|
|
|
"desc": "<p>单个数据的文本配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.select.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "false"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.position": {
|
|
|
|
|
"desc": "\n\n\n\n<p>标签的位置。</p>\n<ul>\n<li><p>可以通过内置的语义声明位置:</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> position: 'top'\n</code></pre>\n<p> 支持:<code class=\"codespan\">top</code> / <code class=\"codespan\">left</code> / <code class=\"codespan\">right</code> / <code class=\"codespan\">bottom</code> / <code class=\"codespan\">inside</code> / <code class=\"codespan\">insideLeft</code> / <code class=\"codespan\">insideRight</code> / <code class=\"codespan\">insideTop</code> / <code class=\"codespan\">insideBottom</code> / <code class=\"codespan\">insideTopLeft</code> / <code class=\"codespan\">insideBottomLeft</code> / <code class=\"codespan\">insideTopRight</code> / <code class=\"codespan\">insideBottomRight</code></p>\n</li>\n<li><p>也可以用一个数组表示相对的百分比或者绝对像素值表示标签相对于图形包围盒左上角的位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对的像素值\n position: [10, 10],\n // 相对的百分比\n position: ['50%', '50%']\n</code></pre>\n</li>\n</ul>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.distance": {
|
|
|
|
|
"desc": "\n\n<p>距离图形元素的距离。当 position 为字符描述值(如 <code class=\"codespan\">'top'</code>、<code class=\"codespan\">'insideRight'</code>)时候有效。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=doc-example/label-position\" target=\"_blank\">label position</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "5",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rotate": {
|
|
|
|
|
"desc": "\n\n<p>标签旋转。从 -90 度到 90 度。正值是逆时针。</p>\n<p>参见:<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-label-rotation\" target=\"_blank\">label rotation</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"min": "-90",
|
|
|
|
|
"max": "90",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.offset": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否对文字进行偏移。默认不偏移。例如:<code class=\"codespan\">[30, 40]</code> 表示文字在横向上偏移 <code class=\"codespan\">30</code>,纵向上偏移 <code class=\"codespan\">40</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"dims": "x,y",
|
|
|
|
|
"step": "0.5",
|
|
|
|
|
"separate": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.width": {
|
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.height": {
|
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.select.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.select.label.rich": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "null"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.fontStyle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.fontWeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.fontFamily": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.fontSize": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.align": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.verticalAlign": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "top,middle,bottom"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.lineHeight": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.backgroundColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#fff"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.borderRadius": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.padding": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.shadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.shadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.shadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.shadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.width": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.height": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n<p>如果设置为 <code class=\"codespan\">'inherit'</code>,则为视觉映射得到的颜色,如系列色。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.textBorderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.textShadowColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.textShadowBlur": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.textShadowOffsetX": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.label.rich.<style_name>.textShadowOffsetY": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.select.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "boolean"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.labelLine.lineStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"value": "1",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.labelLine.lineStyle.type": {
|
|
|
|
|
"desc": "\n\n<p>线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.labelLine.lineStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "1",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"min": "0",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.itemStyle": {
|
|
|
|
|
"desc": "<p>单个数据的图形样式设置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>柱条的颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"value": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边宽度,默认不描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "0",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>圆角半径,单位px,支持传入数组分别指定 4 个圆角半径。\n如:</p>\n<pre><code>borderRadius: 5, // 统一设置四个角的圆角大小\nborderRadius: [5, 5, 0, 0] //(顺时针左上,右上,右下,左下)\n</code></pre>",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT,RB,LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.select.itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.select.itemStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"clip": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n\n<blockquote>\n<p>从 <code class=\"codespan\">v4.4.0</code> 开始支持</p>\n</blockquote>\n<p>是否裁剪超出坐标系部分的图形,具体裁剪效果根据系列决定:</p>\n<ul>\n<li>散点图:忽略中心点超出坐标系的图形,但是不裁剪单个图形</li>\n<li>柱状图:裁掉完全超出的柱子,但是不会裁剪只超出部分的柱子</li>\n<li>折线图:裁掉所有超出坐标系的折线部分,拐点图形的逻辑按照散点图处理</li>\n<li>路径图:裁掉所有超出坐标系的部分</li>\n<li>K 线图:忽略整体都超出坐标系的图形,但是不裁剪单个图形</li>\n<li>自定义系列:裁掉所有超出坐标系的部分</li>\n</ul>\n<p>除了自定义系列,其它系列的默认值都为 true,及开启裁剪,如果你觉得不想要裁剪的话,可以设置成 false 关闭。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"zlevel": {
|
|
|
|
|
"desc": "<p>柱状图所有图形的 zlevel 值。</p>\n<p><code class=\"codespan\">zlevel</code>用于 Canvas 分层,不同<code class=\"codespan\">zlevel</code>值的图形会放置在不同的 Canvas 中,Canvas 分层是一种常见的优化手段。我们可以把一些图形变化频繁(例如有动画)的组件设置成一个单独的<code class=\"codespan\">zlevel</code>。需要注意的是过多的 Canvas 会引起内存开销的增大,在手机端上需要谨慎使用以防崩溃。</p>\n<p><code class=\"codespan\">zlevel</code> 大的 Canvas 会放在 <code class=\"codespan\">zlevel</code> 小的 Canvas 的上面。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"z": {
|
|
|
|
|
"desc": "<p>柱状图组件的所有图形的<code class=\"codespan\">z</code>值。控制图形的前后顺序。<code class=\"codespan\">z</code>值小的图形会被<code class=\"codespan\">z</code>值大的图形覆盖。</p>\n<p><code class=\"codespan\">z</code>相比<code class=\"codespan\">zlevel</code>优先级更低,而且不会创建新的 Canvas。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"silent": {
|
|
|
|
|
"desc": "\n\n<p>图形是否不响应和触发鼠标事件,默认为 false,即响应和触发鼠标事件。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"animation": {
|
|
|
|
|
"desc": "\n\n<p>是否开启动画。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true",
|
|
|
|
|
"clean": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"animationThreshold": {
|
|
|
|
|
"desc": "<p>是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"animationDuration": {
|
|
|
|
|
"desc": "\n\n<p>初始动画的时长,支持回调函数,可以通过每个数据返回不同的时长实现更戏剧的初始动画效果:</p>\n<pre><code class=\"lang-js\">animationDuration: function (idx) {\n // 越往后的数据时长越大\n return idx * 100;\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"default": "1000",
|
|
|
|
|
"step": "20",
|
|
|
|
|
"clean": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"animationEasing": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>初始动画的缓动效果。不同的缓动效果可以参考 <a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=line-easing\" target=\"_blank\">缓动示例</a>。</p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "linear,quadraticIn,quadraticOut,quadraticInOut,cubicIn,cubicOut,cubicInOut,quarticIn,quarticOut,quarticInOut,quinticIn,quinticOut,quinticInOut,sinusoidalIn,sinusoidalOut,sinusoidalInOut,exponentialIn,exponentialOut,exponentialInOut,circularIn,circularOut,circularInOut,elasticIn,elasticOut,elasticInOut,backIn,backOut,backInOut,bounceIn,bounceOut,bounceInOut",
|
|
|
|
|
"clean": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"animationDelay": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>初始动画的延迟,支持回调函数,可以通过每个数据返回不同的 delay 时间实现更戏剧的初始动画效果。</p>\n<p>如下示例:</p>\n<pre><code class=\"lang-js\">animationDelay: function (idx) {\n // 越往后的数据延迟越大\n return idx * 100;\n}\n</code></pre>\n<p>也可以看<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-animation-delay\" target=\"_blank\">该示例</a></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"animationDurationUpdate": {
|
|
|
|
|
"desc": "\n\n<p>数据更新动画的时长。</p>\n<p>支持回调函数,可以通过每个数据返回不同的时长实现更戏剧的更新动画效果:</p>\n<pre><code class=\"lang-js\">animationDurationUpdate: function (idx) {\n // 越往后的数据时长越大\n return idx * 100;\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"default": "1000",
|
|
|
|
|
"step": "20"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"animationEasingUpdate": {
|
|
|
|
|
"desc": "\n\n<p>数据更新动画的缓动效果。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "linear,quadraticIn,quadraticOut,quadraticInOut,cubicIn,cubicOut,cubicInOut,quarticIn,quarticOut,quarticInOut,quinticIn,quinticOut,quinticInOut,sinusoidalIn,sinusoidalOut,sinusoidalInOut,exponentialIn,exponentialOut,exponentialInOut,circularIn,circularOut,circularInOut,elasticIn,elasticOut,elasticInOut,backIn,backOut,backInOut,bounceIn,bounceOut,bounceInOut"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"animationDelayUpdate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>数据更新动画的延迟,支持回调函数,可以通过每个数据返回不同的 delay 时间实现更戏剧的更新动画效果。</p>\n<p>如下示例:</p>\n<pre><code class=\"lang-js\">animationDelayUpdate: function (idx) {\n // 越往后的数据延迟越大\n return idx * 100;\n}\n</code></pre>\n<p>也可以看<a href=\"http://localhost/incubator-echarts-website/next/examples/zh/editor.html?c=bar-animation-delay\" target=\"_blank\">该示例</a></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"tooltip": {
|
|
|
|
|
"desc": "<p>本系列特定的 tooltip 设定。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"tooltip.position": {
|
|
|
|
|
"desc": "<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>提示框浮层的位置,默认不设置时位置会跟随鼠标的位置。</p>\n<p>可选:</p>\n<ul>\n<li><p><code class=\"codespan\">Array</code></p>\n<p> 通过数组表示提示框浮层的位置,支持数字设置绝对位置,百分比设置相对位置。</p>\n<p> 示例:</p>\n<pre><code class=\"lang-js\"> // 绝对位置,相对于容器左侧 10px, 上侧 10 px\n position: [10, 10]\n // 相对位置,放置在容器正中间\n position: ['50%', '50%']\n</code></pre>\n</li>\n<li><p><code class=\"codespan\">Function</code></p>\n<p> 回调函数,格式如下:</p>\n<pre><code class=\"lang-js\"> (point: Array, params: Object|Array.<Object>, dom: HTMLDomElement, rect: Object, size: Object) => Array\n</code></pre>\n<p> <strong>参数:</strong><br>\n point: 鼠标位置,如 [20, 40]。<br>\n params: 同 formatter 的参数相同。<br>\n dom: tooltip 的 dom 对象。<br>\n rect: 只有鼠标在图形上时有效,是一个用<code class=\"codespan\">x</code>, <code class=\"codespan\">y</code>, <code class=\"codespan\">width</code>, <code class=\"codespan\">height</code>四个属性表达的图形包围盒。<br>\n size: 包括 dom 的尺寸和 echarts 容器的当前尺寸,例如:<code class=\"codespan\">{contentSize: [width, height], viewSize: [width, height]}</code>。<br></p>\n<p> <strong>返回值:</strong><br>\n 可以是一个表示 tooltip 位置的数组,数组值可以是绝对的像素值,也可以是相 百分比。<br>\n 也可以是一个对象,如:<code class=\"codespan\">{left: 10, top: 30}</code>,或者 <code class=\"codespan\">{right: '20%', bottom: 40}</code>。<br></p>\n<p> 如下示例:</p>\n<pre><code class=\"lang-js\"> position: function (point, params, dom, rect, size) {\n // 固定在顶部\n return [point[0], '10%'];\n }\n</code></pre>\n<p> 或者:</p>\n<pre><code class=\"lang-js\"> position: function (pos, params, dom, rect, size) {\n // 鼠标在左侧时 tooltip 显示到右侧,鼠标在右侧时 tooltip 显示到左侧。\n var obj = {top: 60};\n obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;\n return obj;\n }\n</code></pre>\n</li>\n</ul>\n<ul>\n<li><p><code class=\"codespan\">'inside'</code></p>\n<p> 鼠标所在图形的内部中心位置,只在 <a href=\"#tooltip.trigger\">trigger</a> 为<code class=\"codespan\">'item'</code>的时候有效。</p>\n</li>\n<li><p><code class=\"codespan\">'top'</code></p>\n<p> 鼠标所在图形上侧,只在 <a href=\"#tooltip.trigger\">trigger</a> 为<code class=\"codespan\">'item'</code>的时候有效。</p>\n</li>\n<li><p><code class=\"codespan\">'left'</code></p>\n<p> 鼠标所在图形左侧,只在 <a href=\"#tooltip.trigger\">trigger</a> 为<code class=\"codespan\">'item'</code>的时候有效。</p>\n</li>\n<li><p><code class=\"codespan\">'right'</code></p>\n<p> 鼠标所在图形右侧,只在 <a href=\"#tooltip.trigger\">trigger</a> 为<code class=\"codespan\">'item'</code>的时候有效。</p>\n</li>\n<li><p><code class=\"codespan\">'bottom'</code></p>\n<p> 鼠标所在图形底侧,只在 <a href=\"#tooltip.trigger\">trigger</a> 为<code class=\"codespan\">'item'</code>的时候有效。</p>\n</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"tooltip.formatter": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>提示框浮层内容格式器,支持字符串模板和回调函数两种形式。</p>\n<p><strong>1, 字符串模板</strong></p>\n<p>模板变量有 <code class=\"codespan\">{a}</code>, <code class=\"codespan\">{b}</code>,<code class=\"codespan\">{c}</code>,<code class=\"codespan\">{d}</code>,<code class=\"codespan\">{e}</code>,分别表示系列名,数据名,数据值等。\n在 <a href=\"#tooltip.trigger\">trigger</a> 为 <code class=\"codespan\">'axis'</code> 的时候,会有多个系列的数据,此时可以通过 <code class=\"codespan\">{a0}</code>, <code class=\"codespan\">{a1}</code>, <code class=\"codespan\">{a2}</code> 这种后面加索引的方式表示系列的索引。\n不同图表类型下的 <code class=\"codespan\">{a}</code>,<code class=\"codespan\">{b}</code>,<code class=\"codespan\">{c}</code>,<code class=\"codespan\">{d}</code> 含义不一样。\n其中变量<code class=\"codespan\">{a}</code>, <code class=\"codespan\">{b}</code>, <code class=\"codespan\">{c}</code>, <code class=\"codespan\">{d}</code>在不同图表类型下代表数据含义为:</p>\n<ul>\n<li><p>折线(区域)图、柱状(条形)图、K线图 : <code class=\"codespan\">{a}</code>(系列名称),<code class=\"codespan\">{b}</code>(类目值),<code class=\"codespan\">{c}</code>(数值), <code class=\"codespan\">{d}</code>(无)</p>\n</li>\n<li><p>散点图(气泡)图 : <code class=\"codespan\">{a}</code>(系列名称),<code class=\"codespan\">{b}</code>(数据名称),<code class=\"codespan\">{c}</code>(数值数组), <code class=\"codespan\">{d}</code>(无)</p>\n</li>\n<li><p>地图 : <code class=\"codespan\">{a}</code>(系列名称),<code class=\"codespan\">{b}</code>(区域名称),<code class=\"codespan\">{c}</code>(合并数值), <code class=\"codespan\">{d}</code>(无)</p>\n</li>\n<li><p>饼图、仪表盘、漏斗图: <code class=\"codespan\">{a}</code>(系列名称),<code class=\"codespan\">{b}</code>(数据项名称),<code class=\"codespan\">{c}</code>(数值), <code class=\"codespan\">{d}</code>(百分比)</p>\n</li>\n</ul>\n<p>更多其它图表模板变量的含义可以见相应的图表的 label.formatter 配置项。</p>\n<p><strong>示例:</strong></p>\n<pre><code class=\"lang-js\">formatter: '{b0}: {c0}<br />{b1}: {c1}'\n</code></pre>\n<p><strong>2, 回调函数</strong></p>\n<p>回调函数格式:</p>\n<pre><code class=\"lang-js\">(params: Object|Array, ticket: string, callback: (ticket: string, html: string)) => string\n</code></pre>\n<p>第一个参数 <code class=\"codespan\">params</code> 是 formatter 需要的数据集。格式如下:</p>\n<pre><code class=\"lang-js\">{\n componentType: 'series',\n // 系列类型\n seriesType: string,\n // 系列在传入的 option.series 中的 index\n seriesIndex: number,\n // 系列名称\n seriesName: string,\n // 数据名,类目名\n name: string,\n // 数据在传入的 data 数组中的 index\n dataIndex: number,\n // 传入的原始数据项\n data: Object,\n // 传入的数据值。在多数系列下它和 data 相同。在一些系列下是 data 中的分量(如 map、radar 中)\n value: number|Array|Object,\n // 坐标轴 encode 映射信息,\n // key 为坐标轴(如 'x' 'y' 'radius' 'angle' 等)\n // value 必然为数组,不会为 null/undefied,表示 dimension index 。\n // 其内容如:\n // {\n // x: [2] // dimension index 为 2 的数据映射到 x 轴\n // y: [0] // dimension index 为 0 的数据映射到 y 轴\n // }\n encode: Object,\n // 维度名列表\n dimensionNames: Array<String>,\n // 数<>
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"tooltip.backgroundColor": {
|
|
|
|
|
"desc": "<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>提示框浮层的背景颜色。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"tooltip.borderColor": {
|
|
|
|
|
"desc": "\n\n\n\n\n<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>提示框浮层的边框颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#333"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.borderWidth": {
|
|
|
|
|
"desc": "\n\n\n\n\n<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>提示框浮层的边框宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.padding": {
|
|
|
|
|
"desc": "\n\n\n\n\n<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n\n\n<p>提示框浮层内边距,单位px,默认各方向内边距为5,接受数组分别设定上右下左边距。</p>\n<p>使用示例:</p>\n<pre><code class=\"lang-js\">// 设置内边距为 5\npadding: 5\n// 设置上下的内边距为 5,左右的内边距为 10\npadding: [5, 10]\n// 分别设置四个方向的内边距\npadding: [\n 5, // 上\n 10, // 右\n 5, // 下\n 10, // 左\n]\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "T,R,B,L"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle": {
|
|
|
|
|
"desc": "<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>提示框浮层的文本样式。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>文字的颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "'#fff'"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.fontStyle": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,italic,oblique"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.fontWeight": {
|
|
|
|
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "normal",
|
|
|
|
|
"options": "normal,bold,bolder,lighter"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.fontFamily": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "sans-serif",
|
|
|
|
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "14",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.lineHeight": {
|
|
|
|
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"default": "12"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.width": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文本显示宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "100",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.height": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文本显示高度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "50",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"max": "500",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.textBorderColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"tooltip.textStyle.overflow": {
|
|
|
|
|
"desc": "\n\n<p>文字超出宽度是否截断或者换行。配置<code class=\"codespan\">width</code>时有效</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 截断,并在末尾显示<code class=\"codespan\">ellipsis</code>配置的文本,默认为<code class=\"codespan\">...</code></li>\n<li><code class=\"codespan\">'break'</code> 换行</li>\n<li><code class=\"codespan\">'breakAll'</code> 换行,跟<code class=\"codespan\">'break'</code>不同的是,在英语等拉丁文中,<code class=\"codespan\">'breakAll'</code>还会强制单词内换行</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "truncate,break,breakAll"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"tooltip.textStyle.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"tooltip.extraCssText": {
|
|
|
|
|
"desc": "<p><br></p>\n<blockquote>\n<p><strong>注意:</strong><code class=\"codespan\">series.tooltip</code> 仅在 <a href=\"#tooltip.trigger\">tooltip.trigger</a> 为 <code class=\"codespan\">'item'</code> 时有效。<br></p>\n</blockquote>\n<p>额外附加到浮层的 css 样式。如下为浮层添加阴影的示例:</p>\n<pre><code class=\"lang-js\">extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'\n</code></pre>\n"
|
|
|
|
|
}
|
|
|
|
|
}
|