jquery_cheats 4.0.2 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,6 +77,7 @@ function barChart(name,xmlurl)
77
77
  pointLabels.push(bars[i][1]);
78
78
  }
79
79
  $.jqplot(name,[bars],{
80
+ seriesColors: getSeriesColors(xml),
80
81
  seriesDefaults:
81
82
  {
82
83
  renderer: $.jqplot.BarRenderer,
@@ -234,3 +235,13 @@ function getGridBorderColor(xml)
234
235
  {
235
236
  return $(xml).find("grid borderColor").text();
236
237
  }
238
+ function getSeriesColors(xml)
239
+ {
240
+ colors = [];
241
+ $(xml).find("grid seriesColor").each(function()
242
+ {
243
+ colors.push($(this).text());
244
+ });
245
+ if(colors.length < 1)colors.push("#0f0");
246
+ return colors;
247
+ }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jquery_cheats"
5
- s.version = "4.0.2"
5
+ s.version = "4.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Travis Pessettto"]
9
- s.date = "2012-06-26"
9
+ s.date = "2012-06-27"
10
10
  s.description = "JQuery, JQPlot graphing, and other useful items for jquery."
11
11
  s.email = "travis@pessetto.com"
12
12
  s.extra_rdoc_files = ["README.md", "lib/jquery_cheats.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery_cheats
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
12
+ date: 2012-06-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: JQuery, JQPlot graphing, and other useful items for jquery.
15
15
  email: travis@pessetto.com