We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to change the figure displayed on the bars of a column chart? E.g. if my data object looks like:
var dataObj = [ { x : '2010', y : 5 }, { x : '2011', y : 15 }, { x : '2012', y : 20 }, { x : '2013', y : 0 }, { x : '2014', y : 0 }, ];
Then instead of showing "0" for x = 2013/2014 I want to show "-" on top. Possible?
The text was updated successfully, but these errors were encountered:
Yes it is, all you want to do is something like this:
chart .using('barLabels', function(label) { label .text(function(d) { if(+d[this.valueKey] < 1){ return '-'; }else{ return d[this.valueKey]; } }); });
Sorry, something went wrong.
Yup, works like charm! Probably should add it in the documentation somewhere.
Yes, I think I'll need to stop adding features soon so that I can catch up on documentation :-(
No branches or pull requests
Is there a way to change the figure displayed on the bars of a column chart? E.g. if my data object looks like:
var dataObj = [
{ x : '2010', y : 5 },
{ x : '2011', y : 15 },
{ x : '2012', y : 20 },
{ x : '2013', y : 0 },
{ x : '2014', y : 0 },
];
Then instead of showing "0" for x = 2013/2014 I want to show "-" on top. Possible?
The text was updated successfully, but these errors were encountered: