React ChartJS Tutorial - Introduction To ChartJS

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024
  • НаукаНаука

Комментарии • 137

  • @shinobi_coder88
    @shinobi_coder88 2 года назад +18

    Hey again Pedro, what a coincidence.. I just built a budget manager few days ago with these tools. Looking forward to see the tips on this video. 🙌🏻

  • @filipevalentegomes2383
    @filipevalentegomes2383 2 года назад +4

    This thing got so much easier to do now. I remember trying to do something like that in angular 1, years ago. Just need to read the documentation to see what else can be done. You saved me a lot of time, thanks for the video

  • @mandlankosi2160
    @mandlankosi2160 2 года назад

    in my country we say "Danko". which means 'thank you'.
    Saved my life of reading documentation. 🇿🇦🔥

  • @michaelhuskey2608
    @michaelhuskey2608 Год назад +3

    Really enjoy how you get right to the point and don't dive too deep into styling which as you know is its own separate beast

  • @ВолодимирПриходько-л2л

    Thanks for the video! I have found your channel not so long ago and I think you have some serious skills bro! Great video tutorials! Thanks again for the job you are doing!

  • @nabiha3358
    @nabiha3358 2 года назад +5

    Great video Pedro. Could you make a video on how you could let a user update the chart data?

    • @cumeneth7996
      @cumeneth7996 Год назад

      I think that is by simply passing a dynamic data(as an array) gotten from the user as the data to the chart

  • @chi-the-apple
    @chi-the-apple Год назад

    Thank you so much for sharing this tutorial! After watching your video, I feel it is a lot easier to read the doc now! I am a beginner to programming and always feel difficult when reading API docs. Thanks again ❤

  • @onkarjoshi8811
    @onkarjoshi8811 10 месяцев назад

    after wasting my day you thankfully saved my night...
    happy coding thanks :)))

  • @headspace6457
    @headspace6457 2 года назад +2

    Thank you for this great tutorial! Helped me with a data visualization project that I'm working on. Keep up the great work!

  • @louislecouturier
    @louislecouturier 2 года назад

    Pedro I love you ! I was getting that error where nothing is showing on react app and you saved me 😍 Thanks a lot !

  • @uditgupta3429
    @uditgupta3429 2 года назад +2

    I am getting a TypeError undefined map. I imported Chart as ChartJS too. btw thanks for the video.

  • @maxwelochieng7658
    @maxwelochieng7658 2 года назад +3

    So I followed through and I am looking for a way that when you change data it reflects automatically without refreshing so I rendered setUserData inside useEffect and gave it UserData as dependency array but it did not work. can you help?

  • @guillermowars7635
    @guillermowars7635 Год назад

    Excelente tutorial, y excellent English pronunciation, I'm native Spanish speakers and I got all of the explanations, thanks a lot my friend 😊

  • @kalahari8295
    @kalahari8295 2 года назад

    The only tutorial where the teacher is explaining like you were there with him during the recording

  • @rathishr6037
    @rathishr6037 2 года назад +1

    I am from India ur tutorial are very useful thank you bro:)

  • @Pareshbpatel
    @Pareshbpatel Год назад +1

    A great introduction to charting in React. Thanks, Pedro
    {2022-12-17}

  • @apeiron4409
    @apeiron4409 2 года назад

    omg this was so helpful! Looking forward to your next video about ChartJS!

  • @tugrulerdemdogru
    @tugrulerdemdogru 2 года назад +1

    Amazing tutorial Pedro! Thank you

  • @enfoshorts
    @enfoshorts 10 месяцев назад

    Straight to the point , Thank man

  • @s.bamahfoodh
    @s.bamahfoodh Год назад

    thank you so much, simple straight forward tutorial

  • @chesnelnicolas8079
    @chesnelnicolas8079 2 года назад +2

    Hi Pedro, great video !!!
    btw where can we see the discord channel link?

  • @Faatihahmed
    @Faatihahmed 2 года назад +1

    Great stuff as always pedro

  • @oghenefejiroprinceimene6090
    @oghenefejiroprinceimene6090 Год назад

    thank you. your videos as been really helpful. thank you so much

  • @marcola4767
    @marcola4767 Год назад

    Na moral mano, teus vídeos são mt bons e o teu sotaque/pronuncia é um dos melhores q já vi de br fazendo video em inglês.

  • @jakemcinerney865
    @jakemcinerney865 2 года назад

    This is fantastic - just subscribed! Thanks!

  • @tomo6723
    @tomo6723 2 года назад +2

    great work as always!

  • @444ous
    @444ous 2 года назад

    Pedro you JS Wizard ❤

  • @hi-tk4hu
    @hi-tk4hu Год назад

    thank you man really easy to understand

  • @Coder-Journey
    @Coder-Journey 2 года назад

    Thank you for this amazing tutorial .. and funny thing idk why i hear you say ear instead or year xD

  • @abouyousuf00
    @abouyousuf00 Год назад

    Very good tutorial, thanks pedro

  • @zylascope
    @zylascope 2 года назад +1

    Thanks. Great tutorial. What snippets plugin are you using?

  • @kyokyokyokyokyokyokyo
    @kyokyokyokyokyokyokyo 2 года назад

    Pedro tech você é o melhor

  • @IllBecomeEngineer
    @IllBecomeEngineer Год назад +1

    What if we want to make two graphs one for userGain and one for userLoss and What if I want to fetch data using mysql

  • @gaborvaszi3234
    @gaborvaszi3234 2 года назад

    Thank you for this video. It helped me a lot.

  • @yuritalinda
    @yuritalinda 2 года назад

    GREAT VIDEO!!!! We want more!!! Thank you!

  • @eshw23
    @eshw23 2 года назад +6

    Great tutorial Pedro. Do you know why every time I use React Router v6, even from your own tutorial I always render a blank page? Thanks.

    • @maxwelochieng7658
      @maxwelochieng7658 2 года назад +2

      I am having this problem too. I am forced to use version 5 because everytime you use Link tag you get blank page even after using routes and Router and BrowserRouter

    • @ankurprajapati3799
      @ankurprajapati3799 2 года назад

      Can you guys share a snippet?

    • @PedroTechnologies
      @PedroTechnologies  2 года назад

      Yeah, can you share a snippet of your code here?

    • @eshw23
      @eshw23 2 года назад +1

      I deleted it because it wasnt working . Right now at work all day but will upload it at night sorry.

    • @PedroTechnologies
      @PedroTechnologies  2 года назад +2

      @@eshw23 no worries, will be here to help! Also, if you want to ask more questions, feel free to join our discord.

  • @InnoViewIndoTech
    @InnoViewIndoTech Год назад

    Awesome...i have connecting firebase 🔥keren rek

  • @Kunal-jp8tn
    @Kunal-jp8tn 2 года назад

    Thank you so much man this worked for me....

  • @faluyiajibola221
    @faluyiajibola221 2 года назад

    This is really nice, subscribed

  • @Simon-kj7on
    @Simon-kj7on 2 года назад +1

    Hey Pedro, will you please make same video but using Firestore v9? Thank you

  • @MrSaint-ch6xn
    @MrSaint-ch6xn 2 года назад +1

    I don't know how you and RUclips is reading my mind 🙏🏻 😊

  • @EanasEanu
    @EanasEanu Год назад

    Thank you for the video. how to add label on the chart section in pie chart
    ??

  • @albordignon
    @albordignon 2 года назад

    Thanks Pedro. It helps a lot.

  • @saidmaroc8448
    @saidmaroc8448 2 года назад +1

    thanks Pedro

  • @k303k
    @k303k Год назад

    thank you pedro.

  • @almirsilva838
    @almirsilva838 Год назад

    Very Good! It1s very usefull! Thanks!

  • @AkashYadav-tc2lo
    @AkashYadav-tc2lo 7 месяцев назад

    Thanks for the video, i was using the pie chart but i want to show the values inside of pie chart included of pie chart not exluded how to show them ?

  • @richardwilliam7030
    @richardwilliam7030 2 года назад +3

    Stop reading my mind bro.
    Thanks

  • @Hauang-cf8lm
    @Hauang-cf8lm 6 месяцев назад

    Thank you so much, I love you 😂😂❤❤

  • @ThColinPereira
    @ThColinPereira 2 года назад +1

    Super helpful!

  • @ohiwantyoutobelieve
    @ohiwantyoutobelieve Год назад

    Very helpful, thanks

  • @mohammadjavadaghazadehfard7873
    @mohammadjavadaghazadehfard7873 2 года назад

    Hi, Thanks 🙏 That's very cool 👌🌹 . please make more videos like this 🙏🙏🌹🌹 . Good luck 🙏

  • @ahmedhanif5055
    @ahmedhanif5055 2 года назад

    Great video... Just need little help, I am fetching data from backend successfully but unable to render it to the frontend. Any suggestions will be helpful

  • @poojagarva
    @poojagarva 2 года назад

    very nice tutorial. Thanks for sharing!

  • @jscwanc30
    @jscwanc30 2 года назад +1

    Hello, I installed react-chartjs2 but it gives code 500 error. I tried to install react native chart kit etc, but there is always this error. Why do you think it might be? In the error message it says it found react-chartjs2 in node modules folder. but it says main module cannot be resolved. and inside dist it says index cjs not found either. but when i go to node modules folder this file is there. I would be glad if you help
    Here is the full sentence. "However, this package itself specifies a `main` module field that could not be resolved"

  • @EmptyNonsens
    @EmptyNonsens 2 года назад

    Great job man

  • @Ashishpaunarkar1
    @Ashishpaunarkar1 2 года назад +1

    Hey ! Thanks for the video, is there a way to unit test these charts using jest ? If yes, could you please explain it?

  • @silasu36779
    @silasu36779 2 года назад

    Hi, I can't see the chart.js dependency in my json so the package does not work. What should I do?

  • @greeneffel
    @greeneffel 2 года назад

    This is awesome! Really thank you😀🤗

  • @simpleciscovoicetutorials79
    @simpleciscovoicetutorials79 2 года назад

    Really great video. Thanks!!

  • @haciendadad
    @haciendadad 2 года назад

    I couldn't get the graphing to work. Getting this error in App.js: ReferenceError: Cannot access 'userData' before initialization, weird because everything was the same has what he wrote.

  • @maxwelochieng7658
    @maxwelochieng7658 2 года назад +3

    Good job bro. Hey I have a favor to ask, I recently completed Node and Express course and there was this filed in user model; isAdmin: true or false . can you create a frontend tutorial with MERN that will work in a way that if a user with isAdmin: true logs in they are directed to the admin dashboard but if a user with isAdmin: false proceed to the main webpage?

    • @PedroTechnologies
      @PedroTechnologies  2 года назад

      I have a video on protected routes if you are interested. However I can definitely do something like this!

    • @maxwelochieng7658
      @maxwelochieng7658 2 года назад

      @@PedroTechnologies I will appreciate bro

  • @shubhamsinghvi9338
    @shubhamsinghvi9338 2 года назад

    Great Video, Loved It !!! ❤✌

  • @mubashir9659
    @mubashir9659 2 года назад

    Thanks for quick help..

  • @tsarm___
    @tsarm___ 2 года назад

    i have problem when using this on next.js typescirpt

  • @FULLUPE1
    @FULLUPE1 2 года назад +1

    hey pedro thanks for the video , but i have little issue trying to use dynamic data from an api but is how the chart , is there anything i should do? thanks

  • @mil0s251
    @mil0s251 Год назад

    hi, why do you use useState, when you never actually set any state?

  • @bazz6932
    @bazz6932 Год назад

    Please how do you hide the grid lines

  • @paneurhythmie
    @paneurhythmie Год назад

    Hi Pedro, thank you for you video. I have a question: It is possible to use react-chartjs-2 with react server components?

  • @andreespinoza5902
    @andreespinoza5902 Год назад

    great video bro

  • @TheZayzoo
    @TheZayzoo 2 года назад

    what extension is that in your imports?
    And thanks, I was wondering why my chart wouldnt display, I didnt have the Chart import! Many thanks

  • @MarcosEsqueda
    @MarcosEsqueda 2 года назад

    I have tried this but using TS and it was painful. Creating a chart with combined bars and lines was impossible for me.

  • @AnasLazar-d6v
    @AnasLazar-d6v 9 месяцев назад

    how did you write rfce and get the function

  • @hylianmike1275
    @hylianmike1275 2 года назад

    thank you very much for this

  • @ibrahimacanada
    @ibrahimacanada 2 года назад +1

    Perfect !!!

  • @kruno25
    @kruno25 2 года назад

    Hi Pedro, verygood content...I have one question, I need for project on college create search trough years...example, I click on option button year 2020 and then get chart with resolved, rejected and total number of reported faults...is my idea feasible?

  • @anuanusha73
    @anuanusha73 2 года назад

    can we use pie chart for strings

  • @vikasbhatia6388
    @vikasbhatia6388 Год назад

    Is scaling on y axis is done automatically or we have to set

  • @sarowaralam8993
    @sarowaralam8993 2 года назад

    I have been facing some issues while adding chart components. My react version is 18 and also I tried in react v17, nothing works. Can you please help me how can I integrate chart in latest version of react..

  • @p1k1m4ru
    @p1k1m4ru 8 месяцев назад

    it was great! thank u!

  • @amirsalehi3643
    @amirsalehi3643 2 года назад

    Hi, Pedro. Thank you for great video. I can't install react-chartjs-2. I'm getting an error and I think it should be for my react version, I'm using react 18 and it was saying the react-chartjs-2 version 4.0.1 is for react earlier version. Can you help me?

  • @siriusFish1
    @siriusFish1 2 года назад

    Great video

  • @mofe620
    @mofe620 2 года назад

    Thank you so much

  • @dawarlatif3832
    @dawarlatif3832 Год назад

  • @npcdusun
    @npcdusun 2 года назад

    Great tutorial brother 🕺🏿🕺🏿

  • @artnevka779
    @artnevka779 Год назад

    Thank bro appriciate it

  • @birarr
    @birarr 2 года назад

    Hello Pedro, great tutorial. But I'm having the following problem "Uncaught SyntaxError: Unexpected token '

    • @jhalmu
      @jhalmu 2 года назад +1

      I had that too. Then I switched to react-app without typscript etc.

    • @birarr
      @birarr 2 года назад +1

      @@jhalmu yeah, I was using Vitejs to create the project. With create-react-app it worked fine.

    • @jhalmu
      @jhalmu 2 года назад +1

      @@birarr Same to me. "Sadly".

  • @azanshaikh7825
    @azanshaikh7825 Год назад

    Anyone else getting a "missing class properties transform" error ?

  • @jhalmu
    @jhalmu 2 года назад

    "Line 6:20: 'setDemoData' is assigned a value but never used" so we don't need that?

    • @jhalmu
      @jhalmu 2 года назад

      In another place there was insturctions how to do so setDemoData was used. Now I think do we really need useState? Well I will see, cos type='line' didn't wokl via state (plain const works for react...) and I try to use plain Chart -tag, not etc.

  • @chasec4897
    @chasec4897 2 года назад

    Anyone have any idea how to change the y-axis to either $ or £ ?

  • @KondzioTVstudio
    @KondzioTVstudio Год назад

    not working i got problems.

  • @soumelee5661
    @soumelee5661 5 месяцев назад

    good video

  • @Brogle288
    @Brogle288 2 года назад

    good vid

  • @md.mohiulislam6516
    @md.mohiulislam6516 Год назад

    tnx

  • @ashancole5700
    @ashancole5700 2 года назад

    This was a great video to get started with ChartJs in React! However, I am stuck on trying to change the default Chart settings so I can change my font. I read online to import {defaults} from react-chartjs-2 but such an import doesn't exist when I try. Any help would be much appreciated.

    • @sebvaaa
      @sebvaaa Год назад

      Hey, not sure if u ever find a solution but im reading this just now..
      const option = {
      scales: {
      x: {
      ticks: {
      font: {
      family: "Work Sans",
      size: 14,
      weight: '500',
      },
      },
      },
      },
      plugins: {
      legend: {
      display: true,
      labels: {
      font: {
      family: "Work Sans",
      size: 12,
      },
      },
      },
      tooltip: {
      bodyFont: {
      size: 12,
      family: "Work Sans",
      },
      },
      },
      };

  • @syedaoufaq
    @syedaoufaq Год назад

    great

  • @tomoko-nofake7463
    @tomoko-nofake7463 2 года назад

    clap clap clap clap clap clap and like

  • @urmirahmanfiona
    @urmirahmanfiona 2 года назад

    🤟

  • @shivaramr1170
    @shivaramr1170 2 года назад

    Donut chart? 😅

  • @Fatima-ie5kj
    @Fatima-ie5kj 2 года назад

    as always awesome content kindly can u make a video on react + gsap and make a cool web animation i see on youtuber there's no good video on this & there is some but outdated can u make one thankyou