-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HOSTSD-203 Add storage trends by drive
- Loading branch information
Showing
15 changed files
with
437 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/dashboard/src/components/charts/bar/segmentedBarChart/IVolumeData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface IVolumeData { | ||
serviceNowKey: string; | ||
name: string; | ||
capacity: number; | ||
availableSpace: number; | ||
createdOn: string; | ||
} |
69 changes: 37 additions & 32 deletions
69
src/dashboard/src/components/charts/bar/segmentedBarChart/SegmentedBarChart.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,54 @@ | ||
@import '@/styles/utils.scss'; | ||
|
||
.panel { | ||
@include panel-style(250px, unset, unset, 1310px); | ||
@include panel-style(250px, unset, unset, 1310px); | ||
|
||
button { | ||
@include export-btn; | ||
} | ||
button { | ||
@include export-btn; | ||
} | ||
} | ||
|
||
.customLegend { | ||
margin: 20px 0; | ||
display: flex; | ||
justify-content: space-evenly; | ||
margin: 20px 0; | ||
display: flex; | ||
justify-content: space-evenly; | ||
} | ||
|
||
.legend { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.legendColors { | ||
display: inline-block; | ||
|
||
span { | ||
display: inline-block; | ||
height: 20px; | ||
width: 55px; | ||
position: relative; | ||
|
||
span { | ||
display: inline-block; | ||
height: 20px; | ||
width: 55px; | ||
position: relative; | ||
|
||
&::after { | ||
position: absolute; | ||
top: 23px; | ||
font-size: $font-size-small; | ||
color: $info-gray; | ||
} | ||
|
||
&:first-of-type::after { | ||
content: 'Used'; | ||
} | ||
|
||
&:last-of-type::after { | ||
content: 'Unused'; | ||
} | ||
&::after { | ||
position: absolute; | ||
top: 23px; | ||
font-size: $font-size-small; | ||
color: $info-gray; | ||
} | ||
|
||
&:first-of-type::after { | ||
content: 'Used'; | ||
} | ||
|
||
&:last-of-type::after { | ||
content: 'Unused'; | ||
} | ||
} | ||
} | ||
|
||
.legendLabel { | ||
display: inline; | ||
margin-left: 10px; | ||
font-weight: bold; | ||
position: relative; | ||
bottom: 4px; | ||
display: inline; | ||
margin-left: 10px; | ||
font-weight: bold; | ||
position: relative; | ||
bottom: 4px; | ||
} |
109 changes: 53 additions & 56 deletions
109
src/dashboard/src/components/charts/bar/segmentedBarChart/SegmentedBarChart.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 25 additions & 7 deletions
32
src/dashboard/src/components/charts/bar/segmentedBarChart/defaultData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/dashboard/src/components/charts/bar/segmentedBarChart/defaultOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const defaultOptions = { | ||
scales: { | ||
x: { | ||
stacked: true, | ||
}, | ||
y: { | ||
stacked: true, | ||
}, | ||
}, | ||
plugins: { | ||
legend: { | ||
display: false, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.