How to Filter Dates from PHP MYSQL Database to Javascript to Chart JS

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 19

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

    Thank you so much for this. I made a few modifications so it will show the very last row from the database as the end date dynamically and then I found a tutorial online to subtract that date by one month so it will show a months worth of data by default. I did this since my table has at least 3 months of data and showing all of it all at once was not very user friendly or easy to digest visually. I really appreciate this tutorial and I hope you continue to do a great job.

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

    Thank you so much sir 😊
    If there is no date in the database, will count zero appear in the chart?

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

    thanks a lot for this clear turo

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

    Thank you so much sir

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

    Thank you, perfekt!

  • @charmquark0
    @charmquark0 3 місяці тому

    how would you go about the 50k values ( the Ajax) method. Would you say load the page first, then ask ajax for the data and update it once it has received it

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

    Wooow, thanks 😊

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

    28:14 where did you get myChart.update() function? is that build in fn?

    • @ChartJS-tutorials
      @ChartJS-tutorials  2 роки тому

      Hi Rasel, thank you for your question. Yes the update() is a build in function from Chart.js which is designed to update the values of the chart.

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

    Can the entire code be downloaded somewhere? I checked the link in the description, but could not find it.

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

    Please tell us about filtering with time as well.

    • @ChartJS-tutorials
      @ChartJS-tutorials  2 роки тому

      Hi Safi, thank you for your question. Have you seen this video: ua-cam.com/video/vmp3czGfw2U/v-deo.html

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

      @@ChartJS-tutorials Yes I have checked it out I need specifically the time(input type="time") for filtering with date as well
      Thanks for your response

    • @mindaugasl.9329
      @mindaugasl.9329 2 роки тому

      @@safiullah7184 yes it would be helpful to have a date and time inputs combined. Is it possible?

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

    Sir, could you also please show an example using ajax with php where the data is filtered using dates. I am stuck as when I POST the dates using ajax, and use them to filter data on the server side, it doesn't work for some reason. If you could give an example, it would be really helpful. Thank you.

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

    What did u do at 17:39

    • @ChartJS-tutorials
      @ChartJS-tutorials  Рік тому

      You mean when the mouse leaves the screen? I clicked on the tab that opens Chartjs.org which was just outside of the recorded screen.

  • @VinaySehgal-sb8nf
    @VinaySehgal-sb8nf Рік тому

    provide source code?