I am using nvd3 chart library to display reports in our application.I have tried to display bar chart using nvd3 library..Everything working fine except the tooltip.I didnt get the tooltip in mouse-hover function.I cant figure it out where am going wrong..Pls help me to resolve this issue. Script is provide below,
function BarChart(chartData, chartid) {
var seriesOptions = [];
for (var i = 0; i < chartData.length; i++) {
seriesOptions[i] = {
key: chartData[i].Name,
values: eval("[" + chartData[i].Value + "]")
};
}
nv.addGraph(function () {
var chart = nv.models.multiBarChart().color(d3.scale.category10().range());
chart.xAxis.tickFormat(d3.format(',.2f'));
chart.yAxis.tickFormat(d3.format(',.2f'));
d3.select('#chartcontainer1 svg')
.datum(seriesOptions)
.transition()
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
}