React ChartJS Tutorial - Introduction To ChartJS

Поділитися
Вставка
  • Опубліковано 11 лис 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

  • @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

  • @mandlankosi2160
    @mandlankosi2160 2 роки тому

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

  • @ВолодимирПриходько-л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!

  • @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?

  • @onkarjoshi8811
    @onkarjoshi8811 10 місяців тому

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

  • @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 ❤

  • @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 !

  • @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!

  • @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 😊

  • @uditgupta3429
    @uditgupta3429 2 роки тому +2

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

  • @apeiron4409
    @apeiron4409 2 роки тому

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

  • @kalahari8295
    @kalahari8295 2 роки тому

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

  • @enfoshorts
    @enfoshorts 9 місяців тому

    Straight to the point , Thank man

  • @Pareshbpatel
    @Pareshbpatel Рік тому +1

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

  • @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

  • @rathishr6037
    @rathishr6037 2 роки тому +1

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

  • @s.bamahfoodh
    @s.bamahfoodh Рік тому

    thank you so much, simple straight forward tutorial

  • @tugrulerdemdogru
    @tugrulerdemdogru 2 роки тому +1

    Amazing tutorial Pedro! Thank you

  • @Faatihahmed
    @Faatihahmed 2 роки тому +1

    Great stuff as always pedro

  • @oghenefejiroprinceimene6090

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

  • @jakemcinerney865
    @jakemcinerney865 2 роки тому

    This is fantastic - just subscribed! Thanks!

  • @kyokyokyokyokyokyokyo
    @kyokyokyokyokyokyokyo 2 роки тому

    Pedro tech você é o melhor

  • @hi-tk4hu
    @hi-tk4hu Рік тому

    thank you man really easy to understand

  • @tomo6723
    @tomo6723 2 роки тому +2

    great work as always!

  • @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.

  • @yuritalinda
    @yuritalinda 2 роки тому

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

  • @abouyousuf00
    @abouyousuf00 Рік тому

    Very good tutorial, thanks pedro

  • @albordignon
    @albordignon 2 роки тому

    Thanks Pedro. It helps a lot.

  • @faluyiajibola221
    @faluyiajibola221 2 роки тому

    This is really nice, subscribed

  • @444ous
    @444ous 2 роки тому

    Pedro you JS Wizard ❤

  • @gaborvaszi3234
    @gaborvaszi3234 2 роки тому

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

  • @almirsilva838
    @almirsilva838 Рік тому

    Very Good! It1s very usefull! Thanks!

  • @Kunal-jp8tn
    @Kunal-jp8tn 2 роки тому

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

  • @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

  • @simpleciscovoicetutorials79
    @simpleciscovoicetutorials79 2 роки тому

    Really great video. Thanks!!

  • @InnoViewIndoTech
    @InnoViewIndoTech Рік тому

    Awesome...i have connecting firebase 🔥keren rek

  • @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 ?

  • @Hauang-cf8lm
    @Hauang-cf8lm 6 місяців тому

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

  • @ThColinPereira
    @ThColinPereira 2 роки тому +1

    Super helpful!

  • @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"

  • @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.

  • @ohiwantyoutobelieve
    @ohiwantyoutobelieve Рік тому

    Very helpful, thanks

  • @shubhamsinghvi9338
    @shubhamsinghvi9338 2 роки тому

    Great Video, Loved It !!! ❤✌

  • @k303k
    @k303k Рік тому

    thank you pedro.

  • @greeneffel
    @greeneffel 2 роки тому

    This is awesome! Really thank you😀🤗

  • @poojagarva
    @poojagarva 2 роки тому

    very nice tutorial. Thanks for sharing!

  • @EmptyNonsens
    @EmptyNonsens 2 роки тому

    Great job man

  • @saidmaroc8448
    @saidmaroc8448 2 роки тому +1

    thanks Pedro

  • @chesnelnicolas8079
    @chesnelnicolas8079 2 роки тому +2

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

  • @zylascope
    @zylascope 2 роки тому +1

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

  • @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

  • @p1k1m4ru
    @p1k1m4ru 8 місяців тому

    it was great! thank u!

  • @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.

  • @mubashir9659
    @mubashir9659 2 роки тому

    Thanks for quick help..

  • @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?

  • @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

  • @mohammadjavadaghazadehfard7873
    @mohammadjavadaghazadehfard7873 2 роки тому

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

  • @tsarm___
    @tsarm___ 2 роки тому

    i have problem when using this on next.js typescirpt

  • @EanasEanu
    @EanasEanu Рік тому

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

  • @MrSaint-ch6xn
    @MrSaint-ch6xn 2 роки тому +1

    I don't know how you and UA-cam is reading my mind 🙏🏻 😊

  • @richardwilliam7030
    @richardwilliam7030 2 роки тому +3

    Stop reading my mind bro.
    Thanks

  • @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

  • @mil0s251
    @mil0s251 Рік тому

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

  • @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

  • @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?

  • @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..

  • @AnasLazar-d6v
    @AnasLazar-d6v 9 місяців тому

    how did you write rfce and get the function

  • @bazz6932
    @bazz6932 Рік тому

    Please how do you hide the grid lines

  • @Simon-kj7on
    @Simon-kj7on 2 роки тому +1

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

  • @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?

  • @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

  • @vikasbhatia6388
    @vikasbhatia6388 Рік тому

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

  • @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?

  • @hylianmike1275
    @hylianmike1275 2 роки тому

    thank you very much for this

  • @dawarlatif3832
    @dawarlatif3832 Рік тому

  • @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?

  • @andreespinoza5902
    @andreespinoza5902 Рік тому

    great video bro

  • @anuanusha73
    @anuanusha73 2 роки тому

    can we use pie chart for strings

  • @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.

  • @mofe620
    @mofe620 2 роки тому

    Thank you so much

  • @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".

  • @ibrahimacanada
    @ibrahimacanada 2 роки тому +1

    Perfect !!!

  • @siriusFish1
    @siriusFish1 2 роки тому

    Great video

  • @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.

  • @npcdusun
    @npcdusun 2 роки тому

    Great tutorial brother 🕺🏿🕺🏿

  • @azanshaikh7825
    @azanshaikh7825 Рік тому

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

  • @KondzioTVstudio
    @KondzioTVstudio Рік тому

    not working i got problems.

  • @chasec4897
    @chasec4897 2 роки тому

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

  • @soumelee5661
    @soumelee5661 5 місяців тому

    good video

  • @Brogle288
    @Brogle288 2 роки тому

    good vid

  • @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",
      },
      },
      },
      };

  • @onurcanisler
    @onurcanisler 2 роки тому +1

    English Accent OMG👻

  • @syedaoufaq
    @syedaoufaq Рік тому

    great

  • @md.mohiulislam6516
    @md.mohiulislam6516 Рік тому

    tnx

  • @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