DashTaste
v0.0.9Pick a named dashboard taste, check ECharts options against 38 rules, and install its tokens.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tastes
List the six dashtaste schools: id, tokens, composition, and the rules sentence. Pick one before building a dashboard.
taste_tokens
Tokens, composition caps, and the rules sentence for one named taste. Same payload as `dashtaste tokens --taste`.
| Parameter | Type | Description |
|---|---|---|
taste * | string |
taste_example
A minimal ECharts option that scores 100 under one taste. Same payload as `dashtaste example --taste`. Copy it instead of inventing a palette.
| Parameter | Type | Description |
|---|---|---|
taste * | string |
check_taste
Check an ECharts option, option array, or page-facts envelope against one taste. Defaults to saas-dense. `--pack global` is saas-dense; `--pack cn` is cn-ecommerce. disable and only use the same rule ids as the CLI. An unknown id is named in the error. The result includes ruleset, ran, chartsReviewed, and findings with name and basis (constraint, heuristic, or taste). Basis does not change severity. An empty chart list can still score 100; that score is not a quality verdict. A rainbow palette is an error in every taste.
| Parameter | Type | Description |
|---|---|---|
disable | array | |
mode | string | |
only | array | |
option | ||
optionJson | string | |
pack | string | |
taste | string |
apply_taste
Return the tokens.json and example.json bodies for one taste. Pass `out` to also write those files, same as `dashtaste apply --taste`.
| Parameter | Type | Description |
|---|---|---|
taste * | string | |
out | string |