Hey good people!
I’m trying to build an occupancy planner with view as a vertical calendar (see below Excel screen shot with visualisation).
I have build most of the basic back-end functionalities in Django, however now I’m struggling in finding a way to have this view presented on a webpage of the application.
Can anyone guide me what might be the good approach to achieve this? Should I look into combing plotly into Django? Or you have seen any good solution of something similar in JavaScript or something?
Or maybe having this done from Django is an overkill?
Any help will be much appreciated.
Any of the above. You can do this using something like D3.js or Chart.js, or you can render this directly as html in Django.
Part of what is going to drive this decision will depend upon the exact UI / UX you want to create.
For example, if you’re fine with a purely static HTML rendering, where the only UI features are perhaps a set of scroll bars, then a pure Django implementation may be fine. But, if you’re looking for something more like a spreadsheet-style interface, with dynamic row and column headers - and even the possibility of an “infinite scroll”-type solution, then you will want to mix in some JavaScript.
But you should define exactly how you want this to appear and be manipulated in the browser before finding the libraries or approach for implementation.
(Note: It’s not wrong to work in the other direction as well. You might want to look at some libraries and samples to see if you can find something close to what you want, and then decide whether you can make that library work for you.)