Skip to content
Snippets Groups Projects
Commit 5ccbb1b9 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: remove Hash for challenge

parent 633a6f5a
Branches
Tags
1 merge request!142Features/new challenges
...@@ -116,35 +116,12 @@ const BarChart: React.FC<BarChartProps> = (props: BarChartProps) => { ...@@ -116,35 +116,12 @@ const BarChart: React.FC<BarChartProps> = (props: BarChartProps) => {
.range([0, getContentWidth()]) .range([0, getContentWidth()])
.padding(0.2) .padding(0.2)
// const xScaleWithoutPadding: ScaleBand<string> = scaleBand()
// .domain(
// chartData.actualData.map(d =>
// d.date.toLocaleString(DateTime.DATETIME_SHORT)
// )
// )
// .range([0, getContentWidth()])
const yScale: ScaleLinear<number, number> = scaleLinear() const yScale: ScaleLinear<number, number> = scaleLinear()
.domain([0, getMaxLoad()]) .domain([0, getMaxLoad()])
.range([getContentHeight(), 0]) .range([getContentHeight(), 0])
return ( return (
<svg width={width} height={height}> <svg width={width} height={height}>
{/* {timeStep === TimeStep.DAY && (
<g transform={`translate(${marginLeft},${marginTop})`}>
<Hash
challengePeriod={challengePeriod}
multiFluid={multiFluid}
xScale={xScale}
padding={
(xScaleWithoutPadding.bandwidth() - xScale.bandwidth()) / 2
}
width={getContentWidth()}
height={getContentHeight()}
chartData={chartData}
/>
</g>
)} */}
{fluidTypes.length > 1 ? ( {fluidTypes.length > 1 ? (
<AxisRight <AxisRight
fluidTypes={fluidTypes} fluidTypes={fluidTypes}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment