Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
40c2e5d1
Commit
40c2e5d1
authored
2 years ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
formatting
parent
5b51efc7
No related branches found
No related tags found
1 merge request
!34
Rework to use a common font config across graphs and add x-axis and legends on top and bottom of graphs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webapp/src/components/graphing/LineGraph.tsx
+3
-5
3 additions, 5 deletions
webapp/src/components/graphing/LineGraph.tsx
webapp/src/helpers/constants.ts
+1
-1
1 addition, 1 deletion
webapp/src/helpers/constants.ts
with
4 additions
and
6 deletions
webapp/src/components/graphing/LineGraph.tsx
+
3
−
5
View file @
40c2e5d1
...
@@ -12,9 +12,7 @@ import {
...
@@ -12,9 +12,7 @@ import {
Tooltip
,
Tooltip
,
Legend
,
Legend
,
}
from
'
chart.js
'
;
}
from
'
chart.js
'
;
import
{
BasicDataset
}
from
"
../../Schema
"
;
import
{
BasicDataset
}
from
"
../../Schema
"
;
ChartJS
.
defaults
.
font
.
size
=
16
;
ChartJS
.
register
(
ChartJS
.
register
(
...
@@ -45,10 +43,10 @@ const options = {
...
@@ -45,10 +43,10 @@ const options = {
};
};
interface
inputProps
{
interface
inputProps
{
data
:
BasicDataset
data
:
BasicDataset
}
}
function
LineGraph
({
data
}:
inputProps
):
ReactElement
{
function
LineGraph
({
data
}:
inputProps
):
ReactElement
{
return
(
return
(
<
Line
data
=
{
data
}
options
=
{
options
}
/>
<
Line
data
=
{
data
}
options
=
{
options
}
/>
);
);
...
...
This diff is collapsed.
Click to expand it.
webapp/src/helpers/constants.ts
+
1
−
1
View file @
40c2e5d1
...
@@ -4,4 +4,4 @@ export enum Sections {
...
@@ -4,4 +4,4 @@ export enum Sections {
ConnectedUsers
=
'
CONNECTED USERS
'
,
ConnectedUsers
=
'
CONNECTED USERS
'
,
Network
=
'
NETWORK
'
,
Network
=
'
NETWORK
'
,
Services
=
'
SERVICES
'
,
Services
=
'
SERVICES
'
,
}
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment