Django with Chart js | How to create charts with Django and Chart js

  Рет қаралды 56,185

Pyplane

Pyplane

Күн бұрын

Пікірлер: 60
@Pyplane
@Pyplane 4 жыл бұрын
Hello Guys. If you like this video make sure to check out my free data science course on youtube. Among others you'll learn how to create awesome charts in matplotlib and seaborn. Link: kzbin.info/www/bejne/mH3MlYpqnqesp9E
@ผีเสื้อราตรี-ค8ฎ
@ผีเสื้อราตรี-ค8ฎ 4 жыл бұрын
Hey sir, May I ask how to use ansible api in django to ssh to server and get data then build it with chart.js?
@djangodissilent6872
@djangodissilent6872 4 жыл бұрын
theme?
@brixtonwarren9864
@brixtonwarren9864 3 жыл бұрын
you prolly dont care at all but does anybody know of a tool to log back into an Instagram account?? I was dumb forgot the login password. I love any tricks you can give me.
@ДмШуля
@ДмШуля 2 жыл бұрын
The Intresting is: what is the diiference of load page speed (in Web Core Vitals LCP values, for example) for Django+Matplotlib+png-encoding method and for external libraries for chart .js using? Probably, my bet on pyplots&.png
@trailbleza
@trailbleza 4 жыл бұрын
Thanks, it really helped my project, if you already understand django, start watching from 13:30.
@Pyplane
@Pyplane 4 жыл бұрын
Thanks for watching! Glad my video helped you out :)
@hkcode1811
@hkcode1811 4 жыл бұрын
hey bro, for me in the script tags any django templating language i.e, the for loop creates an error? i.e. in my script tags, the django template is not being recognised
@hansenlobo
@hansenlobo 4 жыл бұрын
even i am getting the same problem,Just reply if u got any solution
@dilleddough382
@dilleddough382 4 жыл бұрын
I avoid using Django template language from within javascript, Instead output variables you want to use in the template with the "json_script" filter, and then lock onto them with javascript(getElementById) to access them.
@vihub5961
@vihub5961 4 жыл бұрын
If you still looking for the answer, take a look at this: docs.djangoproject.com/en/2.1/ref/templates/builtins/#json-script I was having the same issue. Took me while, but you can get there applying this built-in functionality. I don't know why the issue is not raised in the video..
@faresgeek-dz5692
@faresgeek-dz5692 5 жыл бұрын
Good one dude keep going But you could use Return f"{self.name} {self.mony}" Instead
@rayt7338
@rayt7338 3 жыл бұрын
We need more tutorials with normal accent, thank you, please do more....
@yashikavijayvargiya6195
@yashikavijayvargiya6195 4 жыл бұрын
Can you suggest how to draw multiple charts in signle html page with different data set
@davidgodswill2261
@davidgodswill2261 4 жыл бұрын
Creating multiple charts would be easy, you just have to create another canvas element on the html and target the id like in the example with a new function
@tristanescaba5530
@tristanescaba5530 4 жыл бұрын
Nice! simple and easy to understand your tutorial. Thanks!
@MagnusAnand
@MagnusAnand 3 жыл бұрын
Is this method better than to use a Json response in the view? Thanks
@nanayaw7159
@nanayaw7159 3 жыл бұрын
Which theme did you use for your Vs code??
@MagnusAnand
@MagnusAnand 3 жыл бұрын
Dude, amazing video!!
@dzakialyafi1242
@dzakialyafi1242 4 жыл бұрын
Hi When I try to put the for loop inside the 'label' and the 'data', it does not work at all. It keeps on give me error message in my visual studio because it was expecting a javascript syntax instead of built in django syntax. What should I do, do you have any suggestion?
@vihub5961
@vihub5961 4 жыл бұрын
If you still looking for the answer, take a look at this: docs.djangoproject.com/en/2.1/ref/templates/builtins/#json-script I was having the same issue. Took me while, but you can get there applying this built-in functionality. I don't know why the issue is not raised in the video..
@khaledabdelmokitmebhah6591
@khaledabdelmokitmebhah6591 3 жыл бұрын
For those having trouble with Template Not Found, youd need to create a 'clubs' folder inside the 'templates' folder and put the html template inside that folder.
@ashishjohnsonburself
@ashishjohnsonburself 3 жыл бұрын
Thank you
@pvlmaths5436
@pvlmaths5436 2 жыл бұрын
what is the username and password to login to django adminstration.
@chriszhang5180
@chriszhang5180 4 жыл бұрын
very impressive, thank you so much man. you saved me lots of time and energy. thank you again
@oludhe7
@oludhe7 3 жыл бұрын
Thanks alot for this video, much appreciated. Do you have any documentation which details how to interact with the database directly from the view. E.g if I was using a python package that recieved text input, how could I enter that information in the front end user interface, have it go back and interact with the package, and then update the output accordingly? Thanks.
@thomy0319
@thomy0319 Жыл бұрын
Muchas gracias!!! justo lo que necesitaba !!!
@seyfullah642
@seyfullah642 3 жыл бұрын
Can someone please explain why he adds the comma in the two for-loops for label and data? I ran the code without the two commas and still got the same expected output. Edit: Never mind I found out why after adding more data to the admin page. You need the comma to display multiple data points.
@onesmusemeka215
@onesmusemeka215 3 жыл бұрын
The basic reason is that chart js expects your data needs as a list thus the comma added ensures the resulting data shape at the end is a list. Remember you will be iterating in a list.
@antonioacevedomontoya2537
@antonioacevedomontoya2537 4 жыл бұрын
It's good to use for in the template? (Problems with optimization?) Thanks for the tutorial, is very useful!
@gowthamns8228
@gowthamns8228 4 жыл бұрын
Hi this video is very nice, but I configured default database setting as MYSql connection, I followed the same method is not working properly, Can you please help me out in this problem or give some tutorial video for this......
@amine.ouaziz
@amine.ouaziz 4 жыл бұрын
good one, thanks dude.. i'm working in a project and i want to use Echarts can you please do a tuto on this thanks again
@davidgodswill2261
@davidgodswill2261 4 жыл бұрын
Great tutorial, nice and clean. Would you please explain how to do the same using Django cms.
@pawanmandal8787
@pawanmandal8787 4 жыл бұрын
jinga format not support in javascript place can you share source code
@francismwondha2581
@francismwondha2581 4 жыл бұрын
Very clear... Thanks so much
@kavyaseeramsetty5620
@kavyaseeramsetty5620 Жыл бұрын
Helpful Thanks
@sagartamang0000
@sagartamang0000 Жыл бұрын
Thanks alot my man!
@chandreshsingh2868
@chandreshsingh2868 4 жыл бұрын
scipt link not working
@Pyplane
@Pyplane 4 жыл бұрын
Hi! Thanks for the feedback. I updated the link in the description. Sorry for all the trouble
@sarangchouguley6292
@sarangchouguley6292 4 жыл бұрын
Thank you so much.... Found exactly what i needed.
@sarangchouguley6292
@sarangchouguley6292 4 жыл бұрын
@@Melophile_Gaurav sure, can you dm on LinkedIn?
@sarangchouguley6292
@sarangchouguley6292 4 жыл бұрын
@@Melophile_Gaurav Its Sarang Chouguley
@sarangchouguley6292
@sarangchouguley6292 4 жыл бұрын
@@Melophile_Gaurav sure
@zayed868
@zayed868 3 жыл бұрын
That's awesome. ❤️
@Pyplane
@Pyplane 3 жыл бұрын
Thank you 😀
@pvlmaths5436
@pvlmaths5436 2 жыл бұрын
i cannot login its asking for username and password what to do cananyone help
@yus7064
@yus7064 4 жыл бұрын
thank you for this, you saved my life
@adamaleksander5226
@adamaleksander5226 4 жыл бұрын
Nice one!
@jalberthmosquera4304
@jalberthmosquera4304 3 жыл бұрын
thank you for this bro
@Pyplane
@Pyplane 3 жыл бұрын
Thanks for watching!
@thalitalanusse
@thalitalanusse 3 жыл бұрын
thank you for this, you help me
@Pyplane
@Pyplane 3 жыл бұрын
glad you enjoyed the video! Cheers!
@egkl311
@egkl311 4 жыл бұрын
man you the best
@raghu707
@raghu707 4 жыл бұрын
Thank you.
@adnanchalwati7643
@adnanchalwati7643 2 жыл бұрын
thank you
@rangabharath4253
@rangabharath4253 4 жыл бұрын
awesome
@farmaceutico_anti_parafarmacia
@farmaceutico_anti_parafarmacia 7 ай бұрын
we couldn't miss the annoying background "music" of course
Django QR code tutorial | How to create QR codes in Django
15:05
Django + Chart.js // Learn to intergrate Chart.js with Django
26:45
CodingEntrepreneurs
Рет қаралды 232 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
7 Design Patterns EVERY Developer Should Know
23:09
ForrestKnight
Рет қаралды 125 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 112 М.
Getting Started With Chart.js
19:26
Traversy Media
Рет қаралды 504 М.
2,000 People Fight For $5,000,000
24:45
MrBeast
Рет қаралды 63 МЛН
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН