1.3: Graphing with Chart.js - Working With Data & APIs in JavaScript

  Рет қаралды 429,267

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 257
@critstixdarkspear5375
@critstixdarkspear5375 5 жыл бұрын
I’m enthusiastic about learning to code already, but your infectious enthusiasm and pure joy personality makes me do chair dances every time you post. I love you because you bring the world joy in learning. Every teacher of any subject could learn a lot from you and 3blue1brown.
@prschorn
@prschorn 5 жыл бұрын
I work with JS for about 6 years, and still i'm watching this video. This is how this channel is able to entertain me, even when I'm watching tutorials about topics that I already know
@stevewu9372
@stevewu9372 5 жыл бұрын
😸😸😸
@ranikheir5272
@ranikheir5272 5 жыл бұрын
Feel the same way!
@rvssvedavyas921
@rvssvedavyas921 5 жыл бұрын
could u help me how can i visualize audio . select a part of the audio and play it using javascript?
@ridz4912
@ridz4912 4 жыл бұрын
OMG !! WHERE WAS THIS GUY ALL THESE YEARS ??? SERIOUSLY ?? JUST WATCHING HIM ..HE JUST EXPLAINS IT IN SUCH A FUN WAY. TBH NEVER SEEN ANYONE EXPLAINING IN DEPTH MIXED WITH SUCH A CRAZY INTERACTIVE WAY !
@yourfriendlyneighborhood5547
@yourfriendlyneighborhood5547 3 жыл бұрын
Yeahh the same here bruh. I almost wasted a year and now finally found this guy. Wish I could've found this gem a year back.
@pahittatnamn
@pahittatnamn 3 жыл бұрын
I really love that your videos are longwinded enough to showcase lots of small "issues" one could encounter along the way of making something while still being consise enough to just get help "getting it done". I prefer this format much more compared to a fully prepared -these are the exact steps you should take video- and they never hit the same roadblocks you yourself get. Keep on making awesome content!
@ShoSho-cq7ct
@ShoSho-cq7ct 5 жыл бұрын
I love your positivity and humorous style of teaching!!
@asyncFlex
@asyncFlex 3 жыл бұрын
i speak spanish but i'm learning english, im so happy to find this chanel, u teaching with a lot of passion, i never found it something like that. a lot of thanks
@3duFernandes
@3duFernandes 5 жыл бұрын
This is the first video I watched from your channel. Excellent material, man! As a beginner, I like the way you code on the fly. I can see how a real developer solves errors and refactors the code, it's not like tons of other KZbin videos that just copy and paste the perfect code on the screen... You make it simple and real.
@miquelmarti6537
@miquelmarti6537 2 жыл бұрын
I'm a programmer with 20 yrs of experience in backend and database administration. I love your channel. You make coding look funny (and it is!)
@nomju6411
@nomju6411 5 жыл бұрын
This video makes me feel excited about what I'm learning as well as depressed about what's happening to the Earth.
@fooboobear
@fooboobear 5 жыл бұрын
This person is the coolest teacher I ever had.
@pablovillaverde679
@pablovillaverde679 4 жыл бұрын
I just finished working on a webpage that displays data on airline incidents reṕorted by the NSA from 1980 to 2014. The chart I created shows 56 airlines, their incident total, and fatal accidents during that period of time. I wouldn't have been able to do that without your amazing videos. Thanks a lot!!
@grainfrizz
@grainfrizz 5 жыл бұрын
The world doesn't deserve people like Dan Shiffman. You're godsent.
@JuanOrtiz-qm9wy
@JuanOrtiz-qm9wy 5 жыл бұрын
This tutorial is so amazing!, I can see how do you solve any problem and try it on my own. And the projects are so engaging that you want to do the full course in one day. Greetings from Mexico :).
@SigmaSixSoftware
@SigmaSixSoftware Жыл бұрын
I’ve been working with JS for years and you just helped me find a bug in my code thanks
@Qjoel6398
@Qjoel6398 5 жыл бұрын
Hey man I gotta say. Watching you write code one way to get it done and then refactoring it afterwards brings a whole nother level to the learning here. great work - I'm hooked!
@katem9185
@katem9185 4 жыл бұрын
I have a project coming up at work where I will be creating visualizations with Chart.js. This tutorial put me at ease and now I'm less stressed out about learning this new tool. Also, just wanted to say that your teaching style is so informative, easy to follow and engaging. It's helpful to watch you work through how you solve a coding problem and when you come across errors how you figure them out. Great tutorial! I'm looking forward to watching more of your videos.
@armandsalle8447
@armandsalle8447 5 жыл бұрын
it's a very good idea to offer exercises ! It is important to learn and understand well
@codeforest9027
@codeforest9027 5 жыл бұрын
6 days ago?
@iminni3459
@iminni3459 5 жыл бұрын
@@codeforest9027 Some people get early access I think.
@austinedeclan10
@austinedeclan10 5 жыл бұрын
As a novice programmer, I find these videos really entertaining
5 жыл бұрын
Thanks for adding subtitles to the videos, the KZbin translator works better and better. : D greetings from Argentina
@wesleyweisel134
@wesleyweisel134 5 жыл бұрын
Why am I salivating the beginning of each video? Wait! The bell. Classical conditioning. I'm onto you, Daniel! Keep up the good work. I always love your videos and this is the first full class I am taking. Thanks.
@rotrose7531
@rotrose7531 5 жыл бұрын
it is hardly to think one can learn these valuable stuff for free. Thank you very much, you style of instant coding inspires and helps me a lot.
@heimizhou2261
@heimizhou2261 4 жыл бұрын
This is best JS training video I've watched! thank you!
@CodyPellom
@CodyPellom 4 жыл бұрын
All aboard! I'm on the coding train for life I love this dude.
@patrickboehme4556
@patrickboehme4556 4 жыл бұрын
OMG you are amazing! Thank you so much!!!! Your videos on "Working With Data & APIs in JavaScript" have been a god send.
@Annehbui
@Annehbui 4 жыл бұрын
I'm new to this coding industry and your videos really enlightened my interest in this field. Really enjoy your work!
@mcyvideos68
@mcyvideos68 5 жыл бұрын
Very good video, very helpful. It look like Chart.js is a lot easier than D3. Just a little observation: the Celsius degree symbol is °C.
@Annehbui
@Annehbui 4 жыл бұрын
I think D3 is more for designer to start everything from scratch - I would stick with charting libraries like this one chart.js or Plotly for graphing purposes.
@Martin-jq8th
@Martin-jq8th 4 жыл бұрын
he stated that in the chart description (datasets.label)
@alissondamasceno2010
@alissondamasceno2010 5 жыл бұрын
So I open KZbin to search for Chart.js tutorials and your video pops up before searching for anything. Nice!
@ugonnadi6732
@ugonnadi6732 3 жыл бұрын
the way I love how this guy teaches cannot be explained
@Cornellie
@Cornellie 5 жыл бұрын
The contents you produce is amazing so glad I found this channel. Im almost done reading your book btw
@oeq57
@oeq57 5 жыл бұрын
Dan, you are psychic I feel like every idea I have you have already made. Thanks for creating such amazing videos with lots of great information in them :D
@pliniojr95
@pliniojr95 2 жыл бұрын
Once again, thank you, teacher for this class! It was my first time using a JS library, and your way of teaching is catchy. I'm really looking forward to the next classes.
@ronicard
@ronicard 3 жыл бұрын
Great video and a really nice little tip about making the function async and calling the getData with an await is a really elegant and clean little solution. Major props for a well put-together video!
@varshakapil8224
@varshakapil8224 4 жыл бұрын
We love you...love love love u....i love your energy...u can make boring things interesting... man this should be on Netflix!!! Love u dude...love the coding now cause of u
@BrenoLuna
@BrenoLuna 5 жыл бұрын
Awesome content! I'm definitely experimenting with the charting library on my projects. Please, in order to improve the viewers' productivity, kindly provide a tutorial video for preparing the concoction that yields such energetic demeanour towards coding. Cheers!
@videovideoguy
@videovideoguy 3 жыл бұрын
Your video is much better than mine. It is very nice and clear. Thank you
@nileshgurung9437
@nileshgurung9437 5 жыл бұрын
This is exactly what i needed. Thank you for these awesome tuts. Love from India🤗
@vympel2732
@vympel2732 5 жыл бұрын
I love when you said that VS Code automatically corrects your errors when you save and you saved literally every line you wrote
@morhaham6609
@morhaham6609 4 жыл бұрын
At 9:38, a more elegant solution is to just call a "then" for the "getData" in order to chart the graph after the data is resolved, like this: getData() .then(() => { chartIt(); }) .catch((error) => console.log(error.message));
@00el04
@00el04 3 жыл бұрын
You're a blessing.
@hilkokriel5659
@hilkokriel5659 5 жыл бұрын
Another brilliant video!! Thank you so much for all the effort you put into your content. I’ve been using Google’s Chart Services for similar projects, but now I know how to use another API!! Wooohooo. Much love from South Africa.
@rotrose7531
@rotrose7531 4 жыл бұрын
Your tutorials unfailingly fascinate me, Thank you MILLIONS! I have a small request if possible, regarding this temperature toturial, could you make one more to cover some user interaction, for example, two input field to accept user input, which were then returned in form of year, then we only graph the temperature of that period specified by user? To be honest, based on the learning from you, I made a similar one, but I failed to extend it to feature some user interaction. I believe many other people want to see it too.
@deviloflove195
@deviloflove195 4 жыл бұрын
This has been a really entertaining and educative video to watch. Thank you!! I also like how you would actually refactor your codes near the end to make everything even more clean.
@101appsCoZa
@101appsCoZa 5 жыл бұрын
great tutorial. chart.js is now easier than i thought thanks to you!
@sodiqayilara1519
@sodiqayilara1519 2 жыл бұрын
I program daily, I watch this video to always remember to have fun,because goddamn coding is fun if you can just hang on enough to learn how it works.
@paco3447
@paco3447 5 жыл бұрын
As data is data, you won’t stop there. You could preprocess the input series and perform linear regressions, trends, averages, gaussian, time window predictions and forecasting, etc. vía custom functions and math helpers and plot with ChartJs. By the way, chartjs allows to use callbacks and hooks to perform advanced stuff.
@djthedev
@djthedev 2 жыл бұрын
You are such a gem!! Thank you so much for making these
@heksqer1022
@heksqer1022 5 жыл бұрын
Loved this video. It explained Chart.js beautifully ! Also looking at the global average temperature rise was really scary.
@phanta5m
@phanta5m 5 жыл бұрын
A lot of lesson learned from this video, thanks.
@lollilolli4582
@lollilolli4582 3 жыл бұрын
When I find a developer job , I will come back and thank you again !
@nagualdesign
@nagualdesign 5 жыл бұрын
The editing of these videos continues to improve. Am I right to assume that this is Matthaus' (sp?) handiwork? If so, he really ought to be credited in the video description. Whoever it is, they're doing a great job!
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Yes, it's Mathieu Blanchette! I agree about the credit and will add!
@nagualdesign
@nagualdesign 5 жыл бұрын
@@TheCodingTrain Cheers, Dan.
@RobertMenus
@RobertMenus 5 жыл бұрын
Thank you very much, man! Your video really helped me and solved great coding problem. I was f*king for two days, trying to understand how to add data to this chart. And you example showed exactle what I wanted. You are awesome!!
@Banjer
@Banjer 5 жыл бұрын
Great!!! I can't wait for the next module!!
@mohannedalademi5229
@mohannedalademi5229 4 жыл бұрын
man the way he explains stuff makes me wanna watch more, wish you were by elder brother
@bradtking
@bradtking 2 жыл бұрын
I am so thankful for you. Thank you for making this so much fun to learn.
@mayaahmed
@mayaahmed 4 ай бұрын
Such fun. Best videos on the topic.
@Martin-jq8th
@Martin-jq8th 4 жыл бұрын
6:30 made my night 🌙
@juanpablogavilanes7036
@juanpablogavilanes7036 3 жыл бұрын
Very nice video, looking forward to review the full course
@herberdth
@herberdth 3 жыл бұрын
This is SO good material! Thanks!
@loic.bertrand
@loic.bertrand 5 жыл бұрын
That's such a cool and clear video, bravo!
@letung9255
@letung9255 2 жыл бұрын
the beauty of teaching as the brain want to study.
@yogeshwarbirangal
@yogeshwarbirangal 4 жыл бұрын
Thank you from 2020 It helped in building my district corona virus tracker.
@chuckf5540
@chuckf5540 4 жыл бұрын
Awesome. Great tutorial! I'm using node-js and wonder what the difference is in creating that page using template node? I plan to use a financial model candlestick to plot temperature by time (hour, day, week, month) by Open temp, Low temp, High temp and close temp.
@City__Walker
@City__Walker 2 жыл бұрын
in 2022 year Chart.Js change self code, not removing "options" and write in field "beginAtZero: false" for correct drawing "options: scales: { y: { beginAtZero: false } } }"
@fastlearner9993
@fastlearner9993 2 жыл бұрын
JUST THE COMMENT I NEEDED !!! THE LAST PIECE TO MY PUZZLE .... THANK YOU !!!!!!
@khanparwez2009
@khanparwez2009 4 жыл бұрын
This is a great video, really helped me pick the concept fast. I was wondering if you can prepare some video where you can show timeseries data being aggregated from csv and display graph for a time period like , show graph for last 30 minutes or previous day something like that ?
@chriscalso4699
@chriscalso4699 5 жыл бұрын
I thought I was watching a kids learning channel like blues clues for a second :) It's a good chart.js tutorial.
@toastyPredicament
@toastyPredicament 2 жыл бұрын
I feel sick I will do a nap for today's courses
@luciferkhusrao
@luciferkhusrao 3 жыл бұрын
Professor is teaching codes! Bella Ciao!!
@raphaelvsantos
@raphaelvsantos 3 жыл бұрын
What a nice way to learn JS AND be conscious about the climate change! Awesome!
@JoshuaKisb
@JoshuaKisb 5 жыл бұрын
i already knew this stuff but the video was still fun to watch. makes me feel like making my own tutorials for coding. :)
@YolkBytes
@YolkBytes 4 жыл бұрын
Very cool and very educational. Thank you.
@ABrushWithNature
@ABrushWithNature 4 жыл бұрын
Really loving your tutorial here. So much appreciated! You talked about trimming blank lines at the end of the csv file. Can you share the code for that?
@blackswann9555
@blackswann9555 3 жыл бұрын
wow, I love you. so many questions answered for me!!!! Subscribed!
@thaanu
@thaanu 11 ай бұрын
Great tutorial. I was using ChartJS on a project. Is there a way generate dynamic charts with realtime data? Like a dashboard.
@syedalishan4986
@syedalishan4986 5 жыл бұрын
Hey my JS Teacher, Really Awesome Content.
@mohdotnet
@mohdotnet 4 жыл бұрын
Very very well described video Thank you so much
@graphiics
@graphiics 5 жыл бұрын
I love your tutorial.. you are really fun!
@sebastienserra1064
@sebastienserra1064 Жыл бұрын
Thank you so much! Really helpful!
@saxenavedant61
@saxenavedant61 4 жыл бұрын
love your tutorial videos ❤
@moussaibrahem9
@moussaibrahem9 5 жыл бұрын
You Are Awesome man i loved how you teach and thinking
@brucedordway
@brucedordway Жыл бұрын
Nice series, thanks. Just one thing I've run into that I haven't figured out yet. From VSCode I can send my page to Live server and the chart displays one set of data columns from 1880 to 2019. However, when I activate the console in the browser, the data columns are auto duplicated - e.g. 1880 thru 2019, then 1880 thru 2019 repeated. I am assuming that activating the console is somehow triggering CSV data being appended to my existing data object - instead of clearing it first.
@deepamrai2107
@deepamrai2107 3 жыл бұрын
Learning should be like this! Damn nice
@cheshtagupta7491
@cheshtagupta7491 3 жыл бұрын
Great great explanation😍😍😍
@narshah4806
@narshah4806 4 жыл бұрын
I owe you so much man
@Pedritox0953
@Pedritox0953 5 жыл бұрын
Excellent video series
@ssimona7317
@ssimona7317 Жыл бұрын
The background is so cute !⭐
@TheDima23
@TheDima23 3 жыл бұрын
Amazing video! thank you so much for this !
@jakubkurdziel2407
@jakubkurdziel2407 4 жыл бұрын
Best teacher
@neddev2990
@neddev2990 3 жыл бұрын
Awesome stuff, thanks!
@NetMistro
@NetMistro 2 жыл бұрын
Such a great video 👍 thank you
@soniumesh2011
@soniumesh2011 4 жыл бұрын
Hi .Its good that you have show about chart.js using csv file .can you show how to do it using external json file calling.I mean by calling json url link.please inform me
@yanhualiu2191
@yanhualiu2191 2 жыл бұрын
Can it do two data series samples on two different time intervals? Really Appreciate your comments
@zeinhm7250
@zeinhm7250 5 жыл бұрын
lol i love how you explain and the live coding is cool ! auto subscribe !
@ViRuZzv1
@ViRuZzv1 5 жыл бұрын
Just to clear things up ° means degrees if u want to display degrees celcius u would want to write: value °C en.m.wikipedia.org/wiki/Degree_(temperature)
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Yes, thank you for this correction!!
@stefank.4345
@stefank.4345 4 жыл бұрын
Very good video, very helpful, Thanks
@eng.khartoum47
@eng.khartoum47 3 жыл бұрын
Hi, Thanks for this tutorial. I have a question about the background color. If I want to inject the data with it the random background color. Like if there's a new content give it a specific color. Can you show how to do that?
@saatfj
@saatfj Жыл бұрын
Great charts. Can you do this in Processing 4? If so please link to a tutorial. Thanks
@ДимаАртюхов-э6щ
@ДимаАртюхов-э6щ 5 жыл бұрын
I really want to see how to draw charts on pure (vanilla) JS, that would be interesting to watch. I am challenging you ; )
@MiaMW1
@MiaMW1 4 жыл бұрын
index.html:22 Uncaught ReferenceError: Chart is not defined at index.html:22 I get this error for line - const myChart = new Chart(ctx, { type: 'bar',
@ndiayemouhamadou4920
@ndiayemouhamadou4920 4 жыл бұрын
you are amazing you helped me a lot
@aldogarciavaldez998
@aldogarciavaldez998 4 жыл бұрын
Grandes contenidos saludos de México
@LapSiLap
@LapSiLap 5 жыл бұрын
Instead of { foo: foo } you can just do { foo }. And the way you did year and temp could have been done like this: const [year, temp] = row.split(','). Edit oh nvm about the first one now I see labels: xlabels.. Thought it was the same..
1.4: JSON - Working with Data and APIs in JavaScript
16:22
The Coding Train
Рет қаралды 646 М.
Marching squares with Godot
0:42
Yatchan's After Five Gamedev
Рет қаралды 612
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,6 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 28 МЛН
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,8 МЛН
What happened to React 19?
7:31
Maximilian Schwarzmüller
Рет қаралды 23 М.
Black hole simulator with ChatGPT
2:12
Attila Hung
Рет қаралды 207
React JS Explained In 10 Minutes
10:00
Dennis Ivy
Рет қаралды 328 М.
What is Apache Kafka®?
11:42
Confluent
Рет қаралды 369 М.
2D Collisions with Quadtree test
1:09
ZxWolfzz Stuff
Рет қаралды 10 М.
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,4 МЛН
Chart JS #7 Simple Realtime Chart
12:20
Danu Kuncoro Aji
Рет қаралды 9 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН