summaryrefslogtreecommitdiff
path: root/client/chart
diff options
context:
space:
mode:
Diffstat (limited to 'client/chart')
-rw-r--r--client/chart/constants.js4
-rw-r--r--client/chart/countriesByYear.chart.js1
-rw-r--r--client/chart/pie.charts.js5
3 files changed, 7 insertions, 3 deletions
diff --git a/client/chart/constants.js b/client/chart/constants.js
index 70375ba3..b916cbd2 100644
--- a/client/chart/constants.js
+++ b/client/chart/constants.js
@@ -59,6 +59,6 @@ export const institutionOrder = {
export const institutionLabels = {
'edu': 'Academic',
'company': 'Commercial',
- 'gov': 'Government / Military',
- 'mil': 'Government / Military',
+ 'gov': 'Military / Government',
+ 'mil': 'Military / Government',
} \ No newline at end of file
diff --git a/client/chart/countriesByYear.chart.js b/client/chart/countriesByYear.chart.js
index 4257748c..2284f774 100644
--- a/client/chart/countriesByYear.chart.js
+++ b/client/chart/countriesByYear.chart.js
@@ -158,6 +158,7 @@ class CountriesByYearChart extends Component {
}
}}
/>
+ <div className='caption'>{paper.name}{' dataset citations by country per year'}</div>
</div>
)
}
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>
)