Overview
GraphConfig is the main configuration object for creating and customising graphs in the Graphy SDK. It combines data, visual styling, text content and interactive features into a single, strongly-typed configuration.
Schema structure
Required properties
Data
required
Data to visualise. Contains columns and rows. See data structure for detailed documentation.
Optional properties
Type
Graph type to render. Defaults to
'column' if not specified. See graph types for all available
types.Options
Chart type-specific options (line thickness, smooth lines, bar sorting, etc.). See type
options for details.
Axes
Axis configuration for x, y and secondary y axes. See axes configuration for details.
Legend
Legend position and visibility. See legend configuration for details.
Appearance
Visual styling including colors, borders, backgrounds, text styles and number formatting. See appearance
configuration for details.
GraphThemeOverrides
Theme-level customization. Overrides specific theme values like
graphBackground, textColor, etc. See GraphTheme
schema for available properties.Content
Text content for title, subtitle, caption, data source, and the optional Made with Graphy
provenance mark. See content configuration for details — notably
isBrandMarkHidden (hidden by default; set false to opt in).HeadlineNumbers
Summary metrics displayed prominently on the chart. See headline numbers for details.
DataLabels
Configuration for value labels displayed on chart elements. See data labels for details.
Annotations
Visual annotations layered on top of the chart (stickers, tooltips, highlights, text, arrows, shapes). See
annotations for details.
ReferenceLines
Goal lines, trendlines and average lines. See reference lines for details.
Complete example
Type definitions
TheGraphConfig type is defined using Zod for runtime validation:
Using with GraphProvider
Pass your config toGraphProvider:

