I have created a linePlusBarChart with nvd3 and I would like to create a custom legend for this graph. The custom legend created includes images and I would like to click on an image and have the same interaction between the legend and the graph, as it is now.
How is this possible?
Till now I have tried to call this function
chart.dispatch.on('legendClick', function (extent, brush) { chart.update(); });
but I receive this error below:
I have created a linePlusBarChart with nvd3 and I would like to create a custom legend for this graph. The custom legend created includes images and I would like to click on an image and have the same interaction between the legend and the graph, as it is now. How is this possible? Till now I have tried to call this function
chart.dispatch.on('legendClick', function (extent, brush) { chart.update(); });
but I receive this error below: