@amaster.ai/pi-lark 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/pi-lark",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "Pi extension for Lark/Feishu workspace — calendar, docs, drive, sheets, tasks, mail and more via lark-cli.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -56,12 +56,12 @@
56
56
  }
57
57
  },
58
58
  "devDependencies": {
59
- "@earendil-works/pi-coding-agent": "1.0.4",
60
- "typebox": "1.3.7",
59
+ "@earendil-works/pi-coding-agent": "1.2.0",
60
+ "typebox": "1.3.27",
61
61
  "vitest": "^4.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@amaster.ai/pi-shared": "0.1.24"
64
+ "@amaster.ai/pi-shared": "0.1.26"
65
65
  },
66
66
  "scripts": {
67
67
  "fetch-skills": "node scripts/fetch-skills.mjs",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lark-apps
3
3
  version: 1.0.0
4
- description: "妙搭(Spark/Miaoda)应用开发与托管:应用创建、本地全栈开发、云端生成迭代、创意设计(UI mockup / 可交互原型 / 线框图 / 落地页 / 仪表盘 / 幻灯片 deck / 视觉探索)、AI相关能力和飞书平台能力或者其他外部能力集成、日志/Trace/监控指标/PV/UV 查询、环境变量管理、应用协作者与协作权限设置、应用角色与成员管理、自动化触发器(定时/记录变更/Webhook/飞书审批)。当用户要开发/新建一个系统·工具·平台·应用,或要本地开发 / 云端开发 / 修改 / 部署 / 发布 / 上线 / 拿可分享链接,或用 HTML 做页面·网站·部署到妙搭,或要设计 / design / mockup / prototype / wireframe / 做 PPT / deck / 视觉探索,或提到妙搭/Spark/Miaoda(应用运行时域名形如 *.aiforce.cloud)、应用数据库、应用文件存储、开放 API Key、可见范围、应用协作者/开发权限、应用角色/角色成员、线上日志、接口请求量、错误量、延迟、访问量、环境变量、给妙搭应用配自动化任务/定时触发/审批通过后自动触发时使用。不负责普通云盘文件上传(lark-drive)、飞书文档编辑(lark-doc)、原生幻灯片创建(lark-slides)。"
4
+ description: "妙搭(Spark/Miaoda)应用开发与托管:应用创建、本地全栈开发、云端生成迭代、创意设计(UI mockup / 可交互原型 / 线框图 / 落地页 / 仪表盘 / 幻灯片 deck / 视觉探索)、AI相关能力和飞书平台能力或者其他外部能力集成、日志/Trace/监控指标/PV/UV 查询、环境变量管理、应用协作者与协作权限设置、应用角色与成员管理、自动化触发器(定时/记录变更/Webhook/飞书审批)。当用户要开发/新建一个系统·工具·平台·应用,或要本地开发 / 云端开发 / 修改 / 部署 / 发布 / 上线 / 拿可分享链接,或用 HTML 做页面·网站·部署到妙搭,或要设计 / design / mockup / prototype / wireframe / 做 PPT / deck / 视觉探索,或提到妙搭/Spark/Miaoda 应用(链接形如 `/app/app_xxx` 或 `/page/<token>`,运行时域名形如 *.aiforce.cloud)、应用数据库、应用文件存储、开放 API Key、可见范围、应用协作者/开发权限、应用角色/角色成员、线上日志、接口请求量、错误量、延迟、访问量、环境变量、给妙搭应用配自动化任务/定时触发/审批通过后自动触发时使用。不负责普通云盘文件上传(lark-drive)、飞书文档编辑(lark-doc)、原生幻灯片创建(lark-slides)。"
5
5
  metadata:
6
6
  requires:
7
7
  bins: ["lark-cli"]
@@ -35,7 +35,7 @@ lark-cli auth login --domain apps
35
35
  | HTML 应用 / 创意模式 — 写 HTML 页面/网站、静态页、PPT/deck、落地页、仪表盘、UI mockup、原型、线框图、视觉探索 | 加载 [`creative-design/creative-design.md`](creative-design/creative-design.md)(含完整开发与发布流程) | [`creative-design/creative-design.md`](creative-design/creative-design.md) |
36
36
  | 旧版存量 HTML 应用(无 Git 管理)继续上传已有静态产物 | `+html-publish`(仅兼容旧链路;新建 html / 创意模式 / creative-design 产物不得使用) | [`lark-apps-html-publish.md`](references/lark-apps-html-publish.md) |
37
37
  | 开发已有应用 / 初始化本地仓库(开发方式已定为本地后;先解析 app_id,勿 `+create` 新建) | `+init`(或手动 `+git-credential-init` + 原生 git)。**执行前必读** [`lark-apps-local-dev.md`](references/lark-apps-local-dev.md),含端到端流程和领域规则 | [`lark-apps-init.md`](references/lark-apps-init.md), [`lark-apps-git-credential.md`](references/lark-apps-git-credential.md) |
38
- | 只要一份源码快照、不做本地开发;或要取**别人分享给你的**应用源码(你对其仓库无权限) | `+export`(下载 zip;不配 git 凭证、不建工作区)。要继续开发用 `+init` 而非本命令 | [`lark-apps-export.md`](references/lark-apps-export.md) |
38
+ | 阅读 / 分析 / 总结一个妙搭应用的内容(任意应用模式,含创意模式应用的 `/page/<token>` 链接);只要一份源码快照、不做本地开发;或要取**别人分享给你的**应用源码(你对其仓库无权限) | `+export`(下载 zip 后解压读源码;不配 git 凭证、不建工作区)。创意模式应用的 `/page/` 链接直接传 `--meta-token <token>`,不必先 `+get` 换 app_id。要继续开发用 `+init` 而非本命令 | [`lark-apps-export.md`](references/lark-apps-export.md) |
39
39
  | 本地开发时 `.env.local` 损坏/丢失,重新拉取启动期环境变量 | `+env-pull` | [`lark-apps-env-pull.md`](references/lark-apps-env-pull.md) |
40
40
  | 管理应用环境变量(查看/设置/删除) | `+env-list`, `+env-set`, `+env-delete` | [`lark-apps-env.md`](references/lark-apps-env.md) |
41
41
  | 查线上日志、Trace、请求数、错误率、延迟、CPU、memory、PV/UV/访问量 | `+log-list`, `+log-get`, `+trace-list`, `+trace-get`, `+metric-list`, `+analytics-list` | [`lark-apps-observability.md`](references/lark-apps-observability.md) |
@@ -120,7 +120,7 @@ lark-cli apps +member-settings-set --app-id <app_id> --external-access disabled
120
120
  - 开发态链接 `https://miaoda.feishu.cn/app/{app_id}`(full_stack / frontend 应用):进应用编辑/开发态、管理与继续开发应用的入口,也是 frontend 升级为 full_stack 的入口(云端会话)。创意模式(html)应用开发态和发布态是同一个链接,无需额外提供开发态链接。
121
121
  - 发布态链接来源:`+release-get` 轮询 `finished` 给 `online_url` / `failed` 给 `error_logs`(html / frontend / full_stack 统一走 `+release-get`)。
122
122
  - html 应用的主链路是创意模式开发方式:按 [`lark-apps-local-dev.md`](references/lark-apps-local-dev.md) 初始化仓库、在仓库内产出 HTML 及关联文件,并通过 git commit / git push / `+release-create` / `+release-get` 发布部署。任何 git 操作(clone / pull / push)报错时,先执行 `lark-cli apps +git-credential-init --app-id <app_id> --as user` 刷新本地 Git 凭证,再重试原 git 命令。如果刷新凭证也失败,**停止并向用户报告**:原始 git 错误、凭证刷新失败原因,以及是否可能是当前环境(操作系统、沙箱)限制导致(如 macOS Keychain 在沙箱中不可用、Linux 加密文件目录不可写等)。不要改走 `+html-publish`,也不要把 `+html-publish` 当作本地开发链路的 fallback。
123
- - 创意模式(html)应用的链接格式为 `https://{租户域名}/page/{meta_token}`,**开发态和发布态是同一个链接**(区别于 full_stack 应用两者分开)。此链接形似飞书文档链接。`+get --app-id <meta_token>` 可获取应用信息(含 `app_id`),`+get --app-id <app_id>` 可获取 `meta_token`。看到 `/page/xxx` 链接时,它是妙搭创意模式应用,不要当成飞书文档跳过。
123
+ - 创意模式(html)应用的链接格式为 `https://{租户域名}/page/{meta_token}`,**开发态和发布态是同一个链接**(区别于 full_stack 应用两者分开)。此链接形似飞书文档链接。`+get --app-id <meta_token>` 可获取应用信息(含 `app_id`),`+get --app-id <app_id>` 可获取 `meta_token`。看到 `/page/xxx` 链接时,它是妙搭创意模式应用,不要当成飞书文档跳过;用户要看懂 / 总结这个应用的内容时,直接 `+export --meta-token <token>` 导出源码阅读。
124
124
 
125
125
  ## 平台资源与应用源码边界
126
126
 
@@ -138,7 +138,7 @@ lark-cli apps +member-settings-set --app-id <app_id> --external-access disabled
138
138
 
139
139
  `app_id` 必须是妙搭应用 ID(`app_` 开头)。`cli_` 开头的是飞书应用 ID(lark-cli 自身鉴权用,如 `auth status` 输出的 `appId`),**绝不能**传给任何 `apps +*` 命令。
140
140
 
141
- 如果你拿到的是 `https://{租户域名}/page/<meta_token>` 这类链接里的 meta_token — 这是创意模式应用的 **meta_token**(链接形似飞书文档),先用 `+get` 解析出 `app_id`。如果拿到的不是链接、也不是 `app_` 开头,可能是裸 meta_token,同样先用 `+get --app-id <token>` 尝试获取应用信息,能正常返回则说明是 meta_token:
141
+ 如果你拿到的是 `https://{租户域名}/page/<meta_token>` 这类链接里的 meta_token — 这是创意模式应用的 **meta_token**(链接形似飞书文档)。只为阅读 / 导出源码时不需要 `app_id`,直接 `+export --meta-token <meta_token>`;其余命令需要 `app_id` 时,先用 `+get` 解析出 `app_id`。如果拿到的不是链接、也不是 `app_` 开头,可能是裸 meta_token,同样先用 `+get --app-id <token>` 尝试获取应用信息,能正常返回则说明是 meta_token:
142
142
 
143
143
  ```bash
144
144
  lark-cli apps +get --app-id <meta_token> -q '.data.app.app_id'
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## 何时用
6
6
 
7
- 只要一份源码快照的场景:读代码、审计、归档、做静态分析、把源码喂给别的工具。
7
+ 只要一份源码快照的场景:读代码、审计、归档、做静态分析、把源码喂给别的工具。用户丢来一个妙搭应用链接要你「看看 / 分析 / 总结」时也用它:导出后解压读源码,页面文案和数据通常就在 HTML / 组件里。
8
8
 
9
9
  **跨应用是它相对 `+init` 的核心价值**:创意应用的分享链接(`/page/<token>`)指向别人的应用,你对那个仓库没有权限,`git clone` 走不通;`+export` 只要求你对该应用有下载权限。
10
10
 
@@ -56,7 +56,7 @@ lark-cli apps +export --app-id app_xxx --dry-run
56
56
  | 情况 | 怎么办 |
57
57
  |---|---|
58
58
  | 应用尚未发布(`code 40901 app not published`) | 该应用是产物托管形态(如静态 HTML 应用),导出的是「最新已发布产物」,而它还没有成功发布过版本,此刻没有可导的东西。**先发布应用再重试**——不是 app_id 写错,重试也没用 |
59
- | 权限不足(403) | 你需要该应用的下载权限。**持有分享 token 不等于有权限** |
59
+ | 权限不足(HTTP 403,或 HTTP 200 + `code 40300`;两者都表现为 `permission_denied`) | 你需要该应用的下载权限。**持有分享 token、能打开页面都不等于有下载权限**。重试和换参数都没用,向用户说明需找应用所有者授权 |
60
60
  | 应用不存在(404) | 用 `+list --keyword <name>` 核对 app_id |
61
61
  | 归档过大(413) | 超出导出体积上限,改用 `+git-credential-init` + 原生 git clone |
62
62
  | 参数报错 | `--app-id` 与 `--meta-token` 只能给一个,且必须给一个;两者都要裸标识符(不是整条链接) |
@@ -154,6 +154,7 @@ PY
154
154
  ```jsonc
155
155
  {
156
156
  "标题": "Created from shortcut", // text: string
157
+ "待确认": "请 <at user_id=ou_123/> 确认", // text(plain): 人员提及;实际 open_id 用 lark-contact 查询;不发送通知
157
158
  "官网": "[官网](https://example.com)", // text(url): 裸 URL 或 Markdown link
158
159
  "联系电话": "13800000000", // text(phone): 合法电话号码字符串
159
160
  "邮箱": "owner@example.com", // text(email): 合法邮箱字符串
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: lark-doc
3
- description: "飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。"
3
+ description: "飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;`/page/<token>` 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。"
4
4
  metadata:
5
5
  requires:
6
6
  bins: ["lark-cli"]
@@ -698,6 +698,9 @@
698
698
  <xs:enumeration value="area"><xs:annotation><xs:documentation>面积图</xs:documentation></xs:annotation></xs:enumeration>
699
699
  <xs:enumeration value="radar"><xs:annotation><xs:documentation>雷达图</xs:documentation></xs:annotation></xs:enumeration>
700
700
  <xs:enumeration value="combo"><xs:annotation><xs:documentation>组合图</xs:documentation></xs:annotation></xs:enumeration>
701
+ <xs:enumeration value="bubble"><xs:annotation><xs:documentation>气泡图</xs:documentation></xs:annotation></xs:enumeration>
702
+ <xs:enumeration value="waterfall"><xs:annotation><xs:documentation>瀑布图</xs:documentation></xs:annotation></xs:enumeration>
703
+ <xs:enumeration value="pareto"><xs:annotation><xs:documentation>帕累托图</xs:documentation></xs:annotation></xs:enumeration>
701
704
  </xs:restriction>
702
705
  </xs:simpleType>
703
706
 
@@ -2950,13 +2953,14 @@
2950
2953
  <xs:annotation>
2951
2954
  <xs:documentation>
2952
2955
  组合图系列类型枚举
2953
- 可选值: column(柱状) | line(折线) | area(面积)
2956
+ 可选值: column(柱状) | line(折线) | area(面积) | scatter(散点)
2954
2957
  </xs:documentation>
2955
2958
  </xs:annotation>
2956
2959
  <xs:restriction base="xs:string">
2957
2960
  <xs:enumeration value="column"/>
2958
2961
  <xs:enumeration value="line"/>
2959
2962
  <xs:enumeration value="area"/>
2963
+ <xs:enumeration value="scatter"/>
2960
2964
  </xs:restriction>
2961
2965
  </xs:simpleType>
2962
2966
 
@@ -3015,6 +3019,34 @@
3015
3019
  </xs:complexContent>
3016
3020
  </xs:complexType>
3017
3021
 
3022
+ <xs:complexType name="ChartTitleLayoutType">
3023
+ <xs:annotation><xs:documentation>OOXML 主标题手动定位,x/y 是 [0,1] 比例;仅支持 edge 模式。</xs:documentation></xs:annotation>
3024
+ <xs:attribute name="xMode" use="optional">
3025
+ <xs:simpleType><xs:restriction base="xs:string"><xs:enumeration value="edge"/></xs:restriction></xs:simpleType>
3026
+ </xs:attribute>
3027
+ <xs:attribute name="x" type="sml:RatioType" use="optional"/>
3028
+ <xs:attribute name="yMode" use="optional">
3029
+ <xs:simpleType><xs:restriction base="xs:string"><xs:enumeration value="edge"/></xs:restriction></xs:simpleType>
3030
+ </xs:attribute>
3031
+ <xs:attribute name="y" type="sml:RatioType" use="optional"/>
3032
+ </xs:complexType>
3033
+
3034
+ <xs:complexType name="ChartMainTitleType" mixed="true">
3035
+ <xs:annotation><xs:documentation>主标题专用样式;副标题、坐标轴标题不扩展 overlay/layout/background/border。</xs:documentation></xs:annotation>
3036
+ <xs:complexContent>
3037
+ <xs:extension base="sml:ChartFontStyleType">
3038
+ <xs:all>
3039
+ <xs:element name="chartLayout" type="sml:ChartTitleLayoutType" minOccurs="0"/>
3040
+ <xs:element name="chartBorder" type="sml:ChartBorderType" minOccurs="0"/>
3041
+ </xs:all>
3042
+ <xs:attribute name="overlay" type="xs:boolean" use="optional"/>
3043
+ <xs:attribute name="background" type="sml:SolidColor" use="optional"/>
3044
+ <xs:attribute name="textAlign" type="sml:ChartTextAlignType" use="optional" default="left"/>
3045
+ <xs:attribute name="fontFamily" type="sml:FontFamilyType" use="optional"/>
3046
+ </xs:extension>
3047
+ </xs:complexContent>
3048
+ </xs:complexType>
3049
+
3018
3050
  <xs:complexType name="ChartLegendType">
3019
3051
  <xs:annotation>
3020
3052
  <xs:documentation>
@@ -3056,6 +3088,10 @@
3056
3088
  - strikethrough: 是否删除线, 默认false
3057
3089
  - color: 文本颜色
3058
3090
 
3091
+ - separator: 标签要素之间的分隔符;换行使用 &amp;#10;,保留首尾空白
3092
+ - legendKey: 是否显示系列图例色块
3093
+ - showGuidLine: 是否显示标签引导线(沿用快照字段拼写)
3094
+
3059
3095
  注意: category、value、percentage至少有一项为true
3060
3096
  </xs:documentation>
3061
3097
  </xs:annotation>
@@ -3066,6 +3102,9 @@
3066
3102
  <xs:attribute name="category" type="xs:boolean" use="optional" default="false"/>
3067
3103
  <xs:attribute name="value" type="xs:boolean" use="optional" default="true"/>
3068
3104
  <xs:attribute name="percentage" type="xs:boolean" use="optional" default="false"/>
3105
+ <xs:attribute name="separator" type="xs:string" use="optional"/>
3106
+ <xs:attribute name="legendKey" type="xs:boolean" use="optional"/>
3107
+ <xs:attribute name="showGuidLine" type="xs:boolean" use="optional"/>
3069
3108
  <xs:attribute name="format" type="xs:string" use="optional"/>
3070
3109
  </xs:extension>
3071
3110
  </xs:complexContent>
@@ -3085,6 +3124,20 @@
3085
3124
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
3086
3125
  </xs:complexType>
3087
3126
 
3127
+ <xs:simpleType name="ChartDashType">
3128
+ <xs:annotation><xs:documentation>空白分隔的非负数列表(像素),如 "8 3 2 3";空字符串表示实线。</xs:documentation></xs:annotation>
3129
+ <xs:list itemType="sml:NonNegativeDouble"/>
3130
+ </xs:simpleType>
3131
+
3132
+ <xs:complexType name="ChartRegionType">
3133
+ <xs:annotation><xs:documentation>完整绘图区样式,与图表区背景独立;字段缺省时保持既有渲染。</xs:documentation></xs:annotation>
3134
+ <xs:all>
3135
+ <xs:element name="chartBackgroundGradient" type="sml:ChartGradientType" minOccurs="0"/>
3136
+ <xs:element name="chartBorder" type="sml:ChartBorderType" minOccurs="0"/>
3137
+ </xs:all>
3138
+ <xs:attribute name="background" type="sml:SolidColor" use="optional"/>
3139
+ </xs:complexType>
3140
+
3088
3141
  <xs:complexType name="ChartBorderType">
3089
3142
  <xs:annotation>
3090
3143
  <xs:documentation>
@@ -3095,12 +3148,18 @@
3095
3148
  - width: 边框宽度(像素), 默认 1;无边框可设置为0,或不设置chartBorder
3096
3149
  - style: 边框样式(solid|dashed|dotted), 默认 solid
3097
3150
  - radius: 圆角半径(像素), 默认 6
3151
+ - dash: OOXML 原始虚线列表,空白分隔;设置时优先于 style
3152
+ 子元素: chartGradient 为边框渐变
3098
3153
  </xs:documentation>
3099
3154
  </xs:annotation>
3155
+ <xs:all>
3156
+ <xs:element name="chartGradient" type="sml:ChartGradientType" minOccurs="0"/>
3157
+ </xs:all>
3100
3158
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
3101
- <xs:attribute name="width" type="xs:nonNegativeInteger" use="optional" default="1"/>
3159
+ <xs:attribute name="width" type="sml:NonNegativeDouble" use="optional" default="1"/>
3102
3160
  <xs:attribute name="style" type="sml:ChartLineStyleType" use="optional" default="solid"/>
3103
3161
  <xs:attribute name="radius" type="xs:nonNegativeInteger" use="optional" />
3162
+ <xs:attribute name="dash" type="sml:ChartDashType" use="optional"/>
3104
3163
  </xs:complexType>
3105
3164
 
3106
3165
  <xs:complexType name="ChartGradientStopType">
@@ -3210,6 +3269,8 @@
3210
3269
  - chartBorder: 边框配置(可选),无需边框时不设置
3211
3270
  - chartColorTheme: 配色主题(可选)
3212
3271
  - chartColorGradient: 渐变填充开关(可选)
3272
+ - chartBackgroundGradient: 图表区背景渐变(可选)
3273
+ - chartRegion: 完整绘图区的填充、渐变和边框(可选)
3213
3274
  </xs:documentation>
3214
3275
  </xs:annotation>
3215
3276
  <xs:all>
@@ -3218,6 +3279,8 @@
3218
3279
  <xs:element name="chartBorder" type="sml:ChartBorderType" minOccurs="0"/>
3219
3280
  <xs:element name="chartColorTheme" type="sml:ChartColorThemeType" minOccurs="0"/>
3220
3281
  <xs:element name="chartColorGradient" type="sml:ChartColorGradientType" minOccurs="0"/>
3282
+ <xs:element name="chartBackgroundGradient" type="sml:ChartGradientType" minOccurs="0"/>
3283
+ <xs:element name="chartRegion" type="sml:ChartRegionType" minOccurs="0"/>
3221
3284
  </xs:all>
3222
3285
  </xs:complexType>
3223
3286
 
@@ -3291,10 +3354,12 @@
3291
3354
 
3292
3355
  子元素:
3293
3356
  - fillGradient: 该点填充渐变(可选)
3357
+ - chartLabels: 单点标签覆盖,支持 separator/legendKey/showGuidLine
3294
3358
  </xs:documentation>
3295
3359
  </xs:annotation>
3296
3360
  <xs:sequence>
3297
3361
  <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
3362
+ <xs:element name="chartLabels" type="sml:ChartDataLabelsType" minOccurs="0"/>
3298
3363
  </xs:sequence>
3299
3364
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
3300
3365
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
@@ -3312,7 +3377,7 @@
3312
3377
  <xs:annotation>
3313
3378
  <xs:documentation>
3314
3379
  图表全局线条配置(第一层:所有系列的默认样式)
3315
- 适用于: 折线图、面积图、组合图的折线部分
3380
+ 适用于: 折线图、面积图、组合图的折线部分、帕累托图累计百分比线
3316
3381
 
3317
3382
  属性:
3318
3383
  - color: 线条颜色
@@ -3382,7 +3447,7 @@
3382
3447
  <xs:annotation>
3383
3448
  <xs:documentation>
3384
3449
  图表全局柱子配置(第一层:所有系列的默认柱子样式)
3385
- 适用于: 柱状图、条形图、组合图的柱状部分
3450
+ 适用于: 柱状图、条形图、组合图的柱状部分、帕累托图数值柱
3386
3451
 
3387
3452
  属性:
3388
3453
  - color: 柱子填充颜色
@@ -3391,7 +3456,8 @@
3391
3456
  - borderStyle: 柱子边框样式(solid|dashed|dotted), 默认solid
3392
3457
  - backgroundColor: 柱子背景颜色
3393
3458
  - width: 柱子宽度(像素), 未设置时自动计算
3394
- - gap: 柱子间距比例[0,1], 0表示无间距, 1表示间距等于柱宽
3459
+ - overlap: OOXML 系列重叠率[-100,100]
3460
+ - gapWidth: OOXML 柱间距百分比[0,500],不是像素
3395
3461
  </xs:documentation>
3396
3462
  </xs:annotation>
3397
3463
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
@@ -3400,15 +3466,30 @@
3400
3466
  <xs:attribute name="borderStyle" type="sml:ChartLineStyleType" use="optional" default="solid"/>
3401
3467
  <xs:attribute name="backgroundColor" type="sml:SolidColor" use="optional" />
3402
3468
  <xs:attribute name="width" type="xs:nonNegativeInteger" use="optional"/>
3403
- <xs:attribute name="gap" type="sml:RatioType" use="optional"/>
3469
+ <xs:attribute name="overlap" use="optional">
3470
+ <xs:simpleType>
3471
+ <xs:restriction base="xs:double">
3472
+ <xs:minInclusive value="-100"/>
3473
+ <xs:maxInclusive value="100"/>
3474
+ </xs:restriction>
3475
+ </xs:simpleType>
3476
+ </xs:attribute>
3477
+ <xs:attribute name="gapWidth" use="optional">
3478
+ <xs:simpleType>
3479
+ <xs:restriction base="xs:double">
3480
+ <xs:minInclusive value="0"/>
3481
+ <xs:maxInclusive value="500"/>
3482
+ </xs:restriction>
3483
+ </xs:simpleType>
3484
+ </xs:attribute>
3404
3485
  </xs:complexType>
3405
3486
 
3406
3487
  <xs:complexType name="ChartSeriesBarsType">
3407
3488
  <xs:annotation>
3408
3489
  <xs:documentation>
3409
3490
  图表系列柱子配置(第二层:单系列统一配置 + 单柱精确定制)
3410
- 继承ChartGlobalBarsType的所有属性,但注意backgroundColor,width,gap不能作为系列设置
3411
- 适用于: 柱状图、条形图、组合图的柱状部分
3491
+ 继承ChartGlobalBarsType的所有属性;普通柱状/条形/组合图系列不建议设置backgroundColor、width
3492
+ 适用于: 柱状图、条形图、组合图的柱状部分、帕累托图数值柱
3412
3493
 
3413
3494
  属性:
3414
3495
  - color: 该系列所有柱子的填充颜色
@@ -3528,6 +3609,16 @@
3528
3609
  </xs:sequence>
3529
3610
  </xs:complexType>
3530
3611
 
3612
+ <xs:complexType name="ChartInvertIfNegativeType">
3613
+ <xs:annotation>
3614
+ <xs:documentation>
3615
+ 负值反色配置:enable 控制开关,color 指定反色填充;省略 color 时使用 Office 缺省反色
3616
+ </xs:documentation>
3617
+ </xs:annotation>
3618
+ <xs:attribute name="enable" type="xs:boolean" use="required"/>
3619
+ <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
3620
+ </xs:complexType>
3621
+
3531
3622
  <xs:complexType name="ChartSeriesType">
3532
3623
  <xs:annotation>
3533
3624
  <xs:documentation>
@@ -3546,9 +3637,11 @@
3546
3637
  - chartSectors: 扇区样式配置(可选)
3547
3638
  - chartLabels: 数据标签配置(可选)
3548
3639
  - chartTooltip: 数据提示框配置(可选)
3640
+ - chartInvertIfNegative: 柱/条负值反色配置(可选)
3641
+ - chartWaterfall: 瀑布图单系列配置(可选), 仅瀑布图使用
3549
3642
  </xs:documentation>
3550
3643
  </xs:annotation>
3551
- <xs:sequence>
3644
+ <xs:all>
3552
3645
  <xs:element name="chartPoints" type="sml:ChartSeriesPointsType" minOccurs="0"/>
3553
3646
  <xs:element name="chartLine" type="sml:ChartSeriesLineType" minOccurs="0"/>
3554
3647
  <xs:element name="chartArea" type="sml:ChartSeriesAreaType" minOccurs="0"/>
@@ -3556,7 +3649,9 @@
3556
3649
  <xs:element name="chartSectors" type="sml:ChartSectorsType" minOccurs="0"/>
3557
3650
  <xs:element name="chartLabels" type="sml:ChartDataLabelsType" minOccurs="0"/>
3558
3651
  <xs:element name="chartTooltip" type="sml:ChartTooltipType" minOccurs="0"/>
3559
- </xs:sequence>
3652
+ <xs:element name="chartInvertIfNegative" type="sml:ChartInvertIfNegativeType" minOccurs="0"/>
3653
+ <xs:element name="chartWaterfall" type="sml:ChartWaterfallSeriesConfigType" minOccurs="0"/>
3654
+ </xs:all>
3560
3655
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
3561
3656
  <xs:attribute name="comboType" type="sml:ChartComboSeriesType" use="optional"/>
3562
3657
  <xs:attribute name="yAxisPosition" type="sml:ChartYAxisPositionType" use="optional"/>
@@ -3571,10 +3666,12 @@
3571
3666
  属性:
3572
3667
  - width: 网格线宽度(像素)
3573
3668
  - color: 网格线颜色
3669
+ - dash: 空白分隔的非负虚线列表,支持小数
3574
3670
  </xs:documentation>
3575
3671
  </xs:annotation>
3576
- <xs:attribute name="width" type="xs:nonNegativeInteger" use="optional"/>
3672
+ <xs:attribute name="width" type="sml:NonNegativeDouble" use="optional"/>
3577
3673
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
3674
+ <xs:attribute name="dash" type="sml:ChartDashType" use="optional"/>
3578
3675
  </xs:complexType>
3579
3676
 
3580
3677
  <xs:complexType name="ChartAxisLineType">
@@ -3624,12 +3721,18 @@
3624
3721
  - position: 坐标轴位置(可选)(left|right), 仅对y轴有效
3625
3722
  - max: 坐标轴最大值(不设置时自动计算)
3626
3723
  - min: 坐标轴最小值(不设置时自动计算)
3724
+ - orientation: minMax(正序)|maxMin(逆序),与旧 reverse 语义不同
3725
+ - crosses: autoZero(自动零点)|min(最小端)|max(最大端)
3726
+ - domainColor/domainWidth: 轴线颜色/非负宽度
3727
+ - domainDash: 空白分隔的轴线虚线列表
3627
3728
 
3628
3729
  子元素:
3629
3730
  - chartTitle: 坐标轴标题(可选)
3630
3731
  - chartLabel: 坐标轴刻度标签格式(可选)
3631
3732
  - chartAxisLine: 坐标轴线配置(可选), 未设置时不显示轴线
3632
3733
  - chartGridLine: 网格线配置(可选), 未设置时不显示网格线
3734
+ - chartMinorGridLine: 次网格线配置(可选),支持 color/width/dash
3735
+ - chartDomainGradient: 轴线渐变(可选)
3633
3736
  </xs:documentation>
3634
3737
  </xs:annotation>
3635
3738
  <xs:all>
@@ -3637,11 +3740,33 @@
3637
3740
  <xs:element name="chartLabel" type="sml:ChartAxisLabelType" minOccurs="0"/>
3638
3741
  <xs:element name="chartAxisLine" type="sml:ChartAxisLineType" minOccurs="0"/>
3639
3742
  <xs:element name="chartGridLine" type="sml:ChartGridLineType" minOccurs="0"/>
3743
+ <xs:element name="chartMinorGridLine" type="sml:ChartGridLineType" minOccurs="0"/>
3744
+ <xs:element name="chartDomainGradient" type="sml:ChartGradientType" minOccurs="0"/>
3640
3745
  </xs:all>
3641
3746
  <xs:attribute name="type" type="sml:ChartAxisKindType" use="required"/>
3642
3747
  <xs:attribute name="position" type="sml:ChartYAxisPositionType" use="optional"/>
3643
3748
  <xs:attribute name="max" type="xs:integer" use="optional"/>
3644
3749
  <xs:attribute name="min" type="xs:integer" use="optional"/>
3750
+ <xs:attribute name="orientation" use="optional">
3751
+ <xs:simpleType>
3752
+ <xs:restriction base="xs:string">
3753
+ <xs:enumeration value="minMax"/>
3754
+ <xs:enumeration value="maxMin"/>
3755
+ </xs:restriction>
3756
+ </xs:simpleType>
3757
+ </xs:attribute>
3758
+ <xs:attribute name="crosses" use="optional">
3759
+ <xs:simpleType>
3760
+ <xs:restriction base="xs:string">
3761
+ <xs:enumeration value="autoZero"/>
3762
+ <xs:enumeration value="min"/>
3763
+ <xs:enumeration value="max"/>
3764
+ </xs:restriction>
3765
+ </xs:simpleType>
3766
+ </xs:attribute>
3767
+ <xs:attribute name="domainColor" type="sml:SolidColor" use="optional"/>
3768
+ <xs:attribute name="domainWidth" type="sml:NonNegativeDouble" use="optional"/>
3769
+ <xs:attribute name="domainDash" type="sml:ChartDashType" use="optional"/>
3645
3770
  </xs:complexType>
3646
3771
 
3647
3772
  <xs:complexType name="ChartAxesType">
@@ -3714,6 +3839,260 @@
3714
3839
  <xs:attribute name="area" type="xs:boolean" use="optional" default="true"/>
3715
3840
  </xs:complexType>
3716
3841
 
3842
+ <xs:complexType name="ChartBubbleType">
3843
+ <xs:annotation>
3844
+ <xs:documentation>
3845
+ 气泡图专用配置
3846
+
3847
+ 属性:
3848
+ - aggregate: 是否聚合相同维度的数据
3849
+ - showNegativeSize: 是否显示大小为负数的气泡, 默认false
3850
+ - opacityGradientStyle: 气泡透明度渐变方式(linear|radial)
3851
+
3852
+ 子元素:
3853
+ - chartIdLabel: 气泡标识标签及字体样式(可选)
3854
+ </xs:documentation>
3855
+ </xs:annotation>
3856
+ <xs:all>
3857
+ <xs:element name="chartIdLabel" type="sml:ChartFontStyleType" minOccurs="0"/>
3858
+ </xs:all>
3859
+ <xs:attribute name="aggregate" type="xs:boolean" use="optional"/>
3860
+ <xs:attribute name="showNegativeSize" type="xs:boolean" use="optional" default="false"/>
3861
+ <xs:attribute name="opacityGradientStyle" type="sml:ChartGradientKindType" use="optional"/>
3862
+ </xs:complexType>
3863
+
3864
+ <xs:complexType name="ChartWaterfallSeriesStyleType">
3865
+ <xs:annotation>
3866
+ <xs:documentation>
3867
+ 瀑布图负值或汇总柱样式
3868
+
3869
+ 属性:
3870
+ - color: 填充颜色
3871
+ - opacity: 填充透明度[0,1]
3872
+ - borderColor: 边框颜色
3873
+ - borderWidth: 非负边框宽度(像素)
3874
+ - borderStyle: 边框样式(solid|dashed|dotted)
3875
+ </xs:documentation>
3876
+ </xs:annotation>
3877
+ <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
3878
+ <xs:attribute name="opacity" type="sml:RatioType" use="optional"/>
3879
+ <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
3880
+ <xs:attribute name="borderWidth" type="sml:NonNegativeDouble" use="optional"/>
3881
+ <xs:attribute name="borderStyle" type="sml:ChartLineStyleType" use="optional"/>
3882
+ </xs:complexType>
3883
+
3884
+ <xs:complexType name="ChartWaterfallConnectorLineType">
3885
+ <xs:annotation>
3886
+ <xs:documentation>
3887
+ 瀑布图柱体连接线样式
3888
+
3889
+ 属性:
3890
+ - color: 连接线颜色
3891
+ - width: 非负线宽(像素)
3892
+ - style: 线条样式(solid|dashed|dotted)
3893
+ - opacity: 线条透明度[0,1]
3894
+ </xs:documentation>
3895
+ </xs:annotation>
3896
+ <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
3897
+ <xs:attribute name="width" type="sml:NonNegativeDouble" use="optional"/>
3898
+ <xs:attribute name="style" type="sml:ChartLineStyleType" use="optional"/>
3899
+ <xs:attribute name="opacity" type="sml:RatioType" use="optional"/>
3900
+ </xs:complexType>
3901
+
3902
+ <xs:complexType name="ChartWaterfallTotalLabelsType">
3903
+ <xs:annotation>
3904
+ <xs:documentation>
3905
+ 瀑布图汇总标签配置
3906
+ 继承图表通用字体样式
3907
+
3908
+ 属性:
3909
+ - template: 标签模板
3910
+ - position: 标签位置(default|top|middle|bottom)
3911
+ - category: 是否显示类别名
3912
+ - value: 是否显示数值
3913
+ </xs:documentation>
3914
+ </xs:annotation>
3915
+ <xs:complexContent>
3916
+ <xs:extension base="sml:ChartFontStyleType">
3917
+ <xs:attribute name="template" type="xs:string" use="optional"/>
3918
+ <xs:attribute name="position" use="optional">
3919
+ <xs:simpleType>
3920
+ <xs:restriction base="xs:string">
3921
+ <xs:enumeration value="default"/>
3922
+ <xs:enumeration value="top"/>
3923
+ <xs:enumeration value="middle"/>
3924
+ <xs:enumeration value="bottom"/>
3925
+ </xs:restriction>
3926
+ </xs:simpleType>
3927
+ </xs:attribute>
3928
+ <xs:attribute name="category" type="xs:boolean" use="optional"/>
3929
+ <xs:attribute name="value" type="xs:boolean" use="optional"/>
3930
+ </xs:extension>
3931
+ </xs:complexContent>
3932
+ </xs:complexType>
3933
+
3934
+ <xs:complexType name="ChartWaterfallTitleTextType">
3935
+ <xs:annotation>
3936
+ <xs:documentation>
3937
+ 瀑布图标题文本
3938
+
3939
+ 属性:
3940
+ - positive: 正值标题
3941
+ - negative: 负值标题
3942
+ - subtotal: 小计标题
3943
+ </xs:documentation>
3944
+ </xs:annotation>
3945
+ <xs:attribute name="positive" type="xs:string" use="optional"/>
3946
+ <xs:attribute name="negative" type="xs:string" use="optional"/>
3947
+ <xs:attribute name="subtotal" type="xs:string" use="optional"/>
3948
+ </xs:complexType>
3949
+
3950
+ <xs:complexType name="ChartWaterfallSubtotalType">
3951
+ <xs:annotation>
3952
+ <xs:documentation>
3953
+ 瀑布图小计节点
3954
+
3955
+ 属性:
3956
+ - index: 小计节点索引, 从0开始
3957
+ - mode: 小计计算模式(0|1)
3958
+ - alias: 小计别名
3959
+ </xs:documentation>
3960
+ </xs:annotation>
3961
+ <xs:attribute name="index" type="xs:nonNegativeInteger" use="required"/>
3962
+ <xs:attribute name="mode" use="required">
3963
+ <xs:simpleType>
3964
+ <xs:restriction base="xs:integer">
3965
+ <xs:enumeration value="0"/>
3966
+ <xs:enumeration value="1"/>
3967
+ </xs:restriction>
3968
+ </xs:simpleType>
3969
+ </xs:attribute>
3970
+ <xs:attribute name="alias" type="xs:string" use="optional"/>
3971
+ </xs:complexType>
3972
+
3973
+ <xs:complexType name="ChartWaterfallSubtotalsType">
3974
+ <xs:sequence>
3975
+ <xs:element name="chartSubtotal" type="sml:ChartWaterfallSubtotalType" minOccurs="0" maxOccurs="unbounded"/>
3976
+ </xs:sequence>
3977
+ </xs:complexType>
3978
+
3979
+ <xs:complexType name="ChartWaterfallSeriesConfigType">
3980
+ <xs:annotation>
3981
+ <xs:documentation>
3982
+ 瀑布图单系列配置
3983
+
3984
+ 属性:
3985
+ - firstValueAsTotal: 是否将首值作为汇总值
3986
+ - lastValueAsSubtotal: 是否将末值作为小计值
3987
+
3988
+ 子元素:
3989
+ - chartNegativeStyle: 负值柱样式
3990
+ - chartTotalStyle: 汇总柱样式
3991
+ - chartTitleText: 正值、负值和小计标题文本
3992
+ - chartSubtotals: 小计节点列表
3993
+
3994
+ 正值柱样式复用同一 chartSeries 下的 chartBars
3995
+ </xs:documentation>
3996
+ </xs:annotation>
3997
+ <xs:all>
3998
+ <xs:element name="chartNegativeStyle" type="sml:ChartWaterfallSeriesStyleType" minOccurs="0"/>
3999
+ <xs:element name="chartTotalStyle" type="sml:ChartWaterfallSeriesStyleType" minOccurs="0"/>
4000
+ <xs:element name="chartTitleText" type="sml:ChartWaterfallTitleTextType" minOccurs="0"/>
4001
+ <xs:element name="chartSubtotals" type="sml:ChartWaterfallSubtotalsType" minOccurs="0"/>
4002
+ </xs:all>
4003
+ <xs:attribute name="firstValueAsTotal" type="xs:boolean" use="optional"/>
4004
+ <xs:attribute name="lastValueAsSubtotal" type="xs:boolean" use="optional"/>
4005
+ </xs:complexType>
4006
+
4007
+ <xs:complexType name="ChartWaterfallType">
4008
+ <xs:annotation>
4009
+ <xs:documentation>
4010
+ 瀑布图全局配置
4011
+
4012
+ 属性:
4013
+ - firstValueAsTotal: 是否将首值作为汇总值
4014
+ - lastValueAsSubtotal: 是否将末值作为小计值
4015
+ - cornerRadius: 柱体圆角(default|small|large)
4016
+ - gradient: 是否启用渐变填充
4017
+ - connectorLine: false 时隐藏柱体连接线
4018
+ - totalLabels: false 时隐藏汇总标签
4019
+
4020
+ 子元素:
4021
+ - chartConnectorLine: 柱体连接线样式
4022
+ - chartTotalLabels: 汇总标签样式
4023
+ - chartNegativeStyle: 负值柱样式
4024
+ - chartTotalStyle: 汇总柱样式
4025
+ - chartTitleText: 正值、负值和小计标题文本
4026
+ - chartSubtotals: 小计节点列表
4027
+
4028
+ 正值柱样式复用 chartPlot 下的 chartBars
4029
+ </xs:documentation>
4030
+ </xs:annotation>
4031
+ <xs:all>
4032
+ <xs:element name="chartConnectorLine" type="sml:ChartWaterfallConnectorLineType" minOccurs="0"/>
4033
+ <xs:element name="chartTotalLabels" type="sml:ChartWaterfallTotalLabelsType" minOccurs="0"/>
4034
+ <xs:element name="chartNegativeStyle" type="sml:ChartWaterfallSeriesStyleType" minOccurs="0"/>
4035
+ <xs:element name="chartTotalStyle" type="sml:ChartWaterfallSeriesStyleType" minOccurs="0"/>
4036
+ <xs:element name="chartTitleText" type="sml:ChartWaterfallTitleTextType" minOccurs="0"/>
4037
+ <xs:element name="chartSubtotals" type="sml:ChartWaterfallSubtotalsType" minOccurs="0"/>
4038
+ </xs:all>
4039
+ <xs:attribute name="firstValueAsTotal" type="xs:boolean" use="optional"/>
4040
+ <xs:attribute name="lastValueAsSubtotal" type="xs:boolean" use="optional"/>
4041
+ <xs:attribute name="cornerRadius" use="optional">
4042
+ <xs:simpleType>
4043
+ <xs:restriction base="xs:string">
4044
+ <xs:enumeration value="default"/>
4045
+ <xs:enumeration value="small"/>
4046
+ <xs:enumeration value="large"/>
4047
+ </xs:restriction>
4048
+ </xs:simpleType>
4049
+ </xs:attribute>
4050
+ <xs:attribute name="gradient" type="xs:boolean" use="optional"/>
4051
+ <xs:attribute name="connectorLine" use="optional">
4052
+ <xs:simpleType>
4053
+ <xs:restriction base="xs:string">
4054
+ <xs:enumeration value="false"/>
4055
+ </xs:restriction>
4056
+ </xs:simpleType>
4057
+ </xs:attribute>
4058
+ <xs:attribute name="totalLabels" use="optional">
4059
+ <xs:simpleType>
4060
+ <xs:restriction base="xs:string">
4061
+ <xs:enumeration value="false"/>
4062
+ </xs:restriction>
4063
+ </xs:simpleType>
4064
+ </xs:attribute>
4065
+ </xs:complexType>
4066
+
4067
+ <xs:complexType name="ChartParetoType">
4068
+ <xs:annotation>
4069
+ <xs:documentation>
4070
+ 帕累托图专用配置
4071
+
4072
+ 属性:
4073
+ - aggregateType: 数值聚合方式, 默认sum
4074
+ - categoryNumber: 展示的正整数分类数量
4075
+
4076
+ 系列样式复用 chartSeries: index=1 配置数值柱的 chartBars/chartLabels,
4077
+ index=2 配置累计百分比线的 chartLine/chartPoints/chartLabels
4078
+ </xs:documentation>
4079
+ </xs:annotation>
4080
+ <xs:attribute name="aggregateType" use="optional" default="sum">
4081
+ <xs:simpleType>
4082
+ <xs:restriction base="xs:string">
4083
+ <xs:enumeration value="sum"/>
4084
+ <xs:enumeration value="average"/>
4085
+ <xs:enumeration value="count"/>
4086
+ <xs:enumeration value="counta"/>
4087
+ <xs:enumeration value="min"/>
4088
+ <xs:enumeration value="max"/>
4089
+ <xs:enumeration value="median"/>
4090
+ </xs:restriction>
4091
+ </xs:simpleType>
4092
+ </xs:attribute>
4093
+ <xs:attribute name="categoryNumber" type="xs:positiveInteger" use="optional"/>
4094
+ </xs:complexType>
4095
+
3717
4096
  <!-- ==================== 绘图区配置 ==================== -->
3718
4097
 
3719
4098
  <xs:complexType name="ChartPlotAreaType">
@@ -3737,6 +4116,7 @@
3737
4116
  - type: 图表类型(必需)
3738
4117
  * line(折线图) | area(面积图) | bar(条形图) | column(柱状图)
3739
4118
  * pie(饼图) | radar(雷达图) | combo(组合图)
4119
+ * bubble(气泡图) | waterfall(瀑布图) | pareto(帕累托图)
3740
4120
  - comboType: 组合图系列类型(可选), 仅组合图使用
3741
4121
  - yAxisPosition: 右Y轴位置(可选), 只有在笛卡尔坐标系下, 默认值 left, 其他坐标系图表如饼图, 没有 yAxisPosition
3742
4122
 
@@ -3772,6 +4152,9 @@
3772
4152
  - chartSmooth: 平滑折线开关(可选), 适用于折线/面积/雷达/组合图
3773
4153
  - chartStep: 阶梯折线开关(可选), 适用于折线/面积/组合图
3774
4154
  - chartStack: 堆叠设置(可选), 适用于面积/条形/柱状/组合图
4155
+ - chartBubble: 气泡图专用配置(可选), 仅气泡图使用
4156
+ - chartWaterfall: 瀑布图全局配置(可选), 仅瀑布图使用
4157
+ - chartPareto: 帕累托图专用配置(可选), 仅帕累托图使用
3775
4158
  </xs:documentation>
3776
4159
  </xs:annotation>
3777
4160
  <xs:all>
@@ -3779,6 +4162,9 @@
3779
4162
  <xs:element name="chartSmooth" type="sml:ChartLineSmoothType" minOccurs="0"/>
3780
4163
  <xs:element name="chartStep" type="sml:ChartLineStepType" minOccurs="0"/>
3781
4164
  <xs:element name="chartStack" type="sml:ChartStackType" minOccurs="0"/>
4165
+ <xs:element name="chartBubble" type="sml:ChartBubbleType" minOccurs="0"/>
4166
+ <xs:element name="chartWaterfall" type="sml:ChartWaterfallType" minOccurs="0"/>
4167
+ <xs:element name="chartPareto" type="sml:ChartParetoType" minOccurs="0"/>
3782
4168
  </xs:all>
3783
4169
  </xs:complexType>
3784
4170
 
@@ -3807,6 +4193,29 @@
3807
4193
  </xs:simpleContent>
3808
4194
  </xs:complexType>
3809
4195
 
4196
+ <xs:complexType name="ChartDataDim2FieldType">
4197
+ <xs:annotation>
4198
+ <xs:documentation>
4199
+ 图表第二维度字段
4200
+ 继承通用图表数据字段;role 仅用于气泡图,标识x、y、group、size字段角色
4201
+ </xs:documentation>
4202
+ </xs:annotation>
4203
+ <xs:simpleContent>
4204
+ <xs:extension base="sml:ChartDataFieldType">
4205
+ <xs:attribute name="role" use="optional">
4206
+ <xs:simpleType>
4207
+ <xs:restriction base="xs:string">
4208
+ <xs:enumeration value="x"/>
4209
+ <xs:enumeration value="y"/>
4210
+ <xs:enumeration value="group"/>
4211
+ <xs:enumeration value="size"/>
4212
+ </xs:restriction>
4213
+ </xs:simpleType>
4214
+ </xs:attribute>
4215
+ </xs:extension>
4216
+ </xs:simpleContent>
4217
+ </xs:complexType>
4218
+
3810
4219
  <xs:complexType name="ChartDataDim1Type">
3811
4220
  <xs:annotation>
3812
4221
  <xs:documentation>
@@ -3827,13 +4236,15 @@
3827
4236
  <xs:documentation>
3828
4237
  图表数值维度(第二维度:Y轴/数值)
3829
4238
  包含数值系列数据, 每个field代表一个系列
4239
+ 气泡图使用4个字段并通过role标识x、y、group、size;group可为字符串,其余角色为数值
4240
+ 瀑布图至少包含1个数值字段;帕累托图严格输入包含1个数值字段
3830
4241
 
3831
4242
  子元素:
3832
4243
  - chartField: 数据字段(至少1个), 每个字段代表一个数据系列
3833
4244
  </xs:documentation>
3834
4245
  </xs:annotation>
3835
4246
  <xs:sequence>
3836
- <xs:element name="chartField" type="sml:ChartDataFieldType" minOccurs="1" maxOccurs="unbounded"/>
4247
+ <xs:element name="chartField" type="sml:ChartDataDim2FieldType" minOccurs="1" maxOccurs="unbounded"/>
3837
4248
  </xs:sequence>
3838
4249
  </xs:complexType>
3839
4250
 
@@ -3872,6 +4283,7 @@
3872
4283
  - flipX: 水平翻转, 默认false
3873
4284
  - flipY: 垂直翻转, 默认false
3874
4285
  - alpha: 透明度 [0,1], 默认1
4286
+ - ooxml: 是否按 Office OOXML 导入图语义渲染整张图表
3875
4287
 
3876
4288
  子元素:
3877
4289
  - chartTitle: 标题设置 (可选)
@@ -3889,7 +4301,7 @@
3889
4301
  </xs:annotation>
3890
4302
  <xs:complexType>
3891
4303
  <xs:all>
3892
- <xs:element name="chartTitle" type="sml:ChartTitleType" minOccurs="0"/>
4304
+ <xs:element name="chartTitle" type="sml:ChartMainTitleType" minOccurs="0"/>
3893
4305
  <xs:element name="chartSubTitle" type="sml:ChartTitleType" minOccurs="0"/>
3894
4306
  <xs:element name="chartStyle" type="sml:ChartStyleType" minOccurs="0"/>
3895
4307
  <xs:element name="chartLegend" type="sml:ChartLegendType" minOccurs="0"/>
@@ -3910,6 +4322,7 @@
3910
4322
  <xs:attribute name="flipX" type="xs:boolean" use="optional" default="false"/>
3911
4323
  <xs:attribute name="flipY" type="xs:boolean" use="optional" default="false"/>
3912
4324
  <xs:attribute name="alpha" type="sml:AlphaType" use="optional" default="1"/>
4325
+ <xs:attribute name="ooxml" type="xs:boolean" use="optional"/>
3913
4326
  </xs:complexType>
3914
4327
  </xs:element>
3915
4328