Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Portal-SMPPIR-React
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
Model registry
Operate
Environments
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
SMPPIR
Portal-SMPPIR-React
Merge requests
!15
Remove cookies
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove cookies
remove_cookies
into
development
Overview
0
Commits
27
Pipelines
0
Changes
51
Merged
Edu Trevisan
requested to merge
remove_cookies
into
development
6 years ago
Overview
0
Commits
27
Pipelines
0
Changes
51
Expand
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
02af2dfa
27 commits,
6 years ago
51 files
+
1079
−
1382
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
51
Search (e.g. *.vue) (Ctrl+P)
src/Charts/BuildMixedBar.js
+
16
−
17
Options
@@ -58,25 +58,25 @@ const renderTooltipContent = (o) => {
);
};
const
renderCustomizedLabel
=
(
props
)
=>
{
const
{
x
,
y
,
width
,
height
,
value
}
=
props
;
const
radius
=
10
;
return
(
<
g
>
<
circle
cx
=
{
x
+
width
/
2
}
cy
=
{
y
-
radius
}
r
=
{
radius
}
fill
=
"
#000
"
/>
<
text
x
=
{
x
+
width
/
2
}
y
=
{
y
-
radius
}
fill
=
"
#fff
"
textAnchor
=
"
middle
"
dominantBaseline
=
"
middle
"
>
{
value
}
<
/text
>
<
/g
>
);
};
//
const renderCustomizedLabel = (props) => {
//
const { x, y, width, height, value } = props;
//
const radius = 10;
//
return (
//
<g>
//
<circle cx={x + width / 2} cy={y - radius} r={radius} fill="#000" />
//
<text x={x + width / 2} y={y - radius} fill="#fff" textAnchor="middle" dominantBaseline="middle">
//
{value}
//
</text>
//
</g>
//
);
//
};
function
verifyKeyBar
(
bar
,
keysBars
)
{
let
verifiedKey
=
'
a
'
if
(
keysBars
!=
undefined
)
{
if
(
keysBars
!=
=
undefined
)
{
for
(
let
key
in
keysBars
)
{
if
(
bar
==
key
)
verifiedKey
=
keysBars
[
key
]
if
(
bar
==
=
key
)
verifiedKey
=
keysBars
[
key
]
}
}
return
verifiedKey
@@ -113,7 +113,6 @@ class BuildStackedBar extends Component {
}
var
dataKey
=
this
.
props
.
dataKey
var
label
=
this
.
props
.
label
var
bKeys
=
this
.
props
.
bKeys
var
keysBars
=
this
.
props
.
keysBars
if
(
this
.
state
.
data
!==
null
&&
this
.
state
.
data
!==
undefined
&&
this
.
state
.
data
.
length
>
0
)
@@ -129,7 +128,7 @@ class BuildStackedBar extends Component {
{
Object
.
keys
(
newData
[
0
]).
map
(
function
(
bar
,
index
)
{
if
(
bar
!==
dataKey
)
{
if
(
bar
!==
label
)
{
if
(
label
==
undefined
)
if
(
label
==
=
undefined
)
return
(
<
Bar
isAnimationActive
=
{
false
}
Loading