Data Display With ApexCharts | Vanilla JS & React

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

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

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

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

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

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

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

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

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

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

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

  • @andresfelipeh7586
    @andresfelipeh7586 6 лет назад

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

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

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

  • @ionut1234567891011
    @ionut1234567891011 6 лет назад

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

  • @la_place684
    @la_place684 6 лет назад

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

  • @md.akib5124
    @md.akib5124 6 лет назад +5

    love you brad and love your every tutorial.

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

  • @denissanchezleyva8954
    @denissanchezleyva8954 6 лет назад

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

  • @damienminter1999
    @damienminter1999 4 года назад

    Awesome demo - exactly what I was looking for

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

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

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

  • @cubeermaui
    @cubeermaui 6 лет назад +1

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

  • @its_magnetic
    @its_magnetic 6 лет назад

    Thank you.
    Love and Respect from Sikkim, India.

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

    perfectly paced and detailed ! thanks a lot

  • @jagadeeshmanoharan9613
    @jagadeeshmanoharan9613 6 лет назад

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

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

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

  • @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 RUclips also not much clear on this.

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

  • @matthewtetley7048
    @matthewtetley7048 6 лет назад

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

  • @aidaneglin781
    @aidaneglin781 6 лет назад

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

  • @douglasbrandao391
    @douglasbrandao391 6 лет назад

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

  • @fakeapplestore4710
    @fakeapplestore4710 6 лет назад

    Lmao this channel is gonna hit a million so fast

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

  • @305bwoy
    @305bwoy 5 лет назад

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

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

  • @johncaipa
    @johncaipa 6 лет назад

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

  • @greenarrow6689
    @greenarrow6689 6 лет назад

    Brad carry on your great work...

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

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

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

  • @matthenley6704
    @matthenley6704 5 лет назад

    Love your videos, Brad! You are the master

  • @faisalamin001
    @faisalamin001 3 года назад

    So useful resources, thanks a bunch sir 😊

  • @crimsontiangco9286
    @crimsontiangco9286 6 лет назад

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

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

  • @vincentnguyen4894
    @vincentnguyen4894 4 года назад

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

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

  • @chamodnimsara7054
    @chamodnimsara7054 6 лет назад

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

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

  • @danielbabu6010
    @danielbabu6010 6 лет назад

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

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

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

  • @deEugene
    @deEugene 6 лет назад

    cool and simple, thanks!

  • @jonathansolis8913
    @jonathansolis8913 6 лет назад

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

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

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

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

  • @stergiosk6064
    @stergiosk6064 6 лет назад

    Coolest instructor on the Web. Fastest also!

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

    17:20 react

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

  • @bartm7055
    @bartm7055 5 лет назад

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

  • @railsonramessousa4990
    @railsonramessousa4990 4 года назад

    Thanks, helped a lot!

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

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

    You are genius sir love you sir 😊😊😊🙏

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

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

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

  • @K8Tech
    @K8Tech 6 лет назад

    Great bro .. keep up the effort .. Thanks

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 6 лет назад +1

    Thank u for this awesome video

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

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

  • @Isookov
    @Isookov 6 лет назад

    Hmm, how about course on this topic? :)

  • @nasrockz1
    @nasrockz1 6 лет назад

    Great video as always

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

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

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

  • @mquanit
    @mquanit 6 лет назад

    Awesome brad....

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

  • @rajnishpatel580
    @rajnishpatel580 6 лет назад

    thanks a lot sir for this video

  • @kesselokinga9554
    @kesselokinga9554 5 лет назад

    Thank you

  • @ShubhamRathod-jg9gt
    @ShubhamRathod-jg9gt 6 лет назад

    Sir please make video on how to make Library

  • @simonndungu1196
    @simonndungu1196 6 лет назад

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

  • @jivtheshm.r1784
    @jivtheshm.r1784 3 года назад

    @brad traversys how to add animation to this apex charts

  • @jonathansolis8913
    @jonathansolis8913 6 лет назад

    Sir, I love you ❤️, you rock!

  • @monaliza7257
    @monaliza7257 6 лет назад

    And the ​chart for react native, please.

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

  • @SandeepKongathi
    @SandeepKongathi 6 лет назад

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

  • @natqe4049
    @natqe4049 6 лет назад

    use cloneDeep of lodash

  • @maxkinli
    @maxkinli 6 лет назад

    I wanna work in Los Angeles

  • @markokafor7432
    @markokafor7432 4 года назад

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

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

    you're the best

  • @marilecanuto8705
    @marilecanuto8705 4 года назад

    Nicee

  • @YogeshYadav-tk9bh
    @YogeshYadav-tk9bh 6 лет назад

    Great....

  • @flaasher
    @flaasher 6 лет назад

    Respect 🙏

  • @hado_99bbs56
    @hado_99bbs56 6 лет назад

    Can you do authentication video with React and Auth0? Please

  • @jimfilippou
    @jimfilippou 6 лет назад

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

  • @Ali-lm7uw
    @Ali-lm7uw 6 лет назад +2

    First