Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Charty with Rails

Charty with Rails

Charty with Rails - RailsConf2019

7ef4ab70ee295c821f8b77fab3aa87cf?s=128

秒速284km

May 01, 2019
Tweet

Transcript

  1. Charty with Rails RailsConf 2019 LT Kazuma Furuhashi @284km

  2. Hello! •My name is Kazuma •I’m from Japan

  3. I’m from Asakusa.rb

  4. None
  5. Nice to meet you • Kazuma Furuhashi • GitHub: @284km

    • Asakusa.rb • Programmer • ruby/csv • red-data-tools/charty
  6. Nice to meet you • Kazuma Furuhashi • GitHub: @284km

    • Asakusa.rb • Programmer • ruby/csv • red-data-tools/charty Write Code
  7. Nice to meet you • ruby/csv • I made it

    1.5x - 3x faster • red-data-tools/charty • I will introduce! Write Code
  8. I will not talk about csv today. ( Details here

    ) https://slide.rabbit-shocker.org/ authors/kou/rubykaigi-2019/
  9. red-data-tools/ Charty

  10. Charty is … open-source Ruby library for visualization.

  11. Charty is convinient

  12. For example, there is data as below…

  13. That's all codes we need to write !

  14. Visualize as below …

  15. Visualize as below …

  16. Visualize as below

  17. Visualize as below

  18. About Charty

  19. Charty has two abstraction layers • Data Abstraction Layer •

    Plotting Abstraction Layer
  20. Abstraction Layer We can do what you want in a

    combination of different languages, data structures, and libraries.
  21. Data Abstraction Layer • Daru::DataFrame • Numo::NArray • NMatrix •

    ActiveRecord
  22. Plotting Abstraction Layer • Matplotlib • Gruff • rubyplot •

    chart.js (Experimental implementation) • 284km/benchmark_driver-output-charty
  23. Charty with Rails application

  24. Charty with Rails application

  25. 284km/benchmark_driver-output-charty $ be benchmark-driver examples/parse.yaml -o charty

  26. Future Plans • Data Abstraction Layer • Support Red::Arrow •

    Improve benchmark_driver-output-charty • Plotting Abstraction Layer • Add type of graph that can be output • Support bokeh ? maybe. • More convenient
  27. Write code, Have fun! • Charty is an open-source Ruby

    library for visualizing your data in a simple way. • https://github.com/red-data-tools/charty