Django and ChartJS

后端 未结 3 652
醉话见心
醉话见心 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:00

    You don't necessarily need to use serializers to render dynamic data in Chart.js (although you can if you would like). You can just iterate through your Django context variables like normal in the appropriate locations. Below is a line chart example. I would play around with this example, but this should show you how to easily render dynamic data with Django context variables.

    ...
                          
    
    
    

提交回复
热议问题