How to output a graph in the chat?

Is it possible to output the python graph in the chat console?

What sort of graph are you thinking, and what sort of console?

I have a list which contains a company’s turnover for every year. So, when a user asks about a company turnover the custom action should plot the graph and output on slack.

Do you have the graphs already in png/jpg etc. format locally? You can attach them as image links like in our moodbot example:

  - text: "Here is something to cheer you up:"
    image: ""

Where in this case it would be either the link to your file if hosted online, or if hosted locally, file:///<full-path-to-file>