Fix ticklabel

This commit is contained in:
2017-03-18 20:28:35 +05:30
parent 055c4f8bbf
commit 4dbbeb4992
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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")
+1 -1
View File
@@ -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
============