跳到正文

设置

读取、修改和重置图表设置。

由固定提交的图表源码生成(1aa5e22)。工具说明保留模型实际收到的英文原文,不做翻译。

settings_get

Get chart settings只读图表内核源码

Read the current chart preferences (theme, grid, axes, time zone, tooltip, renderer, cache limit, colors) and the schema of writable keys with their allowed values.

参数

此工具不需要输入。

JSON Schema
…

settings_update

Update chart settings修改图表按序执行图表内核源码

Apply one or more chart preferences immediately, e.g. {"values":{"theme":"light","showGridLines":false}}. Call settings_get first for allowed keys and values. The same action backs the settings dialog, so the user sees the change at once.

参数

字段类型必填约束说明
valuesrecord是—

最小输入 · 仅含必填字段,占位值由 schema 推导。

{
  "values": {}
}
JSON Schema
…

settings_reset

Reset chart settings修改图表按序执行图表内核源码

Restore chart preferences to their defaults. Pass "keys" to reset only those settings; omit it to reset everything. Returns the previous values.

参数

字段类型必填约束说明
keysstring[]—min items 1; item min length 1

最小输入 · 仅含必填字段,占位值由 schema 推导。

{}
JSON Schema
…

本页内容