Skip to content

Commit

Permalink
change dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Apr 2, 2024
1 parent 35646a2 commit bcec3f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pages/example/radar-chart-animation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function Home() {
vizName={'RadarDatasetAnimation'}
VizComponent={RadarDatasetAnimationDemo}
maxWidth={900}
height={800}
height={1000}
caption="Dive deep into the 4 main types of Data Professionals. Understand their main required competencies, their salary ranges and their popularity."
/>
{/*
Expand Down
8 changes: 4 additions & 4 deletions viz/RadarDatasetAnimation/RadarDatasetAnimation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Radar } from './Radar';
import { Dumbbell } from './Dumbbell';
import { LineChart } from './LineChart';

const HEADER_HEIGHT = 230; // button + title
const MARGIN_BOTTOM = 20;
const HEADER_HEIGHT = 130; // button + title
const MARGIN_BOTTOM = 70;
const COLORS = ['green', '#e0ac2b', '#6689c6', '#e85252', '#9a6fb0'];

const buttonStyle = {
Expand Down Expand Up @@ -58,7 +58,7 @@ export const RadarDatasetAnimation = ({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginTop: 20,
marginTop: 70,
}}
>
<h1>Types of Data Professionals</h1>
Expand Down Expand Up @@ -108,7 +108,7 @@ export const RadarDatasetAnimation = ({
<div style={{ display: 'flex', alignItems: 'center' }}>
<Radar
data={groupRadarData}
width={(width / 3) * 2}
width={(width / 3) * 2 - 50}
height={height - HEADER_HEIGHT - MARGIN_BOTTOM}
axisConfig={[
{ name: 'ML Ops', max: 5 },
Expand Down

0 comments on commit bcec3f9

Please sign in to comment.