Skip to content

Commit

Permalink
chore(dataviz): small storybook changes
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamKelley committed Jun 18, 2024
1 parent fb2ec17 commit 4eaf8ad
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const ReportCardEmpowermentMetricDualLinearGauge = (props: {
},
}}
to={valuePrimary}
style={{ fill: Purple500 }}
fill={Purple500}
/>

<BarUnits offset={thicknessSecondary + unitsOffset}>
Expand Down Expand Up @@ -138,7 +138,7 @@ const ReportCardEmpowermentMetricDualLinearGauge = (props: {
},
}}
to={valueSecondary}
style={{ fill: Purple200 }}
fill={Purple200}
/>
</Bar>
</BarScale>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@ const ReportCardEmpowermentMetricDualRadialGauge = (props: {
ratio={radiusRatioPrimary}
cornerRadius={cornerRadius}
>
<RadialBarSweep style={{ fill: Neutral70 }} />
<RadialBarCircle
at={valuePrimary}
style={{ fill: Purple600 }}
/>
<RadialBarSweep fill={Neutral70} />
<RadialBarCircle at={valuePrimary} fill={Purple600} />
<RadialBarUnits offset={unitsOffset}>
<RadialBarUnitLabel
at={1}
Expand All @@ -142,11 +139,8 @@ const ReportCardEmpowermentMetricDualRadialGauge = (props: {
ratio={radiusRatioSecondary}
cornerRadius={cornerRadius}
>
<RadialBarSweep style={{ fill: Neutral70 }} />
<RadialBarCircle
at={valueSecondary}
style={{ fill: Purple200 }}
/>
<RadialBarSweep fill={Neutral70} />
<RadialBarCircle at={valueSecondary} fill={Purple200} />
</RadialBar>
</RadialBarScale>
</g>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ const ReportCardEmpowermentMetricSegmentedCircularGauge = (props: {
padAngle={padAngle}
cornerRadius={cornerRadius}
>
<RadialBarSegmentsSweep style={{ fill: Neutral80 }} />
<RadialBarSegmentsSweep fill={Neutral80} />
<RadialBarSegmentsSweep
to={valueContinuous === 0.9 ? value : valueContinuous}
style={{ fill: Yellow500 }}
fill={Yellow500}
/>
</RadialBarSegments>
</RadialBar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,15 @@ const ReportCardMasteryGoalDualCircularGauge = (props: {
ratio={radiusRatioPrimary}
cornerRadius={cornerRadius}
>
<RadialBarSweep style={{ fill: Neutral70 }} />
<RadialBarSweep
to={valuePrimary}
style={{ fill: primaryValueSweepFill }}
/>
<RadialBarSweep fill={Neutral70} />
<RadialBarSweep to={valuePrimary} fill={primaryValueSweepFill} />
</RadialBar>
<RadialBar
radius={radiusSecondary}
ratio={radiusRatioSecondary}
cornerRadius={cornerRadius}
>
<RadialBarSweep to={valueSecondary} style={{ fill: Neutral90 }} />
<RadialBarSweep to={valueSecondary} fill={Neutral90} />
</RadialBar>
</RadialBarScale>
<g>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const ReportCardPortfolioBarChart = (props: {
thickness={barThickness}
cornerRadius={{ start: 4, end: '50%' }}
>
<BarFill to={datum.value} style={{ fill: colors[i] }} />
<BarFill to={datum.value} fill={colors[i]} />
<BarLabel
offset={barLabelOffset}
position={barLabelPosition}
Expand Down
12 changes: 11 additions & 1 deletion packages/dataviz/tsconfig.storybook.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
"src/**/*.stories.tsx",
"src/**/*.stories.mdx",
".storybook/*.js",
".storybook/*.ts"
".storybook/*.ts",
"examples/**/*.stories.ts",
"examples/**/*.stories.js",
"examples/**/*.stories.jsx",
"examples/**/*.stories.tsx",
"examples/**/*.stories.mdx",
"decorators/**/*.stories.ts",
"decorators/**/*.stories.js",
"decorators/**/*.stories.jsx",
"decorators/**/*.stories.tsx",
"decorators/**/*.stories.mdx"
]
}

0 comments on commit 4eaf8ad

Please sign in to comment.