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

Fix Bug 976742, do not clip no data text #1916

Merged
merged 1 commit into from Feb 26, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -101,11 +101,19 @@ $(function() {
.tickFormat(d3.format(',d'));

d3.select('#gccrashes_graph svg')
.datum([graphData])
.call(graph);

var xTicks = d3.select('.nv-x').selectAll('g.tick text');
xTicks.attr('transform', 'translate (-10, 60) rotate(-90 0, 0)');
.datum([graphData])
.call(graph);

// Only do the transform on the ticks if we actually have data.
if (graphData.key > 0) {
var xTicks = d3.select('.nv-x').selectAll('g.tick text');
xTicks.attr('transform', 'translate (-10, 60) rotate(-90 0, 0)');
} else {
// Do not clip the No Data text
d3.select('.nv-noData')
.attr('dy', '0');

}

nv.utils.windowResize(graph.update);

Expand Down