prawn-graph 0.0.4 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +16 -0
  3. data/.gitignore +9 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +1168 -0
  6. data/.travis.yml +17 -0
  7. data/CODE_OF_CONDUCT.md +49 -0
  8. data/CONTRIBUTORS.md +6 -0
  9. data/Gemfile +4 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +142 -0
  12. data/Rakefile +7 -43
  13. data/bin/console +14 -0
  14. data/bin/setup +8 -0
  15. data/lib/prawn-graph.rb +16 -0
  16. data/lib/prawn/graph/calculations.rb +1 -0
  17. data/lib/prawn/graph/calculations/layout_calculator.rb +108 -0
  18. data/lib/prawn/graph/chart_components.rb +2 -0
  19. data/lib/prawn/graph/chart_components/canvas.rb +138 -0
  20. data/lib/prawn/graph/chart_components/series_renderer.rb +173 -0
  21. data/lib/prawn/graph/charts.rb +4 -0
  22. data/lib/prawn/graph/charts/bar.rb +18 -0
  23. data/lib/prawn/graph/charts/base.rb +69 -0
  24. data/lib/prawn/graph/charts/legacy.rb +4 -0
  25. data/lib/prawn/graph/charts/legacy/bar.rb +28 -0
  26. data/lib/prawn/graph/charts/legacy/base.rb +193 -0
  27. data/lib/prawn/graph/charts/legacy/grid.rb +51 -0
  28. data/lib/prawn/graph/charts/legacy/line.rb +39 -0
  29. data/lib/prawn/graph/charts/line.rb +18 -0
  30. data/lib/prawn/graph/extension.rb +59 -0
  31. data/lib/prawn/graph/series.rb +79 -0
  32. data/lib/prawn/graph/theme.rb +41 -0
  33. data/lib/prawn/graph/version.rb +5 -0
  34. data/prawn-graph.gemspec +42 -0
  35. metadata +156 -80
  36. data/README.markdown +0 -64
  37. data/examples/example_helper.rb +0 -10
  38. data/examples/graph/advanced_bar_chart.rb +0 -22
  39. data/examples/graph/bar_chart.pdf +0 -185
  40. data/examples/graph/bar_chart.rb +0 -18
  41. data/examples/graph/line_chart.pdf +0 -219
  42. data/examples/graph/line_chart.rb +0 -18
  43. data/examples/graph/themed_bar_chart.rb +0 -18
  44. data/examples/graph/themed_line_chart.rb +0 -18
  45. data/lib/prawn/graph.rb +0 -94
  46. data/lib/prawn/graph/bar.rb +0 -64
  47. data/lib/prawn/graph/base.rb +0 -231
  48. data/lib/prawn/graph/chart.rb +0 -4
  49. data/lib/prawn/graph/errors.rb +0 -7
  50. data/lib/prawn/graph/grid.rb +0 -50
  51. data/lib/prawn/graph/line.rb +0 -74
  52. data/lib/prawn/graph/themes.rb +0 -116
  53. data/lib/prawn/graph/themes/37signals.yml +0 -14
  54. data/lib/prawn/graph/themes/keynote.yml +0 -14
  55. data/lib/prawn/graph/themes/monochome.yml +0 -8
  56. data/lib/prawn/graph/themes/odeo.yml +0 -14
@@ -1,14 +0,0 @@
1
- name: 37signals
2
- title: 37 Signals Theme
3
- font_color: 'FFFFFF'
4
- marker_color: 'FFFFFF'
5
- background_colour: 'D1EDF5'
6
- stroke_grid_markers: 0
7
- colours:
8
- - '339933'
9
- - 'cc99cc'
10
- - '336699'
11
- - 'FFF804'
12
- - 'ff0000'
13
- - 'cf5910'
14
- - '000000'
@@ -1,14 +0,0 @@
1
- name: keynote
2
- title: Keynote Theme
3
- font_color: 'FFFFFF'
4
- background_colour: '000000'
5
- marker_colour: 'FFFFFF'
6
- stroke_grid_markers: 0
7
- colours:
8
- - '6886B4'
9
- - 'FDD84E'
10
- - '72AE6E'
11
- - 'D1695E'
12
- - '8A6EAF'
13
- - 'EFAA43'
14
- - 'FFFFFF'
@@ -1,8 +0,0 @@
1
- name: monochrome
2
- title: Monochrome Theme
3
- font_color: '000000'
4
- marker_color: '000000'
5
- background_colour: 'FFFFFF'
6
- stroke_grid_markers: 1
7
- colours:
8
- - 'AAAAAA'
@@ -1,14 +0,0 @@
1
- name: odeo
2
- title: Odeo Theme
3
- font_color: 'FFFFFF'
4
- marker_color: 'FFFFFF'
5
- stroke_grid_markers: 0
6
- background_colour: 'FF47A4'
7
- colours:
8
- - '202020'
9
- - 'FFFFFF'
10
- - 'A21764'
11
- - '8AB438'
12
- - '999999'
13
- - '3A5B87'
14
- - '000000'