Anyone Knows How to Fetch Data

Hello,
How can I fetch data from any doctype

Actually i have to create a Dashboard using Custom HTML, but How can i fetch data ??

If you know will you please Help me with this

(P.S.: JINJA IS NOT WORKING)

@Tap use ajax call