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

Charty with Rails

Charty with Rails

Charty with Rails - RailsConf2019

秒速284km

May 01, 2019
Tweet

More Decks by 秒速284km

Other Decks in Programming

Transcript

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

    View Slide

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

    View Slide

  3. I’m from
    Asakusa.rb

    View Slide

  4. View Slide

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

    View Slide

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

    View Slide

  7. Nice to meet you
    • ruby/csv
    • I made it 1.5x - 3x faster
    • red-data-tools/charty
    • I will introduce! Write
    Code

    View Slide

  8. I will not talk about csv today.
    ( Details here )
    https://slide.rabbit-shocker.org/
    authors/kou/rubykaigi-2019/

    View Slide

  9. red-data-tools/
    Charty

    View Slide

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

    View Slide

  11. Charty is convinient

    View Slide

  12. For example, there is data as below…

    View Slide

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

    View Slide

  14. Visualize as below …

    View Slide

  15. Visualize as below …

    View Slide

  16. Visualize as below

    View Slide

  17. Visualize as below

    View Slide

  18. About Charty

    View Slide

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

    View Slide

  20. Abstraction Layer
    We can do what you want in a
    combination of different
    languages, data structures, and
    libraries.

    View Slide

  21. Data Abstraction Layer
    • Daru::DataFrame
    • Numo::NArray
    • NMatrix
    • ActiveRecord

    View Slide

  22. Plotting Abstraction Layer
    • Matplotlib
    • Gruff
    • rubyplot
    • chart.js (Experimental implementation)
    • 284km/benchmark_driver-output-charty

    View Slide

  23. Charty with Rails application

    View Slide

  24. Charty with Rails application

    View Slide

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

    View Slide

  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

    View Slide

  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

    View Slide