Help me draw Graphs on Obsidian

Is there any ways to draw graphs such as:

image

image

In Obsidian.

If so please give me a detailed guide.