Skip to content
Snippets Groups Projects

Remove cookies

Merged Edu Trevisan requested to merge remove_cookies into development
51 files
+ 1079
1382
Compare changes
  • Side-by-side
  • Inline
Files
51
+ 16
17
@@ -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