Skip to content
UniKit

chart

Local, assertable calculation for chart. Input is text; there is no network, disk, or device access.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Input

Result

Local calculation

Enter data to see results

What this tool does

  • Check this text locally
  • Copy a deterministic result

Example

Input

品类,销量
苹果,3
梨,5

Output

图表类型:line · 画布 240 × 240 · 配色 default
数据:2 行 × 1 个系列(2 个数据点)
图例:销量

SVG 源码:
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240" font-family="system-ui, -apple-system, sans-serif">
  <line x1="56" y1="186" x2="212" y2="186" stroke="#9ca3af" stroke-width="0.5" />
  <text x="48" y="190" font-size="11" fill="#6b7280" text-anchor="end">0</text>
  <line x1="56" y1="145.5" x2="212" y2="145.5" stroke="#9ca3af" stroke-width="0.5" />
  <text x="48" y="149.5" font-size="11" fill="#6b7280" text-anchor="end">1.25</text>
  <line x1="56" y1="105" x2="212" y2="105" stroke="#9ca3af" stroke-width="0.5" />
  <text x="48" y="109" font-size="11" fill="#6b7280" text-anchor="end">2.5</text>
  <line x1="56" y1="64.5" x2="212" y2="64.5" stroke="#9ca3af" stroke-width="0.5" />
  <text x="48" y="68.5" font-size="11" fill="#6b7280" text-anchor="end">3.75</text>
  <line x1="56" y1="24" x2="212" y2="24" stroke="#9ca3af" stroke-width="0.5" />
  <text x="48" y="28" font-size="11" fill="#6b7280" text-anchor="end">5</text>
  <polyline points="56,88.8 212,24" fill="none" stroke="#4d6bfe" stroke-width="2" stroke-linejoin="round" />
  <circle cx="56" cy="88.8" r="3" fill="#ffffff" stroke="#4d6bfe" stroke-width="2" />
  <circle cx="212" cy="24" r="3" fill="#ffffff" stroke="#4d6bfe" stroke-width="2" />
  <text x="56" y="204" font-size="11" fill="#6b7280" text-anchor="middle">苹果</text>
  <text x="212" y="204" font-size="11" fill="#6b7280" text-anchor="middle">梨</text>
  <line x1="56" y1="186" x2="212" y2="186" stroke="#374151" stroke-width="1" />
</svg>

The result is computed by the local source. Nothing is uploaded.

Frequently asked questions

Is input uploaded?

No. Calculation stays local.

What about empty input?

The page stays empty; invalid parameters show an error.

Is the result stable?

The same input always yields the same output.

Keywords:chart本地文本offlineunikit

Related tools