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"
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
},
|
|
|
|
|
"center": {
|
|
|
|
|
"desc": "\n\n<p>旭日图的中心(圆心)坐标,数组的第一项是横坐标,第二项是纵坐标。</p>\n<p>支持设置成百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。</p>\n<p><strong>使用示例:</strong></p>\n<pre><code>// 设置成绝对的像素值\ncenter: [400, 300]\n// 设置成相对的百分比\ncenter: ['50%', '50%']\n</code></pre>",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "percentvector",
|
|
|
|
|
"dims": "x,y"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"radius": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>旭日图的半径。可以为如下类型:</p>\n<ul>\n<li><code class=\"codespan\">number</code>:直接指定外半径值。</li>\n<li><code class=\"codespan\">string</code>:例如,<code class=\"codespan\">'20%'</code>,表示外半径为可视区尺寸(容器高宽中较小一项)的 20% 长度。</li>\n</ul>\n<ul>\n<li><code class=\"codespan\">Array.<number|string></code>:数组的第一项是内半径,第二项是外半径。每一项遵从上述 <code class=\"codespan\">number</code> <code class=\"codespan\">string</code> 的描述。</li>\n</ul>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "percentvector",
|
|
|
|
|
"dims": "inner,outer",
|
|
|
|
|
"default": "0%, 75%"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data": {
|
|
|
|
|
"desc": "<p><a href=\"#series-sunburst.data\">series-sunburst.data</a> 的数据格式是树状的,例如:</p>\n<pre><code class=\"lang-js\">[{\n name: 'parent1',\n value: 10, // 可以不写父元素的 value,则为子元素之和;\n // 如果写了,并且大于子元素之和,可以用来表示还有其他子元素未显示\n children: [{\n value: 5,\n name: 'child1',\n children: [{\n value: 2,\n name: 'grandchild1',\n itemStyle: {\n // 每个数据可以有自己的样式,覆盖 series.itemStyle 和 level.itemStyle\n },\n label: {\n // 标签样式,同上\n }\n }]\n }, {\n value: 3,\n name: 'child2'\n }],\n itemStyle: {\n // parent1 的图形样式,不会被后代继承\n },\n label: {\n // parent1 的标签样式,不会被后代继承\n }\n}, {\n name: 'parent2',\n value: 4\n}]\n</code></pre>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.value": {
|
|
|
|
|
"desc": "<p>数据值,如果包含 children,则可以不写 value 值。这时,将使用子元素的 value 之和作为父元素的 value。如果 value 大于子元素之和,可以用来表示还有其他子元素未显示。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.name": {
|
|
|
|
|
"desc": "<p>显示在扇形块中的描述文字。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.link": {
|
|
|
|
|
"desc": "<p>点击此节点可跳转的超链接。须 <a href=\"#series-treemap.nodeClick\">series-sunburst.nodeClick</a> 值为 <code class=\"codespan\">'link'</code> 时才生效。</p>\n<p>参见 <a href=\"#series-sunburst.data.target\">series-sunburst.data.target</a>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.target": {
|
|
|
|
|
"desc": "<p>意义同 HTML <code class=\"codespan\"><a></code> 标签中的 <code class=\"codespan\">target</code>,参见 <a href=\"#series-sunburst.data.link\">series-sunburst.data.link</a>。可选值为:<code class=\"codespan\">'blank'</code> 或 <code class=\"codespan\">'self'</code>。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"data.label": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"data.label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.align": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.minAngle": {
|
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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.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
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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
|
|
|
|
},
|
|
|
|
|
"data.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
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.textShadowOffsetY": {
|
|
|
|
|
"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"
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"data.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"
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
},
|
|
|
|
|
"data.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.label.rich.<style_name>.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data.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
|
|
|
|
"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": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"type": "number",
|
|
|
|
|
"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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"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",
|
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
|
|
|
|
"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<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"data.itemStyle.borderType": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <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
|
|
|
|
"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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"label": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n<p>如果是 <code class=\"codespan\">number</code> 类型,则表示标签的旋转角,从 -90 度到 90 度,正值是逆时针。</p>\n<p>除此之外,还可以是字符串 <code class=\"codespan\">'radial'</code> 表示径向旋转、<code class=\"codespan\">'tangential'</code> 表示切向旋转。</p>\n<p>默认径向旋转,如果不需要文字旋转,可以将其设为 <code class=\"codespan\">0</code>。</p>\n<p>下面的例子展示了不同的 <code class=\"codespan\">rotate</code> 设置方法:</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=sunburst-label-rotate&edit=1&reset=1\" width=\"700\" height=\"400\"><iframe />\n\n\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.align": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<iframe data-src=\"http://localhost/incubator-echarts-website/next/examples/zh/view.html?c=doc-example/sunburst-label-align&edit=1&reset=1\" width=\"700\" height=\"400\"><iframe />\n\n\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.minAngle": {
|
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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.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.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"
|
|
|
|
|
},
|
|
|
|
|
"labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"labelLine.showAbove": {
|
|
|
|
|
"desc": "<p>是否显示在图形上方。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"labelLine.length2": {
|
|
|
|
|
"desc": "\n\n<p>视觉引导项第二段的长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "15",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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
|
|
|
|
"itemStyle": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"itemStyle.opacity": {
|
|
|
|
|
"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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"nodeClick": {
|
|
|
|
|
"desc": "\n\n<p>点击节点后的行为。可取值为:</p>\n<ul>\n<li><code class=\"codespan\">false</code>:节点点击无反应。</li>\n<li><code class=\"codespan\">'rootToNode'</code>:点击节点后以该节点为根结点。</li>\n<li><code class=\"codespan\">'link'</code>:如果节点数据中有 <a href=\"#series-sunburst.data.link\">link</a> 点击节点后会进行超链接跳转。</li>\n</ul>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "rootToNode",
|
|
|
|
|
"options": "rootToNode,link"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"sort": {
|
|
|
|
|
"desc": "\n\n<p>扇形块根据数据 <a href=\"#series-sunburst.data.value\"><code class=\"codespan\">value</code></a> 的排序方式,如果未指定 <code class=\"codespan\">value</code>,则其值为子元素 <code class=\"codespan\">value</code> 之和。默认值 <code class=\"codespan\">'desc'</code> 表示降序排序;还可以设置为 <code class=\"codespan\">'asc'</code> 表示升序排序;<code class=\"codespan\">null</code> 表示不排序,使用原始数据的顺序;或者用回调函数进行排列:</p>\n<pre><code class=\"lang-js\">function(nodeA, nodeB) {\n return nodeA.getValue() - nodeB.getValue();\n}\n</code></pre>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "desc",
|
|
|
|
|
"options": "desc,asc"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"renderLabelForZeroData": {
|
|
|
|
|
"desc": "\n\n<p>如果数据没有 <code class=\"codespan\">name</code>,是否需要渲染文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>高亮状态配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"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<ul>\n<li><code class=\"codespan\">'ancestor'</code> 聚焦所有祖先节点</li>\n<li><code class=\"codespan\">'descendant'</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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"emphasis.label": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"emphasis.label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.align": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.minAngle": {
|
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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.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.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"emphasis.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.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
|
|
|
|
"emphasis.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
|
|
|
|
"emphasis.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
|
|
|
|
"emphasis.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
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"emphasis.itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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-12-17 19:56:53 +08:00
|
|
|
|
"blur": {
|
|
|
|
|
"desc": "<p>淡出状态配置。开启 <a href=\"#series-sunburst.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><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.rotate": {
|
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.align": {
|
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.label.minAngle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
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": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
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.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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"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.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<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"blur.itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"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\">'solid'</code>, <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.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-sunburst.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><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.rotate": {
|
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.align": {
|
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.minAngle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
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.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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"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.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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"select.itemStyle": {
|
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"select.itemStyle.borderType": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <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
|
|
|
|
"select.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
|
|
|
|
"select.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
|
|
|
|
"select.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
|
|
|
|
"select.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
|
|
|
|
"select.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
|
|
|
|
"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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "false,true,single,multiple"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"levels": {
|
|
|
|
|
"desc": "<p><strong>多层配置</strong></p>\n<p>旭日图是一种有层次的结构,为了方便同一层样式的配置,我们提供了 levels 配置项。它是一个数组,其中的第 0 项表示数据下钻后返回上级的图形,其后的每一项分别表示从圆心向外层的层级。</p>\n<p>例如,假设我们没有数据下钻功能,并且希望将最内层的扇形块的颜色设为红色,文字设为蓝色,可以这样设置:</p>\n<pre><code class=\"lang-js\">series: {\n // ...\n levels: [\n {\n // 留给数据下钻点的空白配置\n },\n {\n // 最靠内测的第一层\n itemStyle: {\n color: 'red'\n },\n label: {\n color: 'blue'\n }\n },\n {\n // 第二层 ...\n }\n ]\n}\n</code></pre>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.label": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"levels.label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.align": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.minAngle": {
|
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.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"
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.label.rich.<style_name>.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.label.rich.<style_name>.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.itemStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>高亮状态配置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rotate": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.align": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.minAngle": {
|
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.textShadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.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"
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.fontSize": {
|
|
|
|
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "12",
|
|
|
|
|
"min": "1",
|
|
|
|
|
"step": "1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.borderRadius": {
|
|
|
|
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "vector",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"dims": "LT,RT, RB, LB"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.shadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.textBorderWidth": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.textShadowColor": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": "#000"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.textShadowBlur": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.label.rich.<style_name>.textShadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.emphasis.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.emphasis.itemStyle": {
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.color": {
|
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.borderColor": {
|
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.borderWidth": {
|
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.borderType": {
|
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <code class=\"codespan\">'dashed'</code>, <code class=\"codespan\">'dotted'</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.emphasis.itemStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur": {
|
|
|
|
|
"desc": "<p>淡出状态配置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.label": {
|
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.label.rotate": {
|
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.label.align": {
|
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.label.minAngle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.blur.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.blur.itemStyle": {
|
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.blur.itemStyle.borderType": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.select": {
|
|
|
|
|
"desc": "<p>选中状态配置。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.label": {
|
|
|
|
|
"desc": "<p><code class=\"codespan\">label</code> 描述了每个扇形块中,文本标签的样式。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.label\">series.data.label</a> > <a href=\"#series-sunburst.levels.label\">series.levels.label</a> > <a href=\"#series-sunburst.label\">series.label</a>。</strong></p>\n<p>图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。</p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.label.rotate": {
|
|
|
|
|
"desc": "\n\n\n<p>同 <a href=\"#sunburst.label.rotate\">label.rotate</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "radial,tangential",
|
|
|
|
|
"default": "radial"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.label.align": {
|
|
|
|
|
"desc": "\n\n<p>文字对齐方式,可取值为:<code class=\"codespan\">'left'</code>、 <code class=\"codespan\">'center'</code>、 <code class=\"codespan\">'right'</code>。注意,<code class=\"codespan\">'left'</code> 是指靠近内圈,而 <code class=\"codespan\">'right'</code> 是指靠近外圈。</p>\n<p>同 <a href=\"#sunburst.label.align\">label.align</a></p>\n",
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"options": "left,center,right",
|
|
|
|
|
"default": "center"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.label.minAngle": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>当某个扇形块的角度小于该值(角度制)时,扇形块对应的文字不显示。该值用以隐藏过小扇形块中的文字。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "angle",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "1",
|
|
|
|
|
"max": "360"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.label.show": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>是否显示标签。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.label.ellipsis": {
|
|
|
|
|
"desc": "<p>在<code class=\"codespan\">overflow</code>配置为<code class=\"codespan\">'truncate'</code>的时候,可以通过该属性配置末尾显示的文本。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.select.label.lineOverflow": {
|
|
|
|
|
"desc": "<p>文本超出高度部分是否截断,配置<code class=\"codespan\">height</code>时有效。</p>\n<ul>\n<li><code class=\"codespan\">'truncate'</code> 在文本行数超出高度部分截断。</li>\n</ul>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.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
|
|
|
|
"levels.select.labelLine": {
|
|
|
|
|
"desc": "<p>标签的视觉引导线配置。</p>\n"
|
|
|
|
|
},
|
|
|
|
|
"levels.select.labelLine.show": {
|
|
|
|
|
"desc": "\n\n<p>是否显示视觉引导线。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.labelLine.lineStyle.width": {
|
|
|
|
|
"desc": "\n\n<p>线宽。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "enum",
|
|
|
|
|
"default": "solid",
|
|
|
|
|
"options": "solid,dashed,dotted"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.labelLine.lineStyle.shadowColor": {
|
|
|
|
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.labelLine.lineStyle.shadowOffsetX": {
|
|
|
|
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.labelLine.lineStyle.shadowOffsetY": {
|
|
|
|
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.labelLine.lineStyle.opacity": {
|
|
|
|
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"max": "1",
|
|
|
|
|
"step": "0.01"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"levels.select.itemStyle": {
|
|
|
|
|
"desc": "<p>旭日图扇形块的样式。</p>\n<p>可以在 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 定义所有扇形块的样式,也可以在 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> 定义每一层扇形块的样式,还可以在 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> 定义每个扇形块单独的样式,这三者的优先级从低到高。也就是说,如果定义了 <a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a>,将会覆盖 <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a> 和 <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a>。</p>\n<p><strong>优先级:<a href=\"#series-sunburst.data.itemStyle\">series.data.itemStyle</a> > <a href=\"#series-sunburst.levels.itemStyle\">series.levels.itemStyle</a> > <a href=\"#series-sunburst.itemStyle\">series.itemStyle</a>。</strong></p>\n"
|
2020-11-01 00:26:47 +08:00
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.itemStyle.color": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的颜色。 默认从全局调色盘 <a href=\"#color\">option.color</a> 获取颜色 </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-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.itemStyle.borderColor": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>图形的描边颜色。支持的颜色格式同 <code class=\"codespan\">color</code>,不支持回调函数。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "color"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.itemStyle.borderWidth": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>描边线宽。为 0 时无描边。</p>\n",
|
|
|
|
|
"uiControl": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"value": "1",
|
|
|
|
|
"min": "0",
|
|
|
|
|
"step": "0.5"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-12-17 19:56:53 +08:00
|
|
|
|
"levels.select.itemStyle.borderType": {
|
2020-11-01 00:26:47 +08:00
|
|
|
|
"desc": "\n\n<p>柱条的描边类型,默认为实线,支持 <code class=\"codespan\">'solid'</code>, <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
|
|
|
|
"levels.select.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
|
|
|
|
"levels.select.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
|
|
|
|
"levels.select.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
|
|
|
|
"levels.select.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
|
|
|
|
"levels.select.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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
|
}
|