# Nightingale Chart

Source: https://lumeo.nativ.sh/components/charts/nightingale

# Nightingale Chart

A rose-type pie chart where each slice's radius varies by value. Useful when you want to emphasize differences between categories more than a standard pie chart.

## Installation

.NET CLI PackageReference Lumeo CLI

dotnet add package Lumeo.Charts

One-time app setup (`AddLumeo()`, CSS & JS) is covered in the [installation guide](docs/introduction).

## Usage

@using Lumeo

<NightingaleChart />

Preview Code

Regional Distribution

Preview Code

Loading state

Simulate loading

Hold skeleton open

Duration: 2s 

Cycle: 1400 ms 

Shape-aware skeleton with reserved space for legend and axes — no layout shift when real data arrives.

## API Reference

### NightingaleChart

Property

Type

Default

Description

Data

List<NightingaleData>

\[\]

Slices with Name and Value.

ShowLabels

bool

true

Shows name and percentage labels.

ShowLegend

bool

true

Shows or hides the chart legend.

Colors

List<string>?

null

Custom color palette.

IsLoading

bool

false

When true, renders a shape-matched loading skeleton in place of the chart. Bind to your async fetch state.

ShowLoadingSkeleton

bool

true

Set to false to opt out of the skeleton (chart area stays empty while IsLoading is true).

SkeletonKind

ChartSkeletonKind

(chart default)

Override the skeleton silhouette (Bars, Line, Area, Pie, Scatter, Grid, Generic).

SkeletonStyle

ChartSkeletonStyle

Phantom

Phantom renders the real chart with placeholder data and morphs to real data via ECharts animation. Silhouette falls back to the legacy SVG skeleton overlay.

ShowLoadingLabel

bool

true

Shows a small "Loading…" pill in the top-right corner whenever `IsLoading` is true. Layered on top of any `SkeletonStyle`. Set to false for bare visuals. **(rc.18)**

LoadingText

string?

"Loading…"

Label rendered next to the spinner inside the loading pill. Set to empty to show the spinner alone. **(rc.18)**

AnimationDuration

int?

null

Entry animation duration in milliseconds for the slices.

AnimationEasing

string?

null

ECharts easing function name used during slice animations.

ColorPalette

List<string>?

null

Color palette applied to the rose-chart slices.

DataZoom

bool

false

Enables a zoom slider on the nightingale chart.

Height

string

"350px"

CSS height of the chart container.

LabelFormat

string?

null

ECharts label format template for slice labels.

LabelPosition

string

"outside"

Position of slice labels relative to each slice.

PhantomCycleMs

int

1400

Phantom-mode refresh interval in milliseconds while loading.

ShowDataLabels

bool

false

Displays value labels on each rose slice.

ShowTooltip

bool

true

Shows the hover tooltip with slice values.

Theme

string?

null

ECharts theme name applied to this chart instance.

Toolbox

bool

false

Shows the ECharts toolbox with save-as-image controls.

Width

string

"100%"

CSS width of the chart container.
