diff --git a/app/directives/directives.js b/app/directives/directives.js index c396161..9fafcfb 100644 --- a/app/directives/directives.js +++ b/app/directives/directives.js @@ -95,7 +95,7 @@ app.directive("dynamicChart", function (d3Tip) { g.append("g") .attr("class", "axis axis-y") .style("font-size",".75em") - .call(d3.axisLeft(y).ticks(10)) + .call(d3.axisLeft(y).ticks(10).tickFormat(d3.format(".0s"))) .append("text") .attr("transform", "translate(15,0) rotate(-90)") .attr("y", 6) @@ -173,7 +173,7 @@ app.directive("dynamicChart", function (d3Tip) { .attr("class", "axis axis-x") .style("font-size",".75em") .attr("transform", "translate(0," + height + ")") - .call(d3.axisBottom(x).ticks(10)); + .call(d3.axisBottom(x).ticks(10).tickFormat(d3.format(".0s"))); g.append("g") .attr("class", "axis axis-y") diff --git a/app/todo.md b/app/todo.md index d82a717..6683393 100644 --- a/app/todo.md +++ b/app/todo.md @@ -2,13 +2,13 @@ Left to do ========== 4. Fix pie label position logic -3. clean up css file Done ----- -- 1. Make d3-tip a service -- 3. Move d3 and other src files to chart directive [Not possible directly] -- 5. better looking dnd boxes +-- 3. clean up css file Think later ============