plot_simple 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/plot_simple.rb +3 -0
  2. data/plot_simple.gemspec +1 -1
  3. metadata +1 -1
@@ -4,6 +4,8 @@ module PlotSimple
4
4
  def newBarChart
5
5
  @chart = Hash[]
6
6
  @chart.merge!(:categories=>[])
7
+ #following line is to avoid URLS from being shown for point labels
8
+ @chart.merge!(:pointLabels=>[])
7
9
  end
8
10
 
9
11
  def setTitle(title)
@@ -36,6 +38,7 @@ module PlotSimple
36
38
  def addCategory(tick,size,link)
37
39
  category = Hash[:tick=>tick,:bar_size=>size,:link=>link]
38
40
  @chart[:categories] << category
41
+ @chart[:pointLabels] << size
39
42
  end
40
43
 
41
44
  def renderXML(chart = nil)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{plot_simple}
3
- s.version = "0.1.1"
3
+ s.version = "0.1.2"
4
4
 
5
5
  s.required_ruby_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = %q{Travis Pessetto}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plot_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: