plot_simple 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/plot_simple.rb +3 -0
- data/plot_simple.gemspec +1 -1
- metadata +1 -1
data/lib/plot_simple.rb
CHANGED
@@ -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)
|
data/plot_simple.gemspec
CHANGED