byashimov / django-controlcenter

Set of widgets to build dashboards for Django projects
BSD 3-Clause "New" or "Revised" License
989 stars 85 forks source link

How to create customized widget design to show a counter like thing ? #55

Open sarkkk opened 4 years ago

sarkkk commented 4 years ago

Counter is a basic things to be added on any dashboard. Is there any way to do such things on django-controlcenter ? dash

EnriqueSoria commented 2 years ago

It's not exactly the same, but you could use a KeyValueList

Something like this:

class QuickStats(KeyValueList):
    def get_data(self):
        return {
            "Sessions": 21813,
            "Users": 14763,
         }