Комментарии:
You focused on the colors for way to long bro
ОтветитьGreat teacher
ОтветитьThis is pretty much simplified!
Assuming I need to make a grath displaying orders made based on the days in the week, how do I go by that?
So say:
I want to get the days and their orders dynamically (considering 7 days in a week - Monday to Sunday) .
Very good work Kenneth, keep it up!
Question : Can orders from one product have the same color in the pie chart, for instance HP laptop orders having a collective input in the pie chart so that it has one color representing all orders.
Hi Ken, i hope you are doing great, how to count employee group by department in django
ОтветитьGreat, Thanks again
ОтветитьThis is very good
But I have a question
How can we add filters to the charts, filter by order or product ?
This is epic! I'm gonna find projects just to use this now lol
ОтветитьThanks for the explanation ..
ОтветитьThanks a lot
ОтветитьHey! You could try adding this code beetwen the JS tags
var color_list = [{% for order in orders %}
'rgba('+Math.floor(Math.random() * 256)+', '+Math.floor(Math.random() * 256)+', '+Math.floor(Math.random() * 256)+', 1)',{% endfor %}];
and then
backgroundColor: color_list,
borderColor: color_list,
This way you'll have infinity random colors for your chart
This is what I wanted! Thanks a lot for ur great contribution.
Ответить