Test your service call in the services section.
This will tell you whether what you are trying to do will work.
If your service call works in developer tools, then it is your dashboard code that needs adjusting.
To get help with the dashboard code you will need to format it properly when posting it - see this.