Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Explanation Interface
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
S4XAI
Explanation Interface
Commits
26d0bdef
There was an error fetching the commit references. Please try again later.
Commit
26d0bdef
authored
2 years ago
by
Matthieu BELLUCCI
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted threshold values
parent
edf5d663
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/BarChart.js
+3
-3
3 additions, 3 deletions
src/BarChart.js
with
3 additions
and
3 deletions
src/BarChart.js
+
3
−
3
View file @
26d0bdef
...
@@ -22,9 +22,9 @@ function getTextWidth(text, font) {
...
@@ -22,9 +22,9 @@ function getTextWidth(text, font) {
}
}
function
chooseColour
(
value
)
{
function
chooseColour
(
value
)
{
if
(
value
>
70
)
{
if
(
value
>
=
70
)
{
return
"
green
"
;
return
"
green
"
;
}
else
if
(
value
<
30
)
{
}
else
if
(
value
<
=
30
)
{
return
"
red
"
;
return
"
red
"
;
}
else
{
}
else
{
return
"
orange
"
;
return
"
orange
"
;
...
@@ -110,7 +110,7 @@ class BarChart extends Component {
...
@@ -110,7 +110,7 @@ class BarChart extends Component {
};
};
handleData
(
arr
)
{
handleData
(
arr
)
{
var
items
=
Object
.
keys
(
arr
).
map
((
key
)
=>
[
key
,
arr
[
key
]]);
var
items
=
Object
.
keys
(
arr
).
map
((
key
)
=>
[
key
,
arr
[
key
]
.
probability
]);
items
.
sort
((
first
,
second
)
=>
second
[
1
]
-
first
[
1
]);
items
.
sort
((
first
,
second
)
=>
second
[
1
]
-
first
[
1
]);
let
numItems
=
items
.
length
;
let
numItems
=
items
.
length
;
let
data
=
Array
(
numItems
);
let
data
=
Array
(
numItems
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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