Skip to content

Commit 63a2d94

Browse files
committed
chore: Update graph size on full screen page
1 parent f20795b commit 63a2d94

File tree

5 files changed

+54
-2
lines changed

5 files changed

+54
-2
lines changed

components/profile-centered/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ function ProfileCenteredComponent ({
3434

3535
{/** Greehouse Gas (GHG) Emmissions Section */}
3636
<Grid item xs={12} sm={5}>
37-
<DonutChart {...donutData} />
37+
<DonutChart
38+
{...donutData}
39+
width={300}
40+
height={300}
41+
/>
3842
</Grid>
3943

4044
<Grid item xs={12} sm={7}>
@@ -58,6 +62,8 @@ function ProfileCenteredComponent ({
5862
<Grid item xs={12} sm={5}>
5963
<BarChart
6064
{...barData}
65+
width={300}
66+
height={300}
6167
/>
6268
</Grid>
6369

@@ -72,6 +78,8 @@ function ProfileCenteredComponent ({
7278
<Grid item xs={12} sm={5}>
7379
<LineGraph
7480
{...barData}
81+
width={300}
82+
height={300}
7583
/>
7684
</Grid>
7785

components/profile/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ function ProfileComponent ({
3333

3434
{/** Greehouse Gas (GHG) Emmissions Section */}
3535
<Grid item xs={12} sm={5}>
36-
<DonutChart {...donutData} />
36+
<DonutChart
37+
{...donutData}
38+
width={300}
39+
height={300}
40+
/>
3741
</Grid>
3842

3943
<Grid item xs={12} sm={7}>
@@ -57,6 +61,8 @@ function ProfileComponent ({
5761
<Grid item xs={12} sm={5}>
5862
<BarChart
5963
{...barData}
64+
width={300}
65+
height={300}
6066
/>
6167
</Grid>
6268

@@ -71,6 +77,8 @@ function ProfileComponent ({
7177
<Grid item xs={12} sm={5}>
7278
<LineGraph
7379
{...barData}
80+
width={300}
81+
height={300}
7482
/>
7583
</Grid>
7684

pages/barchartviz/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import BarChart from '@/components/common/ui/charts/bar'
2+
import { options, data } from '@/data/bar_data'
3+
4+
function BarChartViz () {
5+
return (
6+
<BarChart
7+
options={options}
8+
data={data}
9+
/>
10+
)
11+
}
12+
13+
export default BarChartViz

pages/donutchartviz/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import DonutChart from '@/components/common/ui/charts/donut'
2+
import donutChartData from '@/data/donut_data'
3+
4+
function DonutChartViz () {
5+
return (
6+
<DonutChart {...donutChartData} />
7+
)
8+
}
9+
10+
export default DonutChartViz

pages/linechartviz/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import LineGraph from '@/components/common/ui/charts/line'
2+
import { options, data } from '@/data/bar_data'
3+
4+
function LineChartViz () {
5+
return (
6+
<LineGraph
7+
options={options}
8+
data={data}
9+
/>
10+
)
11+
}
12+
13+
export default LineChartViz

0 commit comments

Comments
 (0)