summaryrefslogtreecommitdiff
path: root/client/chart/pie.charts.js
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2019-04-02 20:36:51 +0200
committerjules@lens <julescarbon@gmail.com>2019-04-02 20:36:51 +0200
commit1d238346b5609e9454a4917c75631a550b5b43d1 (patch)
tree8a936e721e78c7b5948b303e6a1686c96b882d51 /client/chart/pie.charts.js
parentb4b58f2279fb01fa0240006c460c0b5ec95c1126 (diff)
parentf58d41731fc07d94d594d5582aef203564f990ec (diff)
Merge branch 'master' of asdf.us:megapixels_dev
Diffstat (limited to 'client/chart/pie.charts.js')
-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>
)