diff --git a/packages/pie/stories/pie.stories.js b/packages/pie/stories/pie.stories.js
index cfc439ee7..62ee48741 100644
--- a/packages/pie/stories/pie.stories.js
+++ b/packages/pie/stories/pie.stories.js
@@ -107,6 +107,38 @@ stories.add(
}
)
+const CenteredMetric = ({ dataWithArc, centerX, centerY }) => {
+ let total = 0
+ dataWithArc.forEach(datum => {
+ total += datum.value
+ })
+
+ return (
+
+ {total}
+
+ )
+}
+
+stories.add('adding a metric in the center using a custom layer', () => (
+ `${d.id} (${d.formattedValue})`}
+ layers={['slices', 'sliceLabels', 'radialLabels', 'legends', CenteredMetric]}
+ />
+))
+
stories.add('formatted tooltip values', () => (