किसी को भी जब d3.js दृश्यावलोकन बनाने कैनवास पुस्तकालय के लिए एक svg उपयोग करने की कोशिश की है के साथ कैनवास पर? मैं canvg.js और d3.js उपयोग करने के लिए एंड्रॉयड 2.3 आवेदन वेबव्यू के भीतर से कैनवास को svg कन्वर्ट करने के लिए कोशिश की है, लेकिन जब मैं फोन:एसवीजी d3.js
svg.selectAll(".axis")
.data(d3.range(angle.domain()[1]))
.enter().append("g")
.attr("class", "axis")
.attr("transform", function(d) { return "rotate(" + angle(d) * 180/Math.PI + ")"; })
.call(d3.svg.axis()
.scale(radius.copy().range([-5, -outerRadius]))
.ticks(5)
.orient("left"))
.append("text")
.attr("y",
function (d) {
if (window.innerWidth < 455){
console.log("innerWidth less than 455: ",window.innerWidth);
return -(window.innerHeight * .33);
}
else{
console.log("innerWidth greater than 455: ",window.innerWidth);
return -(window.innerHeight * .33);
}
})
.attr("dy", ".71em")
.attr("text-anchor", "middle")
.text(function(d, i) { return capitalMeta[i]; })
.attr("style","font-size:12px;");
मैं त्रुटि मिलती है: Uncaught TypeError: विधि कॉल नहीं कर सकता ' अशक्त http://mbostock.github.com/d3/d3.js?2.5.0:1707
की setProperty 'चाहेंगे बिना सिर ब्राउज़र अनुप्रयोग, या एक सर्वर साइड js पार्सर काम में किसी प्रकार का? क्या किसी ने इससे पहले सामना किया है?
इस तरह के एक बड़ा सवाल है, मैं किसी को इसका जवाब होगा चाहते हैं। – Apollo