mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-10 10:16:50 +01:00
When the legend is not displayed, there are no guarantees that the format of the options dictionary is correct. Rather than performing computations and then exiting without using the results, we can instead exit quickly since the size of the legend will be (0, 0) if not displayed