Skip to content

Commit

Permalink
Display percentage instead of absolute value
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Jovanov committed Jan 12, 2017
1 parent 9c70df6 commit b66ae46
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions ckanext/c3charts/fanstatic/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,6 @@ this.ckan.views.c3charts = this.ckan.views.c3charts || {};
var chartContainer = $(elementId).parent();
var width = chartContainer.attr('data-graph_width');
var height = chartContainer.attr('data-graph_height');
var tooltip = {};

if (chart_type === 'pie') {
tooltip = {
format: {
value: function (value, ratio, id, index) { return value; }
}
}
}

return {
size: {
Expand Down Expand Up @@ -213,8 +204,7 @@ this.ckan.views.c3charts = this.ckan.views.c3charts || {};
show: !! resourceView.y_grid
}
},
legend: legend,
tooltip: tooltip
legend: legend
}
}

Expand Down

0 comments on commit b66ae46

Please sign in to comment.