Using React (Hooks) with D3 - [02] Curved Line Chart

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

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

  • @manajalali5447
    @manajalali5447 4 ปีที่แล้ว +16

    Can't thank you enough for these videos, your teaching is superb! I'm so excited to watch the rest

    • @Valelacerte
      @Valelacerte 4 ปีที่แล้ว +1

      I totally agree. The explanations of what is passed, expected and generated are so simple. I was feeling kind of down about my limited understanding of React and D3, but this tutorial series has cheered me up. When it is explained well, it's not _that_ complicated.

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

    honstly, this is the best d3 tutorial ever

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

    Literally followed this for a code challenge I am working on with my own data coming from an API and it worked like magic. Thank you so much for this

  • @pabloreyes2026
    @pabloreyes2026 4 ปีที่แล้ว +5

    These are such great videos, thank you very much for sharing them !

  • @evolutionxbox
    @evolutionxbox 5 ปีที่แล้ว +5

    Informative. Short. Nice!

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

    crisp and to the point. Thanks!

  • @0the0ambient0
    @0the0ambient0 2 ปีที่แล้ว

    Great series. Thanks

  • @sohail24x7
    @sohail24x7 3 ปีที่แล้ว +1

    Thank you Muri, I was wondering how I could get the index of the data points, (index or value) on the click event?

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

      Hi Sohail! I am assuming you are using D3 version 6, please check out my latest video on the channel! (v5 -> v6)

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

      @@muratorium You are right there, I am on the D3 version 6, my doubt however is that even if I implement it that way, since line's data property consumes an array of the data, like .data([myDataPoints]), the index returned is always 0. I was wondering if I could get the index of each of the data points on the x axis

  • @thomasa2736
    @thomasa2736 4 ปีที่แล้ว +1

    Really helpful content.......Thank you.

  • @kuroketanItem
    @kuroketanItem 4 ปีที่แล้ว +2

    great video bro..., keep up the good work , really help me learn react + d3 :love:

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

    Such a work! Can I just ask. Whey when you are visialization circles, .data are without [], but in case of path there are in [data]? Thanks!

  • @biomathcode
    @biomathcode 3 ปีที่แล้ว +1

    This is a very great series. You can increase the volume of this videos and they would become far more better.

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

      Hey Pratik, this was the case for the first videos I made, I was a beginner. But I believe that with video 03 onward, the audio quality got better. Thanks for the comment!

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

      ​@@muratorium Okay thanks for telling me. I will definitely do watch the remaining of the videos

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

    Best d3 + react videos. Thanks a lot! I've been procrastinating going deep. Is there any other series from you not available on youtube?

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

    Great videos man

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

    I am trying to do this but in react native. Is the syntax the same?

  • @moem.sultan4519
    @moem.sultan4519 4 ปีที่แล้ว

    Save my sprint. I'm working on crating a pie/donut chart and am still unsure as to how to implement the update/enter call backs. Do i write a map function to map from data array to path component after the join? Do I just place the svg element in the render or svg and G? Where do arcs fit in all of this? So many questions. The tutorial was superb subbed and liked.

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

    Hi Sir, how to make the SVG full screen in react?

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

    like the way you did

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

    Does this work in react native?

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

    which d3 types version are you using ?

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

      No types, this is not TypeScript

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

    Hi Muri, Facing some issue after following this video. The issue is every-time my state changes the line chart with new data is added to the same chart along with the existing line path. Whereas what I am looking for as my state changes I do not want the new path added to the same chart rather I am looking new line chart based on the new state data. What change would I need to make to re-render the whole component. Sample is here vizhub.com/gjonor/e78aa232bf624629854a38340e36679a?edit=files&file=index.js

    • @muratorium
      @muratorium  4 ปีที่แล้ว +1

      Rohini Loya Hi Rohini, problem is on line 50. When setting a class, do not say ".line" (with the dot), only use it when selecting elements. Just say .attr("class", "line")

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

      @@muratorium Muri, I really appreciate you replied to my query and solved a problem. I have another problem, cannot be mentioned in brief over here. I would email you. I know it will be quick thing for you.