This Ruby script run.rb
is a static site generator. It data mines or text mines a folder of XML Schema files as well as the MIT License (only for the d3pie charts) and generates statistics on elements and attributes (the XML Schema) or on words (the License).
The config file: config.xml
stores most of the websites configuration information and can be easily customized.
A fancy feature is the ability to switch between using all d3pie, Google Charts, Chart.js or plotly.js based pie charts just by changing the config entry chart_type
to one of d3pie
, google
, chartjs
or plotly
.
The site config entry chart_type
can be set to all
which displays all chart types, each chart type on its own page.
The home page has a selection of both d3pie JavaScript charts and some PNG charts created from using the Python packages Seaborn and Matplotlib.
For all four styles of pie charts we have both Donut
and Pie
style charts.
The advantage of the d3pie chart is its interactive clickable pie charts pieces.
The advantage of the Google Chart pie chart is its in built ability to create a chart legend.
The advantage of the Chart.js pie chart is its interactive clickable legend.
The plotly.js pie charts are by far the most interactive out of the box.
Even the README.md file is created from the config.xml
config file.
Demo can be seen here: Slurp Code - Charts
- macOS High Sierra
- macOS X El Capitan
- Windows 10
- Homebrew
- Chocolatey
- Ruby
- RubyMine
- Rubocop
- rbenv
- ruby-build
- kramdown
- RubyCritic
- Bundler
- Chroma
- CSV gem
- Atom
- linter
- linter-pylint
- linter-rubocop
- Sublime Text
- SublimeLinter
- SublimeLinter-pylint
- SublimeLinter-rubocop
- Sublime Text Markdown Preview
- Python
- PyCharm
- Seaborn
- pandas
- Matplotlib
- Pylint
- Perl
- cloc
- d3pie
- D3
- Google Charts
- Chart.js
- plotly.js
- HTML5
- CSS3
- Bootstrap
- jQuery
- JSON
- JavaScript
- YAML
- XML
- XML Schema
- Regular expressions
- Concatenation
- Git
- GitHub Desktop
- GitHub Pages
- GitHub:buttons
- Flag Counter
- Sitemaps
- Markdown
- robots.txt
- Portable Network Graphics
- ICO
- GIF
- CSV
- Text file
- Shields.io
- MacVim
- RVM