summaryrefslogtreecommitdiff
path: root/client/chart
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-03-31 17:46:17 +0200
committeradamhrv <adam@ahprojects.com>2019-03-31 17:46:17 +0200
commitfd5d46b71af450fb582506dc8dd9c8d343d3a5c5 (patch)
treef35d955ff5688fdab83c4fa19c4fe18dbf7fe9cb /client/chart
parent2e73ee5f56d02ee1dc3dbf384d71081c714a0491 (diff)
parent438cde0ab82cf9fdbdcbb45e0ad8e43efc3525bb (diff)
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'client/chart')
-rw-r--r--client/chart/pie.charts.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/chart/pie.charts.js b/client/chart/pie.charts.js
index 6e579537..84e85c3a 100644
--- a/client/chart/pie.charts.js
+++ b/client/chart/pie.charts.js
@@ -17,6 +17,7 @@ class PieCharts extends Component {
render() {
const { payload } = this.props
const { paper, citations } = payload.data
+ console.log(this.props)
if (!citations.length) return null
const countries = {}
@@ -83,9 +84,10 @@ class PieCharts extends Component {
}
}}
size={{
- height: 336,
+ height: countryRows.length < 4 ? 316 : 336,
}}
/>
+ <span className='chartCaption'>{paper.name}{' dataset citations by country'}</span>
</div>
<div>
<C3Chart
@@ -105,6 +107,7 @@ class PieCharts extends Component {
height: 316,
}}
/>
+ <span className='chartCaption'>{paper.name}{' dataset citations by organization type'}</span>
</div>
</div>
)