From the error message, it looks like you have connected the legend parameters to an input that is expecting a number.
Also, I suggest taking a screenshot of your screen that shows the rest of the components instead of taking a picture with a camera. In Windows, you can use Windows logo + Shift + S to do so.