mirror of
https://github.com/bendtherules/chart-builder-demo.git
synced 2026-08-18 13:42:05 +00:00
Fix ticklabel
This commit is contained in:
@@ -95,7 +95,7 @@ app.directive("dynamicChart", function (d3Tip) {
|
|||||||
g.append("g")
|
g.append("g")
|
||||||
.attr("class", "axis axis-y")
|
.attr("class", "axis axis-y")
|
||||||
.style("font-size",".75em")
|
.style("font-size",".75em")
|
||||||
.call(d3.axisLeft(y).ticks(10))
|
.call(d3.axisLeft(y).ticks(10).tickFormat(d3.format(".0s")))
|
||||||
.append("text")
|
.append("text")
|
||||||
.attr("transform", "translate(15,0) rotate(-90)")
|
.attr("transform", "translate(15,0) rotate(-90)")
|
||||||
.attr("y", 6)
|
.attr("y", 6)
|
||||||
@@ -173,7 +173,7 @@ app.directive("dynamicChart", function (d3Tip) {
|
|||||||
.attr("class", "axis axis-x")
|
.attr("class", "axis axis-x")
|
||||||
.style("font-size",".75em")
|
.style("font-size",".75em")
|
||||||
.attr("transform", "translate(0," + height + ")")
|
.attr("transform", "translate(0," + height + ")")
|
||||||
.call(d3.axisBottom(x).ticks(10));
|
.call(d3.axisBottom(x).ticks(10).tickFormat(d3.format(".0s")));
|
||||||
|
|
||||||
g.append("g")
|
g.append("g")
|
||||||
.attr("class", "axis axis-y")
|
.attr("class", "axis axis-y")
|
||||||
|
|||||||
+1
-1
@@ -2,13 +2,13 @@ Left to do
|
|||||||
==========
|
==========
|
||||||
|
|
||||||
4. Fix pie label position logic
|
4. Fix pie label position logic
|
||||||
3. clean up css file
|
|
||||||
|
|
||||||
Done
|
Done
|
||||||
-----
|
-----
|
||||||
-- 1. Make d3-tip a service
|
-- 1. Make d3-tip a service
|
||||||
-- 3. Move d3 and other src files to chart directive [Not possible directly]
|
-- 3. Move d3 and other src files to chart directive [Not possible directly]
|
||||||
-- 5. better looking dnd boxes
|
-- 5. better looking dnd boxes
|
||||||
|
-- 3. clean up css file
|
||||||
|
|
||||||
Think later
|
Think later
|
||||||
============
|
============
|
||||||
|
|||||||
Reference in New Issue
Block a user