1, you can use the polygonal lasso tool to draw the required irregular figure.
2. After closing, fill the color.
You can also use the pen tool to draw a chart. After the path is closed, press Ctrl+Enter to rotate the selection and fill the color.