ZuzJS UI

ZuzJS

UI

v1.0.71

⌃K

Concepts

Overview

Composition

Layout

Accordion

Alert

Auto Complete

Avatar

Badge

Box

Button

Calendar

Chart

ChatBubble

ChatList

Checkbox

ColorScheme

ContextMenu

CookiesConsent

Cover

Cropper

Crumb

DatePicker

Dialog

Drawer

Fab

Filters

Form

Group

Icon

Image

Input

KeyboardKeys

Label

List

NetworkStatus

Overlay

Pagination

Password

PinInput

ProgressBar

Radio

ScrollView

Slider

Search

SelectTabs

Select

Sheet

Slider

Span

Spinner

Switch

Table

TabView

Text

TextArea

TextWheel

Toast

Tooltip

Treeview

On this page

  • Overview
  • Basic Anatomy

Chart

Documentation for Chart component

Chart

1 <Chart type="line" data={[{ x: "Jan", y: 10 }, { x: "Feb", y: 20 }]} />

Usage

import { Chart } from "@zuzjs/ui"
<Chart type="line" data={[{ x: "Jan", y: 10 }, { x: "Feb", y: 20 }]} />

Props

Prop
Type
Required
Description
type
CHART
No
Component or input type
data
—
—
Data for visualization
xKey
—
—
xKey prop
yKey
—
—
yKey prop
title
—
—
Title text or element
ZuzProps
BoxProps & LineChartProps
—
Shared base props

Examples

Basic Usage

<Chart type="line" data={[{ x: "Jan", y: 10 }, { x: "Feb", y: 20 }]} />

Example 2

<Chart type="bar" data={[{ x: "Q1", y: 100 }, { x: "Q2", y: 150 }]} xKey="x" yKey="y" title="Quarterly Revenue" />