diff options
| author | mfrank01 <[email protected]> | 2014-07-29 16:11:38 -0600 |
|---|---|---|
| committer | mfrank01 <[email protected]> | 2014-07-29 16:21:37 -0600 |
| commit | 1aed4d61f773fb24d198d643ae4ae062e2789620 (patch) | |
| tree | 8bb6c71a1fddd8e87420fe04130ec44cc6655dd9 /lib/axlsx/util/validators.rb | |
| parent | 2aec0203fcca35dcecd5dca5e9081bc6090f5e8b (diff) | |
| download | caxlsx-1aed4d61f773fb24d198d643ae4ae062e2789620.tar.gz caxlsx-1aed4d61f773fb24d198d643ae4ae062e2789620.zip | |
Allow custom marker symbol shapes on chart
Diffstat (limited to 'lib/axlsx/util/validators.rb')
| -rw-r--r-- | lib/axlsx/util/validators.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index c9ee2e6e..9c6f34aa 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -304,4 +304,8 @@ module Axlsx RestrictionValidator.validate :visibility, [:visible, :hidden, :very_hidden], v end + # Requires that the value is one of :default, :circle, :dash, :diamond, :dot, :picture, :plus, :square, :star, :triangle, :x + def self.validate_marker_symbol(v) + RestrictionValidator.validate :marker_symbol, [:default, :circle, :dash, :diamond, :dot, :picture, :plus, :square, :star, :triangle, :x], v + end end |
