Skip to content
New issue

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

Job pay graph Y axis shows fractions of jobs #407

Open
jace opened this issue Oct 25, 2017 · 2 comments
Open

Job pay graph Y axis shows fractions of jobs #407

jace opened this issue Oct 25, 2017 · 2 comments

Comments

@jace
Copy link
Member

jace commented Oct 25, 2017

This should not happen as the count of jobs should be whole numbers:

Fractional jobs

We've solved for this in the job detail page by specifying a custom Y axis. The same approach can be used on the job pay graph.

axis: {
x: {
type: 'category',
height: 60
},
y: {
tick: {
format: d3.format('d'),
values: data['stats']['max']<10?(function (max) {for(var i,a=[i=0];i<=max;a[i]=i++); return a})(data['stats']['max']):undefined
}
}
}

@jace
Copy link
Member Author

jace commented Oct 25, 2017

Specifying values may not actually work, as sometimes there are hundreds of jobs and we don't want a tick for each digit. We only want the floor to be integers instead of fractions. There may be another way to achieve that.

@jace
Copy link
Member Author

jace commented Oct 25, 2017

Correction: specifying values does work, as this graph shows.

Hasjob candidate activity sample graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant