It adds checks to make default legends work when the option 'legend' is not used on chart declaration. Without this check, hiding/showing variables by clicking on legend won't work if legend option and
legendClick functions are not present in chart declaration.
It adds checks to make default legends work when the option 'legend' is not used on chart declaration. Without this check, hiding/showing variables by clicking on legend won't work if legend option and legendClick functions are not present in chart declaration.