pulse_meter-dygraphs_visualizer 0.4.15 → 0.4.16

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.
@@ -19,6 +19,14 @@ class WidgetPresenter
19
19
  labelsDiv: @legendEl
20
20
  labelsSeparateLines: false
21
21
  rightGap: 30
22
+ highlightCircleSize: 2
23
+ strokeWidth: 1
24
+ strokeBorderWidth: 1
25
+
26
+ highlightSeriesOpts:
27
+ strokeWidth: 2
28
+ strokeBorderWidth: 1
29
+ highlightCircleSize: 5
22
30
  }
23
31
 
24
32
  mergedOptions: ->
@@ -29,7 +37,7 @@ class WidgetPresenter
29
37
 
30
38
  $.extend(true,
31
39
  @options(),
32
- @globalOptions.dygraphsOptions,
40
+ @globalOptions().dygraphsOptions,
33
41
  pageOptions,
34
42
  @get('dygraphsOptions')
35
43
  )
@@ -59,3 +59,6 @@ select#extend-timespan-val {
59
59
  margin-left: 0;
60
60
  }
61
61
 
62
+ #legend span.highlight {
63
+ border: 1px solid gray;
64
+ }
@@ -270,14 +270,22 @@ WidgetPresenter = (function() {
270
270
  return {
271
271
  labelsDiv: this.legendEl,
272
272
  labelsSeparateLines: false,
273
- rightGap: 30
273
+ rightGap: 30,
274
+ highlightCircleSize: 2,
275
+ strokeWidth: 1,
276
+ strokeBorderWidth: 1,
277
+ highlightSeriesOpts: {
278
+ strokeWidth: 2,
279
+ strokeBorderWidth: 1,
280
+ highlightCircleSize: 5
281
+ }
274
282
  };
275
283
  };
276
284
 
277
285
  WidgetPresenter.prototype.mergedOptions = function() {
278
286
  var pageOptions;
279
287
  pageOptions = this.pageInfos.selected() ? this.pageInfos.selected().get('dygraphsOptions') : {};
280
- return $.extend(true, this.options(), this.globalOptions.dygraphsOptions, pageOptions, this.get('dygraphsOptions'));
288
+ return $.extend(true, this.options(), this.globalOptions().dygraphsOptions, pageOptions, this.get('dygraphsOptions'));
281
289
  };
282
290
 
283
291
  WidgetPresenter.prototype.data = function() {
@@ -285,6 +293,7 @@ WidgetPresenter = (function() {
285
293
  };
286
294
 
287
295
  WidgetPresenter.prototype.draw = function() {
296
+ console.log(this.mergedOptions());
288
297
  return this.chart.draw(this.data(), this.mergedOptions());
289
298
  };
290
299
 
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
15
  gem.name = "pulse_meter-dygraphs_visualizer"
16
16
  gem.require_paths = ["lib"]
17
- gem.version = "0.4.15"
17
+ gem.version = "0.4.16"
18
18
 
19
19
  gem.add_runtime_dependency('pulse_meter_core')
20
20
  gem.add_runtime_dependency('gon-sinatra')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulse_meter-dygraphs_visualizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.15
4
+ version: 0.4.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-09 00:00:00.000000000 Z
13
+ date: 2013-11-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pulse_meter_core
@@ -468,7 +468,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
468
468
  version: '0'
469
469
  segments:
470
470
  - 0
471
- hash: 1357323714148990149
471
+ hash: 3396170172697498398
472
472
  requirements: []
473
473
  rubyforge_project:
474
474
  rubygems_version: 1.8.23