HWPX icon

HWPX

HWPX/HWP 문서 읽기, 생성, 편집, 변환, 유효성 검사

콘텐츠 → 차트 생성

AI-generated

Summary

Generate various types of charts as SVG images based on the specified chart type and JSON-formatted chart specifications within a HWPX document content workflow.

Inputs

  • 차트 유형 (required) — Select the type of chart or shape to generate: function graph, triangle, circle, quadrilateral, or coordinate plane.
  • 차트 사양 (JSON) (required) — Provide the JSON specification defining the chart parameters. For example, function graphs require an expression with axis bounds, triangles require vertices and labels, circles require center and radius with points on the circle, and so on.
  • 옵션 — Optional settings including width and height in pixels for the SVG image, background color as a hex code, and the name of the binary property where the generated SVG will be stored.

Output shape

a binary property containing the generated SVG image of the chart

The generated SVG is saved to the specified binary property name (default 'chart'). No pagination applies for this operation. The JSON chart specification must conform to detailed schema according to the chart type as documented.

Examples

Example 1: Generate a parabola function graph from x=-5 to 5 with given y range and save the SVG

Set 차트 유형 to '함수 그래프', specify chartSpec JSON with expression 'x^2' and axis ranges, and optionally define SVG width, height, and background color.

Links

Discussion