Go to the panel settings and enable the legend option to display it. For more information, refer to the Legend section.