Loading skeleton placeholders for every PF6.Charts chart type.
Use these in place of a real chart while data is loading. They match the chart's dimensions and show a shimmer animation consistent with PatternFly's skeleton component.
-- In your view:
if model.loading then
Skeleton.area 560 250
else
Area.fromData model.data
|> Area.withWidth 560
|> Area.toSvgLine chart skeleton.
Bar chart skeleton.
Scatter chart skeleton.
Stack chart skeleton.
Threshold chart skeleton.
Bullet chart skeleton.
Box plot skeleton.
Donut chart skeleton. Pass size (the same value as Donut.withSize).
Donut utilization chart skeleton.
Pie chart skeleton.
Sparkline skeleton. Pass the same width and height as Sparkline.withWidth/withHeight.
Area chart skeleton. Pass the same
widthandheightyou use on the real chart.