Frappe print formats

How can I create print formats for graphs using jinja templates, assuming that am fetching data from DOCTYPE?

explain it more

Like I want to create a print format using custom HTML, jinja templates, where am fetching data from DOCTYPE. I have been able to fetch the data but the graph is not drawn. So how can I do it so that it displays my bar graph?

you want to display the graph in print
like data of fields
right?

Yes, I want when I print I get my bar graph that is drawn from the fetched data.

i try this

1 Like

Is your graph fetching the data from DOCTYPE?

If you have fetched the data from DOCTYPE, kindly, I would like to see how you have done it, because on my side I am unable to display the graph like yours.

i create dashboard then add the chart to it then print the page

1 Like

I can see it only displays in printing page, but it’s not showing in custom page, right?

i am not sure

You have done it by creating dashboard, remember mine am doing it in print format.