Django and ChartJS

后端 未结 3 653
醉话见心
醉话见心 2021-02-09 00:53

I\'m trying to understand if it it\'s possible to incorporate dynamic data into a Django Chart JS architecture. I went through a couple of tutorials and ultimately got Django t

3条回答
  •  逝去的感伤
    2021-02-09 01:22

    so i have been working the same stuff here, i think your label not showing up because the label on chart.js only wants a string, so try this on your labels:

    labels: [{% for i in book %}"{{ i.id }}",{% endfor %}]
    

提交回复
热议问题