I use nvd3 to draw a line chart, and when I pass the div to nvd3
to draw a chart, it will give me this error
Uncaught TypeError: Unable to read property 'createElementNS' undefined
Here is the code:
var chartDiv = 'line-chart'+ counter++; tmpl = $($('#charts-panel-template').clone().html()); tmpl.find('.feature-line-chart').attr('id', chartDiv); var div=tmpl.find('.feature-line-chart#'+chartDiv); chartsPanel.append(tmpl); nv.addGraph(function() { var chart; var width = 1024, height = 500; chart = nv.models.lineChart()
my questions,
- where am i wrong
- I have nothing to lose
user4069483
source share