how to draw a pichart in a custom developed local plugin?