In this article you will learn how to remove specific data points. This can be only applied on non- axes charts like pie, doughnut etc. Open the visualization where you want to remove specific data point.
Referring to above generated pie chart we have decided to remove data points “Lucknow” and “New Delhi” from the list. The data points name can vary depending on the data used for generating chart like pie-chart, Doughnut chart, etc. Mention the name of data points which you want to remove. This will work only for Pie and doughnut whereas for line chart or other axis charts etc, we will have to pass legend name and for hiding legend.
In order to remove data points you will require a Javascript code.
JavaScript Code:
hi_container.set("postExecution", function () {
Hdi.c3chart.unload({
ids: ['Lucknow', 'New Delhi'] //used for defining specific data points
});
});
Other script and styles can be added for further customization.
For more info, contact us at support@helicalinsight.com