ONSvisual / Charts

The official repository of all publication ready ONS charts.
5 stars 2 forks source link

Don't need the group name when there's only one group #218

Open MikeLister opened 5 months ago

MikeLister commented 5 months ago

Noted for comet plot, but would apply for all 'grouped' charts

Check the length of array "groups":

if (groups.length>1){ divs.append('p').attr('class', 'groupLabels').html((d) => d[0]) }