Comments (6)
Library options (just a quick google)
- https://c3js.org/
- https://www.chartjs.org/
- https://apexcharts.com/ (this one seems to be the most popular).
Btw, the counting part for HelpRequests it's clear. But do we have the metadata for showing how many times a request was visited? Which I assume means seen by a user.
cc @melizeche
from ayudapy.
Some interesting charts to consider
- X = requests Y = time, where time in {day, week, month}
- X = requests Y = visited times.
- Pie chart with %assisted and %pending. This will show from the total number of requests how many have been assisted (I think this means checking the "resolved" column).
- We have the “resolved” column in the HelpRequest model.
- Choropleth map of help requests. On hover, show the top-k cities with requests.
from ayudapy.
@jorgeramirez I'll say first let's create the API endpoint to get this data
Total active HR = HelpRequest.objects.filter(active=True, resolved=False).count()
Total active HR unique phone numbers = HelpRequest.objects.filter(active=True, resolved=False).distinct('phone').count()
Mark as resolved = HelpRequest.objects.filter(resolved=True).count()
Today = HelpRequest.objects.filter(active=True, added__gte=date.today()).count()
yesterday = HelpRequest.objects.filter(active=True, added__lt=date.today(), added__gte=date.today()-timedelta(days=1)).count()
After that we can choose how to visualize it
from ayudapy.
Yes, I guess we could do:
/stats/requests-count?by=day|week|month
- This service returns a count summary per day/week/month which will make it very compact. Maybe this service could return assisted and pending as two properties and within these, we have the frequency over day/week/month.
/stats/summary
- This will return HR total active, HR total active unique phone number, and Total HR marked as resolved.
The above covers what you mentioned.
from ayudapy.
Oh, you already added the summary service, great!
from ayudapy.
I guess we can close this issue unless there are other stats that could be added.
from ayudapy.
Related Issues (20)
- Mantener solo thumbnails de los pedidos - Sugerencia HOT 2
- Use django-pipeline to handle static assests
- Preview for twitter summary / image not shown HOT 3
- Agregar categorias al API
- Servicios POST y AUTH API
- Insertar marker draggable cuando no obtiene posición
- Deshabilitar un pedido anterior si Coincide datos del solicitante con numero de contacto HOT 1
- Create "Sauron Mode" for authenticated users HOT 1
- Look for a JS transpiler/minifier HOT 2
- Agregar filtro de duplicados por ciudad HOT 1
- Ubicacion - al cambiar de lugar no borra ubicacion anterior
- Add id and name in search fields
- Move all assets (css, js, leaflet dependencies) to local, not CDN HOT 1
- Internationalization (i18n) HOT 1
- Ciudades que no se pueden mostrar en pedidos_ciudad HOT 2
- Salto del Guairá duplicado en selector de Ciudades HOT 1
- Add an spanish version off I18N-GUIDE
- Add helprequest filter/view by department/province
- Fix share whatsapp button link, and text
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ayudapy.