Data Display With ApexCharts | Vanilla JS & React

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 125

  • @mp3mitchp3
    @mp3mitchp3 6 ปีที่แล้ว +23

    Traversy is my secret weapon for looking like I know what the hell I'm doing. Spoiler I have no idea what I'm doing. Thanks dude!

  • @Ash-em5pm
    @Ash-em5pm 6 ปีที่แล้ว +69

    Bro do you even sleep ? It's been like 40 hours since you uploaded a 4 video series and now here's another. How do you do create content so fast buddy? You and Your workflow are freaking amazing.

    • @TraversyMedia
      @TraversyMedia  6 ปีที่แล้ว +55

      :) yeah I sleep. I work about 9 hours per day, maybe 10 some days. I really enjoy what I do which helps a ton. Don't get me wrong, I do feel burned out at times just like anyone, but overall I do exactly what I want to do in life which is coding and helping people

    • @Ash-em5pm
      @Ash-em5pm 6 ปีที่แล้ว +4

      @@TraversyMedia thanks a lot for all the hard work that you do my friend. Without you , people like me would have never endeavoured to learn CS and programming . By the way the django course is really amazing, thanks for that too.

    • @valentinkhomuteno6825
      @valentinkhomuteno6825 6 ปีที่แล้ว

      Did I get it right - this blog is your full-time job?

    • @tonimaunde
      @tonimaunde 6 ปีที่แล้ว

      You are a great Teacher. Thanks to you i am close to finish a real app using Vue js and a Laravel API.

    • @arrowb
      @arrowb 6 ปีที่แล้ว

      its passion bro.... it passion that keeps pushing and pushing you..

  • @AsifMehedi
    @AsifMehedi 6 ปีที่แล้ว +4

    What a find. I'm blown away by how quickly I can get a beautiful and polished chart up and running (up and animating?). I'm going to spend this weekend to make something impressive.
    Thanks for bringing this to our attention.

  • @giftedfingers2580
    @giftedfingers2580 6 ปีที่แล้ว +34

    Brad it's time for The Traversy Media podcast show...

    • @argeelearner3978
      @argeelearner3978 6 ปีที่แล้ว +3

      Brad started recently for his patreon's www.patreon.com/traversymedia/posts

  • @Eupolemos
    @Eupolemos 6 ปีที่แล้ว

    That not-statement in the end blew my mind. Simple and awesome.

  • @andresmontoya7852
    @andresmontoya7852 6 ปีที่แล้ว

    Awesome! And one thing to mention, you can use the state without the constructor, like this:
    state = {
    options: [],
    name: {}
    }
    And that's it!

  • @cloudagnostic
    @cloudagnostic 6 ปีที่แล้ว +7

    Was watching a c++ video and a Traversy notification popped up. Now I’m here!

    • @tkdevlop
      @tkdevlop 6 ปีที่แล้ว +1

      cherno?

    • @cloudagnostic
      @cloudagnostic 6 ปีที่แล้ว +1

      Nope. it was D. Banas

    • @giftedfingers2580
      @giftedfingers2580 6 ปีที่แล้ว +1

      C++ is just a monster good luck man

    • @tkdevlop
      @tkdevlop 6 ปีที่แล้ว +1

      @@cloudagnostic cherno is best for cpp and graphics programming.

  • @pramodkhatri840
    @pramodkhatri840 6 ปีที่แล้ว +12

    Can we have a tutorial where we can learn to render dynamic data rather than static ones?

  • @romimaximus
    @romimaximus 4 ปีที่แล้ว

    wow, i thought it would be more dificult than this...but you nailed it...awesome..thnakx Brad...you´re the man...thankx for sharing it..!!

  • @themoon51
    @themoon51 6 ปีที่แล้ว +1

    For anyone wanting to conditionally display 'Vertical' or 'Horizontal' text for their button
    {this.state.options.plotOptions.bar.horizontal===false?'Horizontal':'Vertical'}

  • @karsongrady
    @karsongrady 6 ปีที่แล้ว +1

    Thank you. If you would ever do a full video and/or paid course that showed how you can have data for certain users and depending on who is logged in, it shows their data in these super nice charts and that dashboard that you showed. That would be nice for me. I have aspirations of building an admin panel for a survey data visualization application and I have no real experience except following along to your videos for fun. Thanks again for all the great stuff.

  • @andresfelipeh7586
    @andresfelipeh7586 6 ปีที่แล้ว

    you are one of the best teachers of youtube, awesome, thank you very much.

  • @camzpras3435
    @camzpras3435 5 ปีที่แล้ว

    Brad once I make money from my Apps, I will definitely donate to you on Patreon. I have learned so much from you.

  • @md.akib5124
    @md.akib5124 6 ปีที่แล้ว +5

    love you brad and love your every tutorial.

  • @denissanchezleyva8954
    @denissanchezleyva8954 6 ปีที่แล้ว

    Brad, I clicked Like before Watch this video. Really You Never disappoint me. Congratulation Man. You are my favourite Instructor.

  • @nataliagolubeva4726
    @nataliagolubeva4726 3 ปีที่แล้ว

    Thank you for the nice introduction. Working for the project and its my first experience with the charts. Your explanations are neat and clear. Its very helpful video for my work

  • @ionut1234567891011
    @ionut1234567891011 6 ปีที่แล้ว

    hello brad, i want to thank you for everthing ! much love and health for you and your family!

  • @nigerianairbender3609
    @nigerianairbender3609 6 ปีที่แล้ว

    Thanks for everything Brad. Please we need an in depth video on react native. Even if it's on udemy, we'll really appreciate.

  • @ArtisanPvP
    @ArtisanPvP 6 ปีที่แล้ว +2

    Nice video. Pretty good explained. I am not so familiar with react. Can i ask what is the advantage to make it in react instead of vanilla js?

  • @ajvaran8008
    @ajvaran8008 ปีที่แล้ว

    17:20 react

  • @Archil1997
    @Archil1997 6 ปีที่แล้ว

    29:00 Manipulating the state this way generally is a bad practice because of the way React updates it's state. React may batch multiple setState calls into a single update for performance, so this.state may not be updated yet. React docs reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous recommend using a function in setState instead of an object. Function will recieve previous state as the first argument. So instead of writing:
    this.setState({
    options: {
    ...this.state.options,
    plotOptions: {
    ...this.state.options.plotOptions,
    bar: {
    ...this.state.options.plotOptions.bar,
    horizontal: !this.state.options.plotOptions.bar
    }
    }
    }
    })
    You will write:
    this.setState(prevState => ({
    options: {
    ...prevState.options,
    plotOptions: {
    ...prevState.options.plotOptions,
    bar: {
    ...prevState.options.plotOptions.bar,
    horizontal: !prevState.options.plotOptions.bar
    }
    }
    }
    }))

  • @RealParadox85
    @RealParadox85 6 ปีที่แล้ว +1

    Yeah Brad, this is nice! A little Javascript Data Visualization course would be sick too, LOTS of React jobs I have been applying for lately seem to want that. I have some experience with React Sparklines data charts, but this seems cooler.

  • @damienminter1999
    @damienminter1999 4 ปีที่แล้ว

    Awesome demo - exactly what I was looking for

  • @la_place684
    @la_place684 6 ปีที่แล้ว

    I tried doing pretty much the same thing with d3 but this is much easier! Thank you

  • @ParanoidNotAndroid
    @ParanoidNotAndroid 2 ปีที่แล้ว

    perfectly paced and detailed ! thanks a lot

  • @cubeermaui
    @cubeermaui 6 ปีที่แล้ว +1

    Awesome video as always. Can't wait to use this in my project.

  • @aidaneglin781
    @aidaneglin781 6 ปีที่แล้ว

    Jesus christ dude you're on some next level shit. Truly amazing.

  • @its_magnetic
    @its_magnetic 6 ปีที่แล้ว

    Thank you.
    Love and Respect from Sikkim, India.

  • @fakeapplestore4710
    @fakeapplestore4710 6 ปีที่แล้ว

    Lmao this channel is gonna hit a million so fast

  • @workflowinmind
    @workflowinmind 5 ปีที่แล้ว

    29:01 You should not use state in setState directly, as it's async you are not guaranteed the state value is right.

  • @laalithaindrajith5708
    @laalithaindrajith5708 4 ปีที่แล้ว

    Does anyone know how to change the color according to the changes that we did using fill.color values? Because i tried to change the colors using fill.colors option, the bar colors were changed.but the tooltip colors weren't changed..

  • @sergiolima2391
    @sergiolima2391 4 ปีที่แล้ว

    Hello friend! There is some way to have a fixed Yaxis in a scatter chart? Do you know anything about it? tks a lot!

  • @matteobarbieri2989
    @matteobarbieri2989 6 ปีที่แล้ว

    Nice video Brad,
    just a little remark: you changed the color in pink/red but the tooltip circle remained blue

    • @junedchhipa
      @junedchhipa 6 ปีที่แล้ว +1

      That's because Brad changed options.fill.colors property. There is a generic options.colors property which targets all elements' colors (bars/markers in tooltip) . You should use that one :)

  • @jonathansolis8913
    @jonathansolis8913 6 ปีที่แล้ว

    Hey brad, what made u decied to change to MaxOS over windows?

  • @simbajonrenzbryan7047
    @simbajonrenzbryan7047 3 ปีที่แล้ว

    Hi! Is there a function where I can sort the data ascending or in descending order in apexchart?

  • @davidasiamah2898
    @davidasiamah2898 5 ปีที่แล้ว

    I need help populating the series with dynamic data. As it is now when I pass a mapped object to it it returns an error

  • @ViditKothari
    @ViditKothari 4 ปีที่แล้ว

    Hi,
    I need help; sincerely need answer to this (I have been searching and trying as much possible):
    ChartJS vs ApexCharts
    Isn't ChartJS' documentation awful ?

  • @sankarnatarajan9343
    @sankarnatarajan9343 3 ปีที่แล้ว

    Hi Man, nice tutorial and interested to try the annotation part. How do we dynamically add the annotation for Xaxis dates? Especially, the same annotation for multiple occurrences.

  • @tamalmondal8550
    @tamalmondal8550 5 ปีที่แล้ว

    Can you tell me what is the best(according to you) js library for adding charts? you have used chart.js, apexCharts, d3.js, etc. There are so many options so I need some suggestions, I am using angular for frontend which requests a backend API for data, Thanks for all the great tutorials! :)

  • @CerealTuesday
    @CerealTuesday 6 ปีที่แล้ว

    Yet another awesome tutorial, cheers Brad! I honestly don’t know how you find the time, I can’t keep up with just following along with your videos never mind producing great content. I’ve not long since bought your Python course, can’t wait to get started👍 Again, superb stuff👌

  • @matthenley6704
    @matthenley6704 5 ปีที่แล้ว

    Love your videos, Brad! You are the master

  • @douglasbrandao391
    @douglasbrandao391 6 ปีที่แล้ว

    that video was awesome brad, thank you so much!!

  • @gaborszekely8387
    @gaborszekely8387 6 ปีที่แล้ว +1

    Hey Brad,
    I have a question for you, if you don't mind me asking. I am currently new to programming and am having a great time learning new languages and working on projects on my own. However, I have a fear that if I go into the field professionally, it may destroy my passion for coding and leave me unable to enjoy my job. Do you think this is a valid concern, and if so, what can be done to abate this?
    Cheers, and thanks so much for all your great content!
    Gabe

  • @mystickid1
    @mystickid1 6 ปีที่แล้ว

    @Brad Would you mind sharing your vscode settings and extensions? Really like your setup. COuld be a video if you want too. Thx

  • @daravattanak_ros
    @daravattanak_ros 6 ปีที่แล้ว

    Thanks for your awesome tutorial sir, and I had an issue when I'm trying to integrate it into my existing project then it doesn't work after that I'm going to create a new react app and it's work.....What's the problem of this issue sir?

  • @hrudayd7665
    @hrudayd7665 6 ปีที่แล้ว

    Hi Brad,
    Thanks for teaching us,
    Your are like God gift for us.
    If possible Please do videos on jasmine testing in angular (spec.ts) file please no videos in your channel and your courses and TH-cam also not much clear on this.

  • @johncaipa
    @johncaipa 6 ปีที่แล้ว

    Great video, do you have one with maps and react?

  • @prathameshsuryavanshi6598
    @prathameshsuryavanshi6598 2 ปีที่แล้ว

    How do I travel through series part so to change the data part??

  • @Alessandro-nq3tm
    @Alessandro-nq3tm 6 ปีที่แล้ว +5

    Thank you Brad ! I think i will change from chart.js to apexchart because has a lot more options

    • @n_fan329
      @n_fan329 6 ปีที่แล้ว

      Alessandro same here !!!

    • @seanmelodi
      @seanmelodi 6 ปีที่แล้ว

      Hello. Do you know where I an find a bell curve chart from npm?
      Thanks😊

  • @bartm7055
    @bartm7055 5 ปีที่แล้ว

    Is it possible to feed those charts with the data from database? I would love to have them dynamic somehow ;)

  • @greenarrow6689
    @greenarrow6689 6 ปีที่แล้ว

    Brad carry on your great work...

  • @matthewtetley7048
    @matthewtetley7048 6 ปีที่แล้ว

    Could you possibly do a react or angular video utilising a testing framework as well possibly as part of a series

  • @akshaykulkarni7357
    @akshaykulkarni7357 ปีที่แล้ว

    Can you use api and do it , using multiple apexcharts charts

  • @jatinraj4974
    @jatinraj4974 6 ปีที่แล้ว +4

    Full vanilla js based API project (Eg- giphy API)😍😅😅😅

    • @peoray
      @peoray 6 ปีที่แล้ว +1

      He has tons of similar videos, just check out his previous videos or the JS playlist

  • @305bwoy
    @305bwoy 5 ปีที่แล้ว

    Can you do a deeper dive to this for dashboards,etc?

  • @Quetzalcoatl0
    @Quetzalcoatl0 6 ปีที่แล้ว

    ApexCharts vs Charts.js ?
    Currently i'm using Charts.js but i have some problem with it. I don't have some of the functionality that i think ApexCharts has. How well it copes with the window resizing? Is it mobile friendly? Is it easy to change the data on the fly ?

    • @junedchhipa
      @junedchhipa 6 ปีที่แล้ว +1

      Quetzalcoalt Apexcharts automatically resizes itself on window resize. There are responsive media queries by which you can configure different options for different screen sizes.
      Also, it is very easy to change data. You have to call updateSeries method. If you use React, it does update automatically on prop change.
      Disclaimer: I am the maker of ApexCharts.js

    • @Quetzalcoatl0
      @Quetzalcoatl0 6 ปีที่แล้ว +1

      Then i'm switching to ApexCharts.js, using Vue btw. ^_^.
      I'm having too many problems with Chart.js

  • @michaelzucker772
    @michaelzucker772 6 ปีที่แล้ว

    Hi Brad. I very much appreciate you videos and have purchased your Udemy courses. One question about the setState for the toggle near the end. I see you passed an object instead of a function. Does it matter anymore? Would it be preferred to call setState((prevState) => { //other state items here, !prevState.options.plot.optionsBar.horizontal}) this way? Thank you!

    • @PsychoGod9898
      @PsychoGod9898 6 ปีที่แล้ว +1

      Yes, the function call would usually be better. The reason for this is, that setState is asynchronous. So if you have multiple setState commands after each other, you cannot be sure, that this.state already contains the changes from the last setState call.

  • @jagadeeshmanoharan9613
    @jagadeeshmanoharan9613 6 ปีที่แล้ว

    Dear Brad, what will be your next Udemy course????
    Can we expect some Java or C# contents?

  • @pcgs_
    @pcgs_ 6 ปีที่แล้ว

    Great Tutorial Brad! Do you suggest any library for React Native?

    • @tkdevlop
      @tkdevlop 6 ปีที่แล้ว

      For UI react native elements for navigation react navigation(V2) most good once come bundled with expo :)

    • @pcgs_
      @pcgs_ 6 ปีที่แล้ว

      Thanks and for charts?

  • @vincentnguyen4894
    @vincentnguyen4894 4 ปีที่แล้ว

    Really nice tips, is it possible to do the same in react native ? using google analytics ? thanks :)

  • @faisalamin001
    @faisalamin001 3 ปีที่แล้ว

    So useful resources, thanks a bunch sir 😊

  • @chamodnimsara7054
    @chamodnimsara7054 6 ปีที่แล้ว

    hats off.... you are like a god to me ! keep this up man..... truly amazing work

  • @danielbabu6010
    @danielbabu6010 6 ปีที่แล้ว

    Now I am Happy ! Thanks ----> Brad !

  • @crimsontiangco9286
    @crimsontiangco9286 6 ปีที่แล้ว

    Thank you, Please create pagination tutorial using express, mongoose ejs or handlebars thank you Brad 😁

  • @nusratabbas2193
    @nusratabbas2193 6 ปีที่แล้ว +1

    Can't we just create a regular JS object? And pass it as the ApexChart Options? Why the 'state'?

    • @junedchhipa
      @junedchhipa 6 ปีที่แล้ว +1

      Yes, that's entirely valid. Brad used state just to show the reactivity of the charts - meaning how you can change state and the charts will update.

  • @lexsoft3969
    @lexsoft3969 6 ปีที่แล้ว

    I have never known this chart library because it's not listed in the so called top 7 or 10 chart libraries on sites I have ever visited. I just visited the official site of this chart library, and it looked nice, I will try it later.
    Now I want to know : what is your recommendation about datagrid library, especially one that has good integration with React ?
    I have just done a survey on 3 libraries : Datatables.net, Handsontable-React and React-Datagrid.
    Datatables.net is good, but I need a version of editable Datatables.net which is not free. If I only need for non-editable view, I choose Datatables.net. For an editable datagrid, currently I am exploring on Handsontable-React and React-Datagrid.
    Any suggestion ?

  • @anujitdash9178
    @anujitdash9178 6 ปีที่แล้ว

    Hi Brad,
    I follow all your videos and they are awesome. I was going through this video and exploring charts other than bar. I am not able to see the labels when I am using Pie, Donut and radialBar chart. This issue comes when I am using react, works fine when I am using normal JavaScript. Can you please help me in this.

    • @junedchhipa
      @junedchhipa 6 ปีที่แล้ว

      Hi Anujit, the example code was wrong for donut/radialBar. I have updated the Github repository. Please check the latest example code for donut/radial-bar to know how to apply labels to those charts

    • @anujitdash9178
      @anujitdash9178 6 ปีที่แล้ว

      @@junedchhipa thanks. It works now.

  • @josealfonso2117
    @josealfonso2117 5 ปีที่แล้ว

    Thanks for the video. I have a question: Has anyone created a forest plot chart with ApexCharts? If so, can you please share a codepen? Thanks

  • @aaxk
    @aaxk 6 ปีที่แล้ว

    this is niceeee. thanks for the upload mate. I appreciate it.

  • @K8Tech
    @K8Tech 6 ปีที่แล้ว

    Great bro .. keep up the effort .. Thanks

  • @jivtheshm.r1784
    @jivtheshm.r1784 3 ปีที่แล้ว

    @brad traversys how to add animation to this apex charts

  • @nasrockz1
    @nasrockz1 6 ปีที่แล้ว

    Great video as always

  • @stergiosk6064
    @stergiosk6064 6 ปีที่แล้ว

    Coolest instructor on the Web. Fastest also!

  • @Thegame2.M
    @Thegame2.M ปีที่แล้ว

    You are genius sir love you sir 😊😊😊🙏

  • @deEugene
    @deEugene 6 ปีที่แล้ว

    cool and simple, thanks!

  • @jimothyus
    @jimothyus 6 ปีที่แล้ว

    Does anyone know how he uses emmet in react jsx i cant seem to figure it out

    • @maxiequa567
      @maxiequa567 6 ปีที่แล้ว

      vscode? some combination of the following in preferences/settings.json, add :
      ...
      "emmet.includeLanguages": {
      "javascript": "html",
      "jsx":"jsx",
      "react-jsx":"react-jsx",
      "react-html":"react-html"
      },
      "emmet.triggerExpansionOnTab":True,
      "emmet.syntaxProfiles": {
      "javascript": "jsx"
      },
      ...
      Process of elimination and remove where redundant

  • @mquanit
    @mquanit 6 ปีที่แล้ว

    Awesome brad....

  • @railsonramessousa4990
    @railsonramessousa4990 4 ปีที่แล้ว

    Thanks, helped a lot!

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 6 ปีที่แล้ว +1

    Thank u for this awesome video

  • @Isookov
    @Isookov 6 ปีที่แล้ว

    Hmm, how about course on this topic? :)

  • @simonndungu1196
    @simonndungu1196 6 ปีที่แล้ว

    Brad the machine, Thanks as always, Vue guys !!

  • @jimfilippou
    @jimfilippou 6 ปีที่แล้ว

    Big shout out to the guy behind apex-charts github.com/junedchhipa he did an amazing work, give some starzz

  • @dimitrisefstathiadis6562
    @dimitrisefstathiadis6562 6 ปีที่แล้ว +1

    How about some D3.js?? The docs aren't very good and not much Content either. Would be great. Keep up the good work...

  • @ShubhamRathod-jg9gt
    @ShubhamRathod-jg9gt 6 ปีที่แล้ว

    Sir please make video on how to make Library

  • @SandeepKongathi
    @SandeepKongathi 6 ปีที่แล้ว

    @Brad - Is the Dashboard interactive, if I select a pie in Pie Chart, does the linked Graphs change?

  • @jonathansolis8913
    @jonathansolis8913 6 ปีที่แล้ว

    Sir, I love you ❤️, you rock!

  • @kangqian8288
    @kangqian8288 6 ปีที่แล้ว

    Hallo, sir..
    When time do tutorial nativescript??
    Cause nativescript have hot reload so good now. I think sir shouls try it too.

  • @kesselokinga9554
    @kesselokinga9554 5 ปีที่แล้ว

    Thank you

  • @rajnishpatel580
    @rajnishpatel580 6 ปีที่แล้ว

    thanks a lot sir for this video

  • @zanzaraloggan3713
    @zanzaraloggan3713 10 หลายเดือนก่อน

    you're the best

  • @monaliza7257
    @monaliza7257 6 ปีที่แล้ว

    And the ​chart for react native, please.

  • @flaasher
    @flaasher 6 ปีที่แล้ว

    Respect 🙏

  • @natqe4049
    @natqe4049 6 ปีที่แล้ว

    use cloneDeep of lodash

  • @YogeshYadav-tk9bh
    @YogeshYadav-tk9bh 6 ปีที่แล้ว

    Great....

  • @markokafor7432
    @markokafor7432 4 ปีที่แล้ว

    Do you know of any free scheduler libraries out there. Thanks

  • @maxkinli
    @maxkinli 6 ปีที่แล้ว

    I wanna work in Los Angeles

  • @marilecanuto8705
    @marilecanuto8705 4 ปีที่แล้ว

    Nicee

  • @Ali-lm7uw
    @Ali-lm7uw 6 ปีที่แล้ว +2

    First

  • @hado_99bbs56
    @hado_99bbs56 6 ปีที่แล้ว

    Can you do authentication video with React and Auth0? Please