How to Create Website Graphs from CSV Files with c3.js and PapaParse

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • This video is meant to be a sort of in depth walk-through on my thought process as I create website graphs from CSV files, using two libraries. I create a line chart from a CSV file as an example.
    Github source code:
    github.com/huy...
    c3.js:
    c3js.org
    PapaParse:
    papaparse.com
    Requirements
    ===========
    The only requirement is: you need a web server.
    I chose to use python to host the web server in the project.
    I opened Cygwin Terminal. I checked if I had python on my computer.
    python --version
    Python 2.7.10
    I changed directory into the project folder and started the python web server.
    cd graphs-from-csv/
    python -m SimpleHTTPServer
    Then, I visit localhost:8000 to see the website.
    Outro song: • Pokémon Gold & Silver ...
    Twitter: / microwavesam

Komentáře • 49

  • @manuk.s.1836
    @manuk.s.1836 Před 4 lety +4

    Awesome tutorial!! Can you also update on how we can load multiple CSV and view them individually from the webpage?

  • @mohammedal-mudhafar4602
    @mohammedal-mudhafar4602 Před 7 lety +2

    This is an excellent Web graphs building presentation, Thanks a lot!

    • @wildermisael8502
      @wildermisael8502 Před 3 lety

      i realize Im kinda randomly asking but does anyone know of a good site to stream new movies online?

    • @juelzzander7687
      @juelzzander7687 Před 3 lety

      @Wilder Misael Flixportal :)

    • @wildermisael8502
      @wildermisael8502 Před 3 lety

      @Juelz Zander Thanks, signed up and it seems like they got a lot of movies there =) I appreciate it!

    • @juelzzander7687
      @juelzzander7687 Před 3 lety

      @Wilder Misael happy to help :D

  • @OliverMolnar
    @OliverMolnar Před 8 lety +3

    +MicrowaveSam i can to say only one thing: Thank you! :)

  • @wei48221
    @wei48221 Před 7 lety +2

    Excellent tutorial!!

  • @Kumar-zg7pm
    @Kumar-zg7pm Před 3 lety

    Very good tutorial...Could you please make a video on "cross-filtering" in c3.js

  • @mrunalidhenge980
    @mrunalidhenge980 Před 5 lety +1

    thanks for this video.👍 I want to know is what can we do if our data is continuous and we want to display the recently updated values of some parameters or all values of some parameters of data in the graphical format?

  • @lucasatilano8008
    @lucasatilano8008 Před 5 lety

    Great approach to teaching!!!

  • @knowledgesharing4574
    @knowledgesharing4574 Před 5 lety +1

    How to convert website graph into excel file?

  • @sujitkumarsaha770
    @sujitkumarsaha770 Před 3 lety

    Thank you so much. It was of great help:)

  • @isus8423
    @isus8423 Před 8 lety +1

    well done man...well done

  • @MsPrashant55
    @MsPrashant55 Před 7 lety +1

    hello Huy Le. this is a great video tutorial. thank you so much. i have a question. which application are you using to write the code?

    • @MicrowaveSam
      @MicrowaveSam  Před 7 lety +2

      I'm using Sublime to open the HTML and JavaScript files. Sublime is just a note/text editor. If you open a HTML file with any Internet Browser, you can see your website.
      www.sublimetext.com/

    • @MsPrashant55
      @MsPrashant55 Před 7 lety

      thank you for your reply. now i am facing another problem with Cygwin. when i try to run the command: pythin -m SimpleHTTPServer and hit enter, nothing is happening. what might be the issue? please help.

    • @MsPrashant55
      @MsPrashant55 Před 7 lety

      Hello, i successfully made the graph. now my task is to get the data which in on x axis and display it on y axis and vice versa. i tried to change the names but it not showing the result as expected. what should i do?

    • @snorlax42069
      @snorlax42069 Před 5 lety

      if you're using python 3.x it's http.server

  • @marcc2689
    @marcc2689 Před 5 lety

    Great video. Thanks

  • @PIDOtomasyon
    @PIDOtomasyon Před 3 lety

    I want to use mysql datas for generating charts in HTML page. not PHP. Urgent please. I can show mysql data in html table, but not convert to chart.
    Thank you so much.

  • @1raskumar
    @1raskumar Před 5 lety +1

    великолепно!спасибо

  • @nusgra8063
    @nusgra8063 Před 4 lety

    Hi - this is awesome. It works perfectly on local server but when i upload your GitHub to my linux website, i get unexpected token '

  • @andy.carter
    @andy.carter Před 4 lety

    I am running into an issue. My data file is reversed, my labels run along row 1 and my data runs below that. How do I modify the push to read the array as I mentioned? (for your example, the years would run on row 1 and the data for those rows would be in the columns)

  • @bassemhassan1263
    @bassemhassan1263 Před 4 lety +1

    Any one was successful to add a file selection button, how can i do that in html file or in the js file

  • @SaikatSinha_me
    @SaikatSinha_me Před 8 lety +1

    Thank You

  • @nirliptgaur
    @nirliptgaur Před 5 lety

    I wish I had a Million Dollars. Coz I need to give it to you :) Thanks Loads!

  • @shrutirajpoot6310
    @shrutirajpoot6310 Před 4 lety

    How to plot nested java

  • @grinspike
    @grinspike Před 7 lety

    Nice voice. Nice explaining

  • @moonanaii
    @moonanaii Před 7 lety

    how do you make multiple graphs with this code, without overwriting the other?

  • @TheNini666
    @TheNini666 Před 5 lety +1

    really good video, even though i dont need it, lol

  • @PeipeiZhou
    @PeipeiZhou Před 6 lety +1

    It's strange that once I change a number in spanish-silver.csv, then I got error messages like "Uncaught Error: Source data is missing a component at (0,82) .... at XMLHttpRequest. (papaparse.min.js:6)"

    • @PeipeiZhou
      @PeipeiZhou Před 6 lety

      Oh, I figured it out. The csv file should not have a new line char at the end of file for papaparse to work.

    • @saxkMr
      @saxkMr Před 6 lety

      I have the same problem. What do you mean by "new line char at the end of file" ? Thanks.

    • @axenov048
      @axenov048 Před 6 lety

      Tell me more about how you solved this problem.

  • @danishasim5037
    @danishasim5037 Před 4 lety

    can i use it with xampp?

  • @samuelcarvajal7543
    @samuelcarvajal7543 Před 8 lety

    more stuff on Nintendo maybe other than that your videos are legendary

  • @kiwhatkioracing
    @kiwhatkioracing Před 5 lety

    thanks so much!!!

  • @asamoahduah4591
    @asamoahduah4591 Před 4 lety

    I'm encountering some challenges with c3-master. I keep getting this error message "Uncaught SyntaxError: Cannot use import "import * d3 from 'd3' " statement outside a module"
    how do I solve this please .

  • @anishckumar
    @anishckumar Před 6 lety

    how we can display more the one graph in a single page? I tried already with 2 ID, but the last script only executing

    • @mrunalidhenge980
      @mrunalidhenge980 Před 5 lety

      in html add two div where you want to create graph with two different id and in .js file create two graphs within same function and add id of div to the bindto of the respective graph you want to add to the particular div.

  • @robotinthebrain
    @robotinthebrain Před 7 lety

    Why using Python when we can use Mamp and test on localhost

  • @starrebornalpha
    @starrebornalpha Před 7 lety

    How do you install c3.js on centos 7?

  • @classicryda120908
    @classicryda120908 Před 7 lety

    Hi, is it possible to have multiple charts in one page? where to edit?
    Thanks :)

    • @BolverBlitz
      @BolverBlitz Před 5 lety

      You mean like multiple y graphs?
      Sure.
      Just add as many as you like.
      data: {
      columns: [
      silverMinted,
      situadospaid
      ]
      },

  • @K0nc3pt10n
    @K0nc3pt10n Před 8 lety

    Like your videos and not to get all grammar Nazi on you, but it's "bound" not "binded."