Permalink
Browse files

First import from Subversion

  • Loading branch information...
0 parents commit d73857acda3ac414016a8b9fd0b69b907ed96ff4 @topfunky committed Mar 11, 2008
Showing with 1,291 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +69 −0 CHANGELOG
  3. 0 History.txt
  4. +21 −0 MIT-LICENSE
  5. +64 −0 Manifest.txt
  6. +20 −0 README.txt
  7. +22 −0 Rakefile
  8. +763 −0 lib/sparklines.rb
  9. +28 −0 lib/sparklines_helper.rb
  10. BIN samples/area-high.png
  11. BIN samples/area.png
  12. BIN samples/discrete.png
  13. BIN samples/pie-large.png
  14. BIN samples/pie.png
  15. BIN samples/pie0.png
  16. BIN samples/pie1.png
  17. BIN samples/pie100.png
  18. BIN samples/pie45.png
  19. BIN samples/pie95.png
  20. BIN samples/pie99.png
  21. BIN samples/smooth-colored.png
  22. BIN samples/smooth.png
  23. BIN test/expected/area.png
  24. BIN test/expected/area_high.png
  25. BIN test/expected/area_min_max.png
  26. BIN test/expected/bar.png
  27. BIN test/expected/bar_extreme_values.png
  28. BIN test/expected/bar_string.png.png
  29. BIN test/expected/bar_tall.png
  30. BIN test/expected/bar_wide.png
  31. BIN test/expected/bullet_basic.png
  32. BIN test/expected/bullet_colorful.png
  33. BIN test/expected/bullet_full_featured.png
  34. BIN test/expected/bullet_tall.png
  35. BIN test/expected/bullet_wide.png
  36. BIN test/expected/discrete.png
  37. BIN test/expected/discrete_wide.png
  38. BIN test/expected/error.png
  39. BIN test/expected/labeled_area.png
  40. BIN test/expected/labeled_bar.png
  41. BIN test/expected/labeled_discrete.png
  42. BIN test/expected/labeled_pie.png
  43. BIN test/expected/labeled_smooth.png
  44. BIN test/expected/labeled_whisker_decimals.png
  45. BIN test/expected/pie.png
  46. BIN test/expected/pie0.png
  47. BIN test/expected/pie1.png
  48. BIN test/expected/pie100.png
  49. BIN test/expected/pie45.png
  50. BIN test/expected/pie95.png
  51. BIN test/expected/pie99.png
  52. BIN test/expected/pie_flat.png
  53. BIN test/expected/pie_large.png
  54. BIN test/expected/smooth.png
  55. BIN test/expected/smooth_colored.png
  56. BIN test/expected/smooth_similar_nonzero_values.png
  57. BIN test/expected/smooth_underneath_color.png
  58. BIN test/expected/smooth_with_target.png
  59. BIN test/expected/standard_deviation.png
  60. BIN test/expected/standard_deviation_short.png
  61. BIN test/expected/standard_deviation_tall.png
  62. BIN test/expected/whisker.png
  63. BIN test/expected/whisker_junk.png
  64. BIN test/expected/whisker_non_exceptional.png
  65. BIN test/expected/whisker_with_step.png
  66. +302 −0 test/test_all.rb
@@ -0,0 +1,2 @@
+.DS_Store
+test/actual/*
@@ -0,0 +1,69 @@
+== 0.5.0
+
+* Documentation for bullet graph.
+* More bullet options for good_color, satisfactory_color, and bad_color.
+* Smooth options for target line value and target_color.
+* Sparklinks.plot_to_image returns a Magick::Image object for further manipulation.
+* Step option for wider whisker.
+
+== 0.4.8
+
+* Added bullet graph. See http://en.wikipedia.org/wiki/Bullet_graph or Stephen Few's book _Information Dashboard Design_.
+
+== 0.4.7
+
+* Improved normalization for better display of close, high-values. [Matt Van Horn]
+* Improved rendering of closed polyline on smooth graph with undercolor. Far left, right, and bottom of polyline are drawn offscreen so they don't show in the visible graph.
+
+== 0.4.6
+
+* Added :underneath_color option to smooth sparkline. [Cory Forsyth]
+
+== 0.4.5
+
+* Several fixes by Rob Biedenharn
+* lib/sparklines_helper.rb: Include example code for generating "data:" URLs (but leave it commented out due to lack of widespread testing)
+* lib/sparklines_helper.rb: allow results to be passed in the options hash (i.e., sparkline_tag(nil, :results => [ ... ], ...))
+* lib/sparklines.rb: Move calculation of whisker endpoints out of loop
+* lib/sparklines.rb: Fix fencepost bug in whisker that caused plot to be 1 pixel short
+
+== 0.4.4
+
+* Fixed stddev rounding bug [Andrew Nutter-Upham]
+
+== 0.4.3
+
+* Minor change for use with Hoe.
+
+== 0.4.2
+
+* Added standard deviation bars [Andrew Nutter-Upham]
+
+== 0.4.1
+
+* Converted to Hoe for rakefile
+* Added whisker graph [Luke Francl]
+* General cleanup and bug fixes
+* Experimental label option
+
+== 0.3.0
+
+* Changed to a Class for maintainability
+* All values are normalized (except pie)
+* A single value can be passed for the pie percentage (instead of an Array)
+
+== 0.2.7
+
+* Fixed bug where last element of bar graph wouldn't go to the bottom [Esad Hajdarevic esad@esse.at]
+
+== 0.2.5
+
+* Tests now use Test::Unit
+* Bar type added
+
+== 0.2.1
+
+* Added line_color option for smooth graphs
+* Now available as a gem ('gem install sparklines') and as a rails generator ('gem install sparklines_generator')
+
+
No changes.
@@ -0,0 +1,21 @@
+Copyright (c) 2005 Geoffrey Grosenbach boss@topfunky.com
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
@@ -0,0 +1,64 @@
+CHANGELOG
+MIT-LICENSE
+Manifest.txt
+README.txt
+Rakefile
+lib/sparklines.rb
+lib/sparklines_helper.rb
+samples/area-high.png
+samples/area.png
+samples/discrete.png
+samples/pie-large.png
+samples/pie.png
+samples/pie0.png
+samples/pie1.png
+samples/pie100.png
+samples/pie45.png
+samples/pie95.png
+samples/pie99.png
+samples/smooth-colored.png
+samples/smooth.png
+test/expected/area.png
+test/expected/area_high.png
+test/expected/area_min_max.png
+test/expected/bar.png
+test/expected/bar_extreme_values.png
+test/expected/bar_string.png.png
+test/expected/bar_tall.png
+test/expected/bar_wide.png
+test/expected/bullet_basic.png
+test/expected/bullet_colorful.png
+test/expected/bullet_full_featured.png
+test/expected/bullet_tall.png
+test/expected/bullet_wide.png
+test/expected/discrete.png
+test/expected/discrete_wide.png
+test/expected/error.png
+test/expected/labeled_area.png
+test/expected/labeled_bar.png
+test/expected/labeled_discrete.png
+test/expected/labeled_pie.png
+test/expected/labeled_smooth.png
+test/expected/labeled_whisker_decimals.png
+test/expected/pie.png
+test/expected/pie0.png
+test/expected/pie1.png
+test/expected/pie100.png
+test/expected/pie45.png
+test/expected/pie95.png
+test/expected/pie99.png
+test/expected/pie_flat.png
+test/expected/pie_large.png
+test/expected/smooth.png
+test/expected/smooth_colored.png
+test/expected/smooth_similar_nonzero_values.png
+test/expected/smooth_underneath_color.png
+test/expected/smooth_with_target.png
+test/expected/standard_deviation.png
+test/expected/standard_deviation_short.png
+test/expected/standard_deviation_tall.png
+test/expected/whisker.png
+test/expected/whisker_junk.png
+test/expected/whisker_non_exceptional.png
+test/expected/whisker_with_step.png
+test/test_all.rb
@@ -0,0 +1,20 @@
+== Sparklines
+
+A library for generating small sparkline graphs from Ruby. Use it in desktop apps or with Ruby on Rails.
+
+== Other info
+
+http://nubyonrails.com/pages/sparklines
+
+== Rails plugin
+
+http://topfunky.net/svn/plugins/sparklines
+
+== Authors
+
+Geoffrey Grosenbach
+boss@topfunky.com
+http://nubyonrails.com/pages/sparklines
+
+Daniel Nugent
+nugend@gmail.com
@@ -0,0 +1,22 @@
+
+require 'rubygems'
+require 'hoe'
+$:.unshift(File.dirname(__FILE__) + "/lib")
+require 'sparklines'
+
+Hoe.new('Sparklines', Sparklines::VERSION) do |p|
+ p.name = "sparklines"
+ p.author = "Geoffrey Grosenbach"
+ p.description = "Tiny graphs."
+ p.email = 'boss@topfunky.com'
+ p.summary = "Tiny graphs."
+ p.url = "http://nubyonrails.com/pages/sparklines"
+ p.clean_globs = ['test/actual'] # Remove this directory on "rake clean"
+ p.remote_rdoc_dir = '' # Release to root
+ p.changes = p.paragraphs_of('CHANGELOG', 0..1).join("\n\n")
+ # * extra_deps - An array of rubygem dependencies.
+end
+
+
+desc "Release and publish documentation"
+task :repubdoc => [:release, :publish_docs]
Oops, something went wrong.

0 comments on commit d73857a

Please sign in to comment.