},
render () {
- return <div className="overview-bar-chart">
+ return <div className="overview-bar-chart" style={{ height: HEIGHT }}>
{this.renderBarChart()}
</div>;
}
</li>
</ul>
</div>
- <div className="overview-bubble-chart">
+ <div className="overview-bubble-chart" style={{ height: HEIGHT }}>
<div className="note" style={{ position: 'relative', top: '10px', left: '10px' }}>
{this.state.yMetric.name}
</div>
let formatValue = (value) => formatMeasure(value, metricType);
let formatYTick = (tick) => formatMeasure(tick, getShortType(metricType));
- return <div className={'overview-timeline-' + index}>
+ return <div className={'overview-timeline-' + index} style={{ height: HEIGHT }}>
<Timeline key={metric}
data={data}
metricType={metricType}
{color}
</ul>
</div>
- <div className="overview-treemap">
+ <div className="overview-treemap" style={{ height: HEIGHT }}>
{this.renderTreemap()}
</div>
</div>;
},
render () {
- return <div className="overview-bar-chart">
+ const count = this.props.distribution.split(';').length;
+ const height = count * 25;
+
+ return <div className="overview-bar-chart" style={{ height }}>
{this.renderBarChart()}
</div>;
}
{translateWithParameters('overview.chart.legend.size_x', translate('metric.ncloc.name'))}
</span>
</div>
- <div className="overview-bar-chart">
+ <div className="overview-bar-chart" style={{ height: HEIGHT }}>
{this.renderBarChart()}
</div>
</div>;
padding-top: 10px;
padding-bottom: 15px;
+ svg {
+ position: absolute;
+ }
+
.bar-chart-bar {
fill: @blue;
}
box-sizing: border-box;
background-color: #fff;
+ svg {
+ position: absolute;
+ }
+
.line-chart-path {
fill: none;
stroke: @blue;
}
.overview-treemap {
+ & > div {
+ position: absolute;
+ }
}
.overview-chart-placeholder {
.overview-bubble-chart {
padding: 10px;
border: 1px solid @barBorderColor;
- box-sizing: border-box;
background-color: #fff;
+ svg {
+ position: absolute;
+ }
+
.bubble-chart-bubble {
fill: @blue;
fill-opacity: 0.2;