heavyai/heavyai-charting

Allow user to set legend title

Opened this issue · 1 comments

Allow user to set legend title

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'); }