Skip to content

Commit c104de0

Browse files
committed
Fix chromatic rendering
1 parent 73da6d0 commit c104de0

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Diff for: packages/storybook/stories/Components/Charts/BarChart.stories.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import { BarChart } from "../..";
22
import { createComponentStories } from "../../util";
3+
import isChromatic from "chromatic/isChromatic";
34

45
const { defaultExport, createStory } = createComponentStories({
56
component: BarChart,
67
args: {
78
height: 300,
89
categories: ["uv", "pv", "amt"],
10+
hideXAxis: false,
11+
hideYAxis: false,
12+
hideLegend: false,
13+
hideTooltip: false,
14+
disableAnimation: isChromatic(),
915
data: [
1016
{
1117
name: "Page A",

Diff for: packages/storybook/stories/Components/Charts/DonutChart.stories.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import { DonutChart } from "../..";
22
import { createComponentStories } from "../../util";
3+
import isChromatic from "chromatic/isChromatic";
34

45
const { defaultExport, createStory } = createComponentStories({
56
component: DonutChart,
67
args: {
78
height: 300,
89
dataKey: "name",
910
category: "value",
10-
showLegend: true,
11-
showTooltip: true,
12-
showAnimation: true,
11+
hideLegend: false,
12+
hideTooltip: false,
13+
disableAnimation: isChromatic(),
1314
data: [
1415
{
1516
name: "Group A",

Diff for: packages/storybook/stories/Components/Charts/LineChart.stories.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import { LineChart } from "../..";
22
import { createComponentStories } from "../../util";
3+
import isChromatic from "chromatic/isChromatic";
34

45
const { defaultExport, createStory } = createComponentStories({
56
component: LineChart,
67
args: {
78
height: 300,
89
categories: ["uv", "pv", "amt"],
10+
hideXAxis: false,
11+
hideYAxis: false,
12+
hideLegend: false,
13+
hideTooltip: false,
14+
disableAnimation: isChromatic(),
915
data: [
1016
{
1117
name: "Page A",

0 commit comments

Comments
 (0)