Allow user to set legend title
Opened this issue · 1 comments
mrblueblue commented
Allow user to set legend title
Keekuun commented
You can use this method to custom your own legend. It may not be a good idea, but it works.
.on('pretransition', chart => { let legend = chart.selectAll('.dc-legend .legend-item-text'); legend[0].forEach(d => d.innerText = ' Your legend title'); }