Charty with Rails - RailsConf2019
Charty with RailsRailsConf 2019 LTKazuma Furuhashi @284km
View Slide
Hello! •My name is Kazuma•I’m from Japan
I’m fromAsakusa.rb
Nice to meet you • Kazuma Furuhashi• GitHub: @284km• Asakusa.rb• Programmer• ruby/csv• red-data-tools/charty
Nice to meet you • Kazuma Furuhashi• GitHub: @284km• Asakusa.rb• Programmer• ruby/csv• red-data-tools/chartyWriteCode
Nice to meet you • ruby/csv• I made it 1.5x - 3x faster• red-data-tools/charty• I will introduce! WriteCode
I will not talk about csv today.( Details here )https://slide.rabbit-shocker.org/authors/kou/rubykaigi-2019/
red-data-tools/Charty
Charty is …open-sourceRuby library forvisualization.
Charty is convinient
For example, there is data as below…
That's all codes we need to write !
Visualize as below …
Visualize as below
About Charty
Charty has two abstraction layers• Data Abstraction Layer• Plotting Abstraction Layer
Abstraction LayerWe can do what you want in acombination of differentlanguages, data structures, andlibraries.
Data Abstraction Layer• Daru::DataFrame• Numo::NArray• NMatrix• ActiveRecord
Plotting Abstraction Layer• Matplotlib• Gruff• rubyplot• chart.js (Experimental implementation)• 284km/benchmark_driver-output-charty
Charty with Rails application
284km/benchmark_driver-output-charty$ be benchmark-driver examples/parse.yaml -o charty
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
Write code, Have fun!• Charty is an open-source Ruby library for visualizingyour data in a simple way.• https://github.com/red-data-tools/charty