write_xlsx 1.09.5 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -1
  3. data/Changes +8 -0
  4. data/LICENSE.txt +1 -1
  5. data/README.md +1 -1
  6. data/examples/autofilter.rb +39 -10
  7. data/examples/chart_area.rb +12 -12
  8. data/examples/chart_bar.rb +12 -12
  9. data/examples/chart_clustered.rb +12 -12
  10. data/examples/chart_column.rb +12 -12
  11. data/examples/chart_combined.rb +25 -25
  12. data/examples/chart_data_labels.rb +99 -99
  13. data/examples/chart_data_table.rb +25 -25
  14. data/examples/chart_data_tools.rb +50 -50
  15. data/examples/chart_doughnut.rb +29 -29
  16. data/examples/chart_gauge.rb +18 -18
  17. data/examples/chart_line.rb +32 -32
  18. data/examples/chart_pareto.rb +16 -16
  19. data/examples/chart_pie.rb +17 -17
  20. data/examples/chart_radar.rb +38 -38
  21. data/examples/chart_scatter.rb +12 -12
  22. data/examples/chart_secondary_axis.rb +13 -13
  23. data/examples/chart_stock.rb +12 -12
  24. data/examples/chart_styles.rb +5 -5
  25. data/examples/colors.rb +11 -11
  26. data/examples/comments2.rb +15 -15
  27. data/examples/conditional_format.rb +74 -74
  28. data/examples/data_validate.rb +64 -64
  29. data/examples/date_time.rb +3 -3
  30. data/examples/demo.rb +14 -14
  31. data/examples/diag_border.rb +6 -6
  32. data/examples/dynamic_arrays.rb +247 -0
  33. data/examples/formats.rb +10 -10
  34. data/examples/hyperlink1.rb +4 -4
  35. data/examples/ignore_errors.rb +2 -2
  36. data/examples/indent.rb +2 -2
  37. data/examples/lambda.rb +43 -0
  38. data/examples/macros.rb +4 -4
  39. data/examples/merge1.rb +1 -1
  40. data/examples/merge2.rb +9 -9
  41. data/examples/merge3.rb +5 -5
  42. data/examples/merge4.rb +20 -20
  43. data/examples/merge5.rb +18 -18
  44. data/examples/merge6.rb +7 -7
  45. data/examples/outline.rb +1 -1
  46. data/examples/outline_collapsed.rb +1 -1
  47. data/examples/panes.rb +4 -4
  48. data/examples/properties.rb +9 -9
  49. data/examples/protection.rb +2 -2
  50. data/examples/rich_strings.rb +6 -6
  51. data/examples/shape1.rb +7 -7
  52. data/examples/shape2.rb +16 -16
  53. data/examples/shape3.rb +5 -5
  54. data/examples/shape4.rb +7 -7
  55. data/examples/shape5.rb +7 -7
  56. data/examples/shape6.rb +7 -7
  57. data/examples/shape7.rb +10 -10
  58. data/examples/shape8.rb +10 -10
  59. data/examples/shape_all.rb +4 -4
  60. data/examples/sparklines1.rb +11 -11
  61. data/examples/sparklines2.rb +76 -76
  62. data/examples/tables.rb +87 -87
  63. data/examples/watermark.png +0 -0
  64. data/examples/watermark.rb +26 -0
  65. data/lib/write_xlsx/chart/bar.rb +4 -4
  66. data/lib/write_xlsx/chart/line.rb +1 -1
  67. data/lib/write_xlsx/chart/radar.rb +2 -2
  68. data/lib/write_xlsx/chart/scatter.rb +4 -4
  69. data/lib/write_xlsx/chart/series.rb +27 -27
  70. data/lib/write_xlsx/chart/stock.rb +5 -5
  71. data/lib/write_xlsx/chart.rb +31 -30
  72. data/lib/write_xlsx/chartsheet.rb +1 -0
  73. data/lib/write_xlsx/col_name.rb +1 -0
  74. data/lib/write_xlsx/colors.rb +20 -19
  75. data/lib/write_xlsx/compatibility.rb +1 -0
  76. data/lib/write_xlsx/drawing.rb +20 -10
  77. data/lib/write_xlsx/format.rb +5 -0
  78. data/lib/write_xlsx/formats.rb +1 -0
  79. data/lib/write_xlsx/gradient.rb +2 -0
  80. data/lib/write_xlsx/package/app.rb +1 -0
  81. data/lib/write_xlsx/package/button.rb +6 -2
  82. data/lib/write_xlsx/package/comments.rb +3 -1
  83. data/lib/write_xlsx/package/conditional_format.rb +4 -3
  84. data/lib/write_xlsx/package/content_types.rb +1 -0
  85. data/lib/write_xlsx/package/core.rb +1 -0
  86. data/lib/write_xlsx/package/custom.rb +1 -0
  87. data/lib/write_xlsx/package/metadata.rb +1 -0
  88. data/lib/write_xlsx/package/packager.rb +1 -0
  89. data/lib/write_xlsx/package/relationships.rb +1 -0
  90. data/lib/write_xlsx/package/shared_strings.rb +1 -1
  91. data/lib/write_xlsx/package/styles.rb +1 -0
  92. data/lib/write_xlsx/package/table.rb +9 -8
  93. data/lib/write_xlsx/package/theme.rb +1 -0
  94. data/lib/write_xlsx/package/vml.rb +1 -0
  95. data/lib/write_xlsx/package/xml_writer_simple.rb +21 -2
  96. data/lib/write_xlsx/shape.rb +6 -5
  97. data/lib/write_xlsx/sheets.rb +2 -1
  98. data/lib/write_xlsx/sparkline.rb +287 -286
  99. data/lib/write_xlsx/utility.rb +25 -26
  100. data/lib/write_xlsx/version.rb +3 -1
  101. data/lib/write_xlsx/workbook.rb +20 -20
  102. data/lib/write_xlsx/worksheet/cell_data.rb +53 -63
  103. data/lib/write_xlsx/worksheet/data_validation.rb +1 -0
  104. data/lib/write_xlsx/worksheet/hyperlink.rb +3 -2
  105. data/lib/write_xlsx/worksheet/page_setup.rb +1 -0
  106. data/lib/write_xlsx/worksheet.rb +287 -74
  107. data/lib/write_xlsx/zip_file_utils.rb +1 -0
  108. data/lib/write_xlsx.rb +1 -0
  109. data/write_xlsx.gemspec +1 -0
  110. metadata +8 -4
@@ -1,4 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'write_xlsx/utility'
4
5
 
@@ -194,7 +195,7 @@ module Writexlsx
194
195
  # Write the <x14:colorAxis> element.
195
196
  #
196
197
  def write_color_axis # :nodoc:
197
- write_spark_color('x14:colorAxis', { :_rgb => 'FF000000' })
198
+ write_spark_color('x14:colorAxis', { _rgb: 'FF000000' })
198
199
  end
199
200
 
200
201
  #
@@ -273,7 +274,7 @@ module Writexlsx
273
274
  def set_spark_color(user_color, palette_color)
274
275
  return unless palette_color
275
276
 
276
- instance_variable_set("@#{user_color}", { :_rgb => palette_color })
277
+ instance_variable_set("@#{user_color}", { _rgb: palette_color })
277
278
  end
278
279
 
279
280
  def cust_max_min(max_min) # :nodoc:
@@ -282,368 +283,368 @@ module Writexlsx
282
283
 
283
284
  def valid_sparkline_parameter # :nodoc:
284
285
  {
285
- :location => 1,
286
- :range => 1,
287
- :type => 1,
288
- :high_point => 1,
289
- :low_point => 1,
290
- :negative_points => 1,
291
- :first_point => 1,
292
- :last_point => 1,
293
- :markers => 1,
294
- :style => 1,
295
- :series_color => 1,
296
- :negative_color => 1,
297
- :markers_color => 1,
298
- :first_color => 1,
299
- :last_color => 1,
300
- :high_color => 1,
301
- :low_color => 1,
302
- :max => 1,
303
- :min => 1,
304
- :axis => 1,
305
- :reverse => 1,
306
- :empty_cells => 1,
307
- :show_hidden => 1,
308
- :date_axis => 1,
309
- :weight => 1
286
+ location: 1,
287
+ range: 1,
288
+ type: 1,
289
+ high_point: 1,
290
+ low_point: 1,
291
+ negative_points: 1,
292
+ first_point: 1,
293
+ last_point: 1,
294
+ markers: 1,
295
+ style: 1,
296
+ series_color: 1,
297
+ negative_color: 1,
298
+ markers_color: 1,
299
+ first_color: 1,
300
+ last_color: 1,
301
+ high_color: 1,
302
+ low_color: 1,
303
+ max: 1,
304
+ min: 1,
305
+ axis: 1,
306
+ reverse: 1,
307
+ empty_cells: 1,
308
+ show_hidden: 1,
309
+ date_axis: 1,
310
+ weight: 1
310
311
  }
311
312
  end
312
313
 
313
314
  def spark_styles # :nodoc:
314
315
  [
315
316
  { # 0
316
- :series => { :_theme => "4", :_tint => "-0.499984740745262" },
317
- :negative => { :_theme => "5" },
318
- :markers => { :_theme => "4", :_tint => "-0.499984740745262" },
319
- :first => { :_theme => "4", :_tint => "0.39997558519241921" },
320
- :last => { :_theme => "4", :_tint => "0.39997558519241921" },
321
- :high => { :_theme => "4" },
322
- :low => { :_theme => "4" }
317
+ series: { _theme: "4", _tint: "-0.499984740745262" },
318
+ negative: { _theme: "5" },
319
+ markers: { _theme: "4", _tint: "-0.499984740745262" },
320
+ first: { _theme: "4", _tint: "0.39997558519241921" },
321
+ last: { _theme: "4", _tint: "0.39997558519241921" },
322
+ high: { _theme: "4" },
323
+ low: { _theme: "4" }
323
324
  },
324
325
  { # 1
325
- :series => { :_theme => "4", :_tint => "-0.499984740745262" },
326
- :negative => { :_theme => "5" },
327
- :markers => { :_theme => "4", :_tint => "-0.499984740745262" },
328
- :first => { :_theme => "4", :_tint => "0.39997558519241921" },
329
- :last => { :_theme => "4", :_tint => "0.39997558519241921" },
330
- :high => { :_theme => "4" },
331
- :low => { :_theme => "4" }
326
+ series: { _theme: "4", _tint: "-0.499984740745262" },
327
+ negative: { _theme: "5" },
328
+ markers: { _theme: "4", _tint: "-0.499984740745262" },
329
+ first: { _theme: "4", _tint: "0.39997558519241921" },
330
+ last: { _theme: "4", _tint: "0.39997558519241921" },
331
+ high: { _theme: "4" },
332
+ low: { _theme: "4" }
332
333
  },
333
334
  { # 2
334
- :series => { :_theme => "5", :_tint => "-0.499984740745262" },
335
- :negative => { :_theme => "6" },
336
- :markers => { :_theme => "5", :_tint => "-0.499984740745262" },
337
- :first => { :_theme => "5", :_tint => "0.39997558519241921" },
338
- :last => { :_theme => "5", :_tint => "0.39997558519241921" },
339
- :high => { :_theme => "5" },
340
- :low => { :_theme => "5" }
335
+ series: { _theme: "5", _tint: "-0.499984740745262" },
336
+ negative: { _theme: "6" },
337
+ markers: { _theme: "5", _tint: "-0.499984740745262" },
338
+ first: { _theme: "5", _tint: "0.39997558519241921" },
339
+ last: { _theme: "5", _tint: "0.39997558519241921" },
340
+ high: { _theme: "5" },
341
+ low: { _theme: "5" }
341
342
  },
342
343
  { # 3
343
- :series => { :_theme => "6", :_tint => "-0.499984740745262" },
344
- :negative => { :_theme => "7" },
345
- :markers => { :_theme => "6", :_tint => "-0.499984740745262" },
346
- :first => { :_theme => "6", :_tint => "0.39997558519241921" },
347
- :last => { :_theme => "6", :_tint => "0.39997558519241921" },
348
- :high => { :_theme => "6" },
349
- :low => { :_theme => "6" }
344
+ series: { _theme: "6", _tint: "-0.499984740745262" },
345
+ negative: { _theme: "7" },
346
+ markers: { _theme: "6", _tint: "-0.499984740745262" },
347
+ first: { _theme: "6", _tint: "0.39997558519241921" },
348
+ last: { _theme: "6", _tint: "0.39997558519241921" },
349
+ high: { _theme: "6" },
350
+ low: { _theme: "6" }
350
351
  },
351
352
  { # 4
352
- :series => { :_theme => "7", :_tint => "-0.499984740745262" },
353
- :negative => { :_theme => "8" },
354
- :markers => { :_theme => "7", :_tint => "-0.499984740745262" },
355
- :first => { :_theme => "7", :_tint => "0.39997558519241921" },
356
- :last => { :_theme => "7", :_tint => "0.39997558519241921" },
357
- :high => { :_theme => "7" },
358
- :low => { :_theme => "7" }
353
+ series: { _theme: "7", _tint: "-0.499984740745262" },
354
+ negative: { _theme: "8" },
355
+ markers: { _theme: "7", _tint: "-0.499984740745262" },
356
+ first: { _theme: "7", _tint: "0.39997558519241921" },
357
+ last: { _theme: "7", _tint: "0.39997558519241921" },
358
+ high: { _theme: "7" },
359
+ low: { _theme: "7" }
359
360
  },
360
361
  { # 5
361
- :series => { :_theme => "8", :_tint => "-0.499984740745262" },
362
- :negative => { :_theme => "9" },
363
- :markers => { :_theme => "8", :_tint => "-0.499984740745262" },
364
- :first => { :_theme => "8", :_tint => "0.39997558519241921" },
365
- :last => { :_theme => "8", :_tint => "0.39997558519241921" },
366
- :high => { :_theme => "8" },
367
- :low => { :_theme => "8" }
362
+ series: { _theme: "8", _tint: "-0.499984740745262" },
363
+ negative: { _theme: "9" },
364
+ markers: { _theme: "8", _tint: "-0.499984740745262" },
365
+ first: { _theme: "8", _tint: "0.39997558519241921" },
366
+ last: { _theme: "8", _tint: "0.39997558519241921" },
367
+ high: { _theme: "8" },
368
+ low: { _theme: "8" }
368
369
  },
369
370
  { # 6
370
- :series => { :_theme => "9", :_tint => "-0.499984740745262" },
371
- :negative => { :_theme => "4" },
372
- :markers => { :_theme => "9", :_tint => "-0.499984740745262" },
373
- :first => { :_theme => "9", :_tint => "0.39997558519241921" },
374
- :last => { :_theme => "9", :_tint => "0.39997558519241921" },
375
- :high => { :_theme => "9" },
376
- :low => { :_theme => "9" }
371
+ series: { _theme: "9", _tint: "-0.499984740745262" },
372
+ negative: { _theme: "4" },
373
+ markers: { _theme: "9", _tint: "-0.499984740745262" },
374
+ first: { _theme: "9", _tint: "0.39997558519241921" },
375
+ last: { _theme: "9", _tint: "0.39997558519241921" },
376
+ high: { _theme: "9" },
377
+ low: { _theme: "9" }
377
378
  },
378
379
  { # 7
379
- :series => { :_theme => "4", :_tint => "-0.249977111117893" },
380
- :negative => { :_theme => "5" },
381
- :markers => { :_theme => "5", :_tint => "-0.249977111117893" },
382
- :first => { :_theme => "5", :_tint => "-0.249977111117893" },
383
- :last => { :_theme => "5", :_tint => "-0.249977111117893" },
384
- :high => { :_theme => "5", :_tint => "-0.249977111117893" },
385
- :low => { :_theme => "5", :_tint => "-0.249977111117893" }
380
+ series: { _theme: "4", _tint: "-0.249977111117893" },
381
+ negative: { _theme: "5" },
382
+ markers: { _theme: "5", _tint: "-0.249977111117893" },
383
+ first: { _theme: "5", _tint: "-0.249977111117893" },
384
+ last: { _theme: "5", _tint: "-0.249977111117893" },
385
+ high: { _theme: "5", _tint: "-0.249977111117893" },
386
+ low: { _theme: "5", _tint: "-0.249977111117893" }
386
387
  },
387
388
  { # 8
388
- :series => { :_theme => "5", :_tint => "-0.249977111117893" },
389
- :negative => { :_theme => "6" },
390
- :markers => { :_theme => "6", :_tint => "-0.249977111117893" },
391
- :first => { :_theme => "6", :_tint => "-0.249977111117893" },
392
- :last => { :_theme => "6", :_tint => "-0.249977111117893" },
393
- :high => { :_theme => "6", :_tint => "-0.249977111117893" },
394
- :low => { :_theme => "6", :_tint => "-0.249977111117893" }
389
+ series: { _theme: "5", _tint: "-0.249977111117893" },
390
+ negative: { _theme: "6" },
391
+ markers: { _theme: "6", _tint: "-0.249977111117893" },
392
+ first: { _theme: "6", _tint: "-0.249977111117893" },
393
+ last: { _theme: "6", _tint: "-0.249977111117893" },
394
+ high: { _theme: "6", _tint: "-0.249977111117893" },
395
+ low: { _theme: "6", _tint: "-0.249977111117893" }
395
396
  },
396
397
  { # 9
397
- :series => { :_theme => "6", :_tint => "-0.249977111117893" },
398
- :negative => { :_theme => "7" },
399
- :markers => { :_theme => "7", :_tint => "-0.249977111117893" },
400
- :first => { :_theme => "7", :_tint => "-0.249977111117893" },
401
- :last => { :_theme => "7", :_tint => "-0.249977111117893" },
402
- :high => { :_theme => "7", :_tint => "-0.249977111117893" },
403
- :low => { :_theme => "7", :_tint => "-0.249977111117893" }
398
+ series: { _theme: "6", _tint: "-0.249977111117893" },
399
+ negative: { _theme: "7" },
400
+ markers: { _theme: "7", _tint: "-0.249977111117893" },
401
+ first: { _theme: "7", _tint: "-0.249977111117893" },
402
+ last: { _theme: "7", _tint: "-0.249977111117893" },
403
+ high: { _theme: "7", _tint: "-0.249977111117893" },
404
+ low: { _theme: "7", _tint: "-0.249977111117893" }
404
405
  },
405
406
  { # 10
406
- :series => { :_theme => "7", :_tint => "-0.249977111117893" },
407
- :negative => { :_theme => "8" },
408
- :markers => { :_theme => "8", :_tint => "-0.249977111117893" },
409
- :first => { :_theme => "8", :_tint => "-0.249977111117893" },
410
- :last => { :_theme => "8", :_tint => "-0.249977111117893" },
411
- :high => { :_theme => "8", :_tint => "-0.249977111117893" },
412
- :low => { :_theme => "8", :_tint => "-0.249977111117893" }
407
+ series: { _theme: "7", _tint: "-0.249977111117893" },
408
+ negative: { _theme: "8" },
409
+ markers: { _theme: "8", _tint: "-0.249977111117893" },
410
+ first: { _theme: "8", _tint: "-0.249977111117893" },
411
+ last: { _theme: "8", _tint: "-0.249977111117893" },
412
+ high: { _theme: "8", _tint: "-0.249977111117893" },
413
+ low: { _theme: "8", _tint: "-0.249977111117893" }
413
414
  },
414
415
  { # 11
415
- :series => { :_theme => "8", :_tint => "-0.249977111117893" },
416
- :negative => { :_theme => "9" },
417
- :markers => { :_theme => "9", :_tint => "-0.249977111117893" },
418
- :first => { :_theme => "9", :_tint => "-0.249977111117893" },
419
- :last => { :_theme => "9", :_tint => "-0.249977111117893" },
420
- :high => { :_theme => "9", :_tint => "-0.249977111117893" },
421
- :low => { :_theme => "9", :_tint => "-0.249977111117893" }
416
+ series: { _theme: "8", _tint: "-0.249977111117893" },
417
+ negative: { _theme: "9" },
418
+ markers: { _theme: "9", _tint: "-0.249977111117893" },
419
+ first: { _theme: "9", _tint: "-0.249977111117893" },
420
+ last: { _theme: "9", _tint: "-0.249977111117893" },
421
+ high: { _theme: "9", _tint: "-0.249977111117893" },
422
+ low: { _theme: "9", _tint: "-0.249977111117893" }
422
423
  },
423
424
  { # 12
424
- :series => { :_theme => "9", :_tint => "-0.249977111117893" },
425
- :negative => { :_theme => "4" },
426
- :markers => { :_theme => "4", :_tint => "-0.249977111117893" },
427
- :first => { :_theme => "4", :_tint => "-0.249977111117893" },
428
- :last => { :_theme => "4", :_tint => "-0.249977111117893" },
429
- :high => { :_theme => "4", :_tint => "-0.249977111117893" },
430
- :low => { :_theme => "4", :_tint => "-0.249977111117893" }
425
+ series: { _theme: "9", _tint: "-0.249977111117893" },
426
+ negative: { _theme: "4" },
427
+ markers: { _theme: "4", _tint: "-0.249977111117893" },
428
+ first: { _theme: "4", _tint: "-0.249977111117893" },
429
+ last: { _theme: "4", _tint: "-0.249977111117893" },
430
+ high: { _theme: "4", _tint: "-0.249977111117893" },
431
+ low: { _theme: "4", _tint: "-0.249977111117893" }
431
432
  },
432
433
  { # 13
433
- :series => { :_theme => "4" },
434
- :negative => { :_theme => "5" },
435
- :markers => { :_theme => "4", :_tint => "-0.249977111117893" },
436
- :first => { :_theme => "4", :_tint => "-0.249977111117893" },
437
- :last => { :_theme => "4", :_tint => "-0.249977111117893" },
438
- :high => { :_theme => "4", :_tint => "-0.249977111117893" },
439
- :low => { :_theme => "4", :_tint => "-0.249977111117893" }
434
+ series: { _theme: "4" },
435
+ negative: { _theme: "5" },
436
+ markers: { _theme: "4", _tint: "-0.249977111117893" },
437
+ first: { _theme: "4", _tint: "-0.249977111117893" },
438
+ last: { _theme: "4", _tint: "-0.249977111117893" },
439
+ high: { _theme: "4", _tint: "-0.249977111117893" },
440
+ low: { _theme: "4", _tint: "-0.249977111117893" }
440
441
  },
441
442
  { # 14
442
- :series => { :_theme => "5" },
443
- :negative => { :_theme => "6" },
444
- :markers => { :_theme => "5", :_tint => "-0.249977111117893" },
445
- :first => { :_theme => "5", :_tint => "-0.249977111117893" },
446
- :last => { :_theme => "5", :_tint => "-0.249977111117893" },
447
- :high => { :_theme => "5", :_tint => "-0.249977111117893" },
448
- :low => { :_theme => "5", :_tint => "-0.249977111117893" }
443
+ series: { _theme: "5" },
444
+ negative: { _theme: "6" },
445
+ markers: { _theme: "5", _tint: "-0.249977111117893" },
446
+ first: { _theme: "5", _tint: "-0.249977111117893" },
447
+ last: { _theme: "5", _tint: "-0.249977111117893" },
448
+ high: { _theme: "5", _tint: "-0.249977111117893" },
449
+ low: { _theme: "5", _tint: "-0.249977111117893" }
449
450
  },
450
451
  { # 15
451
- :series => { :_theme => "6" },
452
- :negative => { :_theme => "7" },
453
- :markers => { :_theme => "6", :_tint => "-0.249977111117893" },
454
- :first => { :_theme => "6", :_tint => "-0.249977111117893" },
455
- :last => { :_theme => "6", :_tint => "-0.249977111117893" },
456
- :high => { :_theme => "6", :_tint => "-0.249977111117893" },
457
- :low => { :_theme => "6", :_tint => "-0.249977111117893" }
452
+ series: { _theme: "6" },
453
+ negative: { _theme: "7" },
454
+ markers: { _theme: "6", _tint: "-0.249977111117893" },
455
+ first: { _theme: "6", _tint: "-0.249977111117893" },
456
+ last: { _theme: "6", _tint: "-0.249977111117893" },
457
+ high: { _theme: "6", _tint: "-0.249977111117893" },
458
+ low: { _theme: "6", _tint: "-0.249977111117893" }
458
459
  },
459
460
  { # 16
460
- :series => { :_theme => "7" },
461
- :negative => { :_theme => "8" },
462
- :markers => { :_theme => "7", :_tint => "-0.249977111117893" },
463
- :first => { :_theme => "7", :_tint => "-0.249977111117893" },
464
- :last => { :_theme => "7", :_tint => "-0.249977111117893" },
465
- :high => { :_theme => "7", :_tint => "-0.249977111117893" },
466
- :low => { :_theme => "7", :_tint => "-0.249977111117893" }
461
+ series: { _theme: "7" },
462
+ negative: { _theme: "8" },
463
+ markers: { _theme: "7", _tint: "-0.249977111117893" },
464
+ first: { _theme: "7", _tint: "-0.249977111117893" },
465
+ last: { _theme: "7", _tint: "-0.249977111117893" },
466
+ high: { _theme: "7", _tint: "-0.249977111117893" },
467
+ low: { _theme: "7", _tint: "-0.249977111117893" }
467
468
  },
468
469
  { # 17
469
- :series => { :_theme => "8" },
470
- :negative => { :_theme => "9" },
471
- :markers => { :_theme => "8", :_tint => "-0.249977111117893" },
472
- :first => { :_theme => "8", :_tint => "-0.249977111117893" },
473
- :last => { :_theme => "8", :_tint => "-0.249977111117893" },
474
- :high => { :_theme => "8", :_tint => "-0.249977111117893" },
475
- :low => { :_theme => "8", :_tint => "-0.249977111117893" }
470
+ series: { _theme: "8" },
471
+ negative: { _theme: "9" },
472
+ markers: { _theme: "8", _tint: "-0.249977111117893" },
473
+ first: { _theme: "8", _tint: "-0.249977111117893" },
474
+ last: { _theme: "8", _tint: "-0.249977111117893" },
475
+ high: { _theme: "8", _tint: "-0.249977111117893" },
476
+ low: { _theme: "8", _tint: "-0.249977111117893" }
476
477
  },
477
478
  { # 18
478
- :series => { :_theme => "9" },
479
- :negative => { :_theme => "4" },
480
- :markers => { :_theme => "9", :_tint => "-0.249977111117893" },
481
- :first => { :_theme => "9", :_tint => "-0.249977111117893" },
482
- :last => { :_theme => "9", :_tint => "-0.249977111117893" },
483
- :high => { :_theme => "9", :_tint => "-0.249977111117893" },
484
- :low => { :_theme => "9", :_tint => "-0.249977111117893" }
479
+ series: { _theme: "9" },
480
+ negative: { _theme: "4" },
481
+ markers: { _theme: "9", _tint: "-0.249977111117893" },
482
+ first: { _theme: "9", _tint: "-0.249977111117893" },
483
+ last: { _theme: "9", _tint: "-0.249977111117893" },
484
+ high: { _theme: "9", _tint: "-0.249977111117893" },
485
+ low: { _theme: "9", _tint: "-0.249977111117893" }
485
486
  },
486
487
  { # 19
487
- :series => { :_theme => "4", :_tint => "0.39997558519241921" },
488
- :negative => { :_theme => "0", :_tint => "-0.499984740745262" },
489
- :markers => { :_theme => "4", :_tint => "0.79998168889431442" },
490
- :first => { :_theme => "4", :_tint => "-0.249977111117893" },
491
- :last => { :_theme => "4", :_tint => "-0.249977111117893" },
492
- :high => { :_theme => "4", :_tint => "-0.499984740745262" },
493
- :low => { :_theme => "4", :_tint => "-0.499984740745262" }
488
+ series: { _theme: "4", _tint: "0.39997558519241921" },
489
+ negative: { _theme: "0", _tint: "-0.499984740745262" },
490
+ markers: { _theme: "4", _tint: "0.79998168889431442" },
491
+ first: { _theme: "4", _tint: "-0.249977111117893" },
492
+ last: { _theme: "4", _tint: "-0.249977111117893" },
493
+ high: { _theme: "4", _tint: "-0.499984740745262" },
494
+ low: { _theme: "4", _tint: "-0.499984740745262" }
494
495
  },
495
496
  { # 20
496
- :series => { :_theme => "5", :_tint => "0.39997558519241921" },
497
- :negative => { :_theme => "0", :_tint => "-0.499984740745262" },
498
- :markers => { :_theme => "5", :_tint => "0.79998168889431442" },
499
- :first => { :_theme => "5", :_tint => "-0.249977111117893" },
500
- :last => { :_theme => "5", :_tint => "-0.249977111117893" },
501
- :high => { :_theme => "5", :_tint => "-0.499984740745262" },
502
- :low => { :_theme => "5", :_tint => "-0.499984740745262" }
497
+ series: { _theme: "5", _tint: "0.39997558519241921" },
498
+ negative: { _theme: "0", _tint: "-0.499984740745262" },
499
+ markers: { _theme: "5", _tint: "0.79998168889431442" },
500
+ first: { _theme: "5", _tint: "-0.249977111117893" },
501
+ last: { _theme: "5", _tint: "-0.249977111117893" },
502
+ high: { _theme: "5", _tint: "-0.499984740745262" },
503
+ low: { _theme: "5", _tint: "-0.499984740745262" }
503
504
  },
504
505
  { # 21
505
- :series => { :_theme => "6", :_tint => "0.39997558519241921" },
506
- :negative => { :_theme => "0", :_tint => "-0.499984740745262" },
507
- :markers => { :_theme => "6", :_tint => "0.79998168889431442" },
508
- :first => { :_theme => "6", :_tint => "-0.249977111117893" },
509
- :last => { :_theme => "6", :_tint => "-0.249977111117893" },
510
- :high => { :_theme => "6", :_tint => "-0.499984740745262" },
511
- :low => { :_theme => "6", :_tint => "-0.499984740745262" }
506
+ series: { _theme: "6", _tint: "0.39997558519241921" },
507
+ negative: { _theme: "0", _tint: "-0.499984740745262" },
508
+ markers: { _theme: "6", _tint: "0.79998168889431442" },
509
+ first: { _theme: "6", _tint: "-0.249977111117893" },
510
+ last: { _theme: "6", _tint: "-0.249977111117893" },
511
+ high: { _theme: "6", _tint: "-0.499984740745262" },
512
+ low: { _theme: "6", _tint: "-0.499984740745262" }
512
513
  },
513
514
  { # 22
514
- :series => { :_theme => "7", :_tint => "0.39997558519241921" },
515
- :negative => { :_theme => "0", :_tint => "-0.499984740745262" },
516
- :markers => { :_theme => "7", :_tint => "0.79998168889431442" },
517
- :first => { :_theme => "7", :_tint => "-0.249977111117893" },
518
- :last => { :_theme => "7", :_tint => "-0.249977111117893" },
519
- :high => { :_theme => "7", :_tint => "-0.499984740745262" },
520
- :low => { :_theme => "7", :_tint => "-0.499984740745262" }
515
+ series: { _theme: "7", _tint: "0.39997558519241921" },
516
+ negative: { _theme: "0", _tint: "-0.499984740745262" },
517
+ markers: { _theme: "7", _tint: "0.79998168889431442" },
518
+ first: { _theme: "7", _tint: "-0.249977111117893" },
519
+ last: { _theme: "7", _tint: "-0.249977111117893" },
520
+ high: { _theme: "7", _tint: "-0.499984740745262" },
521
+ low: { _theme: "7", _tint: "-0.499984740745262" }
521
522
  },
522
523
  { # 23
523
- :series => { :_theme => "8", :_tint => "0.39997558519241921" },
524
- :negative => { :_theme => "0", :_tint => "-0.499984740745262" },
525
- :markers => { :_theme => "8", :_tint => "0.79998168889431442" },
526
- :first => { :_theme => "8", :_tint => "-0.249977111117893" },
527
- :last => { :_theme => "8", :_tint => "-0.249977111117893" },
528
- :high => { :_theme => "8", :_tint => "-0.499984740745262" },
529
- :low => { :_theme => "8", :_tint => "-0.499984740745262" }
524
+ series: { _theme: "8", _tint: "0.39997558519241921" },
525
+ negative: { _theme: "0", _tint: "-0.499984740745262" },
526
+ markers: { _theme: "8", _tint: "0.79998168889431442" },
527
+ first: { _theme: "8", _tint: "-0.249977111117893" },
528
+ last: { _theme: "8", _tint: "-0.249977111117893" },
529
+ high: { _theme: "8", _tint: "-0.499984740745262" },
530
+ low: { _theme: "8", _tint: "-0.499984740745262" }
530
531
  },
531
532
  { # 24
532
- :series => { :_theme => "9", :_tint => "0.39997558519241921" },
533
- :negative => { :_theme => "0", :_tint => "-0.499984740745262" },
534
- :markers => { :_theme => "9", :_tint => "0.79998168889431442" },
535
- :first => { :_theme => "9", :_tint => "-0.249977111117893" },
536
- :last => { :_theme => "9", :_tint => "-0.249977111117893" },
537
- :high => { :_theme => "9", :_tint => "-0.499984740745262" },
538
- :low => { :_theme => "9", :_tint => "-0.499984740745262" }
533
+ series: { _theme: "9", _tint: "0.39997558519241921" },
534
+ negative: { _theme: "0", _tint: "-0.499984740745262" },
535
+ markers: { _theme: "9", _tint: "0.79998168889431442" },
536
+ first: { _theme: "9", _tint: "-0.249977111117893" },
537
+ last: { _theme: "9", _tint: "-0.249977111117893" },
538
+ high: { _theme: "9", _tint: "-0.499984740745262" },
539
+ low: { _theme: "9", _tint: "-0.499984740745262" }
539
540
  },
540
541
  { # 25
541
- :series => { :_theme => "1", :_tint => "0.499984740745262" },
542
- :negative => { :_theme => "1", :_tint => "0.249977111117893" },
543
- :markers => { :_theme => "1", :_tint => "0.249977111117893" },
544
- :first => { :_theme => "1", :_tint => "0.249977111117893" },
545
- :last => { :_theme => "1", :_tint => "0.249977111117893" },
546
- :high => { :_theme => "1", :_tint => "0.249977111117893" },
547
- :low => { :_theme => "1", :_tint => "0.249977111117893" }
542
+ series: { _theme: "1", _tint: "0.499984740745262" },
543
+ negative: { _theme: "1", _tint: "0.249977111117893" },
544
+ markers: { _theme: "1", _tint: "0.249977111117893" },
545
+ first: { _theme: "1", _tint: "0.249977111117893" },
546
+ last: { _theme: "1", _tint: "0.249977111117893" },
547
+ high: { _theme: "1", _tint: "0.249977111117893" },
548
+ low: { _theme: "1", _tint: "0.249977111117893" }
548
549
  },
549
550
  { # 26
550
- :series => { :_theme => "1", :_tint => "0.34998626667073579" },
551
- :negative => { :_theme => "0", :_tint => "-0.249977111117893" },
552
- :markers => { :_theme => "0", :_tint => "-0.249977111117893" },
553
- :first => { :_theme => "0", :_tint => "-0.249977111117893" },
554
- :last => { :_theme => "0", :_tint => "-0.249977111117893" },
555
- :high => { :_theme => "0", :_tint => "-0.249977111117893" },
556
- :low => { :_theme => "0", :_tint => "-0.249977111117893" }
551
+ series: { _theme: "1", _tint: "0.34998626667073579" },
552
+ negative: { _theme: "0", _tint: "-0.249977111117893" },
553
+ markers: { _theme: "0", _tint: "-0.249977111117893" },
554
+ first: { _theme: "0", _tint: "-0.249977111117893" },
555
+ last: { _theme: "0", _tint: "-0.249977111117893" },
556
+ high: { _theme: "0", _tint: "-0.249977111117893" },
557
+ low: { _theme: "0", _tint: "-0.249977111117893" }
557
558
  },
558
559
  { # 27
559
- :series => { :_rgb => "FF323232" },
560
- :negative => { :_rgb => "FFD00000" },
561
- :markers => { :_rgb => "FFD00000" },
562
- :first => { :_rgb => "FFD00000" },
563
- :last => { :_rgb => "FFD00000" },
564
- :high => { :_rgb => "FFD00000" },
565
- :low => { :_rgb => "FFD00000" }
560
+ series: { _rgb: "FF323232" },
561
+ negative: { _rgb: "FFD00000" },
562
+ markers: { _rgb: "FFD00000" },
563
+ first: { _rgb: "FFD00000" },
564
+ last: { _rgb: "FFD00000" },
565
+ high: { _rgb: "FFD00000" },
566
+ low: { _rgb: "FFD00000" }
566
567
  },
567
568
  { # 28
568
- :series => { :_rgb => "FF000000" },
569
- :negative => { :_rgb => "FF0070C0" },
570
- :markers => { :_rgb => "FF0070C0" },
571
- :first => { :_rgb => "FF0070C0" },
572
- :last => { :_rgb => "FF0070C0" },
573
- :high => { :_rgb => "FF0070C0" },
574
- :low => { :_rgb => "FF0070C0" }
569
+ series: { _rgb: "FF000000" },
570
+ negative: { _rgb: "FF0070C0" },
571
+ markers: { _rgb: "FF0070C0" },
572
+ first: { _rgb: "FF0070C0" },
573
+ last: { _rgb: "FF0070C0" },
574
+ high: { _rgb: "FF0070C0" },
575
+ low: { _rgb: "FF0070C0" }
575
576
  },
576
577
  { # 29
577
- :series => { :_rgb => "FF376092" },
578
- :negative => { :_rgb => "FFD00000" },
579
- :markers => { :_rgb => "FFD00000" },
580
- :first => { :_rgb => "FFD00000" },
581
- :last => { :_rgb => "FFD00000" },
582
- :high => { :_rgb => "FFD00000" },
583
- :low => { :_rgb => "FFD00000" }
578
+ series: { _rgb: "FF376092" },
579
+ negative: { _rgb: "FFD00000" },
580
+ markers: { _rgb: "FFD00000" },
581
+ first: { _rgb: "FFD00000" },
582
+ last: { _rgb: "FFD00000" },
583
+ high: { _rgb: "FFD00000" },
584
+ low: { _rgb: "FFD00000" }
584
585
  },
585
586
  { # 30
586
- :series => { :_rgb => "FF0070C0" },
587
- :negative => { :_rgb => "FF000000" },
588
- :markers => { :_rgb => "FF000000" },
589
- :first => { :_rgb => "FF000000" },
590
- :last => { :_rgb => "FF000000" },
591
- :high => { :_rgb => "FF000000" },
592
- :low => { :_rgb => "FF000000" }
587
+ series: { _rgb: "FF0070C0" },
588
+ negative: { _rgb: "FF000000" },
589
+ markers: { _rgb: "FF000000" },
590
+ first: { _rgb: "FF000000" },
591
+ last: { _rgb: "FF000000" },
592
+ high: { _rgb: "FF000000" },
593
+ low: { _rgb: "FF000000" }
593
594
  },
594
595
  { # 31
595
- :series => { :_rgb => "FF5F5F5F" },
596
- :negative => { :_rgb => "FFFFB620" },
597
- :markers => { :_rgb => "FFD70077" },
598
- :first => { :_rgb => "FF5687C2" },
599
- :last => { :_rgb => "FF359CEB" },
600
- :high => { :_rgb => "FF56BE79" },
601
- :low => { :_rgb => "FFFF5055" }
596
+ series: { _rgb: "FF5F5F5F" },
597
+ negative: { _rgb: "FFFFB620" },
598
+ markers: { _rgb: "FFD70077" },
599
+ first: { _rgb: "FF5687C2" },
600
+ last: { _rgb: "FF359CEB" },
601
+ high: { _rgb: "FF56BE79" },
602
+ low: { _rgb: "FFFF5055" }
602
603
  },
603
604
  { # 32
604
- :series => { :_rgb => "FF5687C2" },
605
- :negative => { :_rgb => "FFFFB620" },
606
- :markers => { :_rgb => "FFD70077" },
607
- :first => { :_rgb => "FF777777" },
608
- :last => { :_rgb => "FF359CEB" },
609
- :high => { :_rgb => "FF56BE79" },
610
- :low => { :_rgb => "FFFF5055" }
605
+ series: { _rgb: "FF5687C2" },
606
+ negative: { _rgb: "FFFFB620" },
607
+ markers: { _rgb: "FFD70077" },
608
+ first: { _rgb: "FF777777" },
609
+ last: { _rgb: "FF359CEB" },
610
+ high: { _rgb: "FF56BE79" },
611
+ low: { _rgb: "FFFF5055" }
611
612
  },
612
613
  { # 33
613
- :series => { :_rgb => "FFC6EFCE" },
614
- :negative => { :_rgb => "FFFFC7CE" },
615
- :markers => { :_rgb => "FF8CADD6" },
616
- :first => { :_rgb => "FFFFDC47" },
617
- :last => { :_rgb => "FFFFEB9C" },
618
- :high => { :_rgb => "FF60D276" },
619
- :low => { :_rgb => "FFFF5367" }
614
+ series: { _rgb: "FFC6EFCE" },
615
+ negative: { _rgb: "FFFFC7CE" },
616
+ markers: { _rgb: "FF8CADD6" },
617
+ first: { _rgb: "FFFFDC47" },
618
+ last: { _rgb: "FFFFEB9C" },
619
+ high: { _rgb: "FF60D276" },
620
+ low: { _rgb: "FFFF5367" }
620
621
  },
621
622
  { # 34
622
- :series => { :_rgb => "FF00B050" },
623
- :negative => { :_rgb => "FFFF0000" },
624
- :markers => { :_rgb => "FF0070C0" },
625
- :first => { :_rgb => "FFFFC000" },
626
- :last => { :_rgb => "FFFFC000" },
627
- :high => { :_rgb => "FF00B050" },
628
- :low => { :_rgb => "FFFF0000" }
623
+ series: { _rgb: "FF00B050" },
624
+ negative: { _rgb: "FFFF0000" },
625
+ markers: { _rgb: "FF0070C0" },
626
+ first: { _rgb: "FFFFC000" },
627
+ last: { _rgb: "FFFFC000" },
628
+ high: { _rgb: "FF00B050" },
629
+ low: { _rgb: "FFFF0000" }
629
630
  },
630
631
  { # 35
631
- :series => { :_theme => "3" },
632
- :negative => { :_theme => "9" },
633
- :markers => { :_theme => "8" },
634
- :first => { :_theme => "4" },
635
- :last => { :_theme => "5" },
636
- :high => { :_theme => "6" },
637
- :low => { :_theme => "7" }
632
+ series: { _theme: "3" },
633
+ negative: { _theme: "9" },
634
+ markers: { _theme: "8" },
635
+ first: { _theme: "4" },
636
+ last: { _theme: "5" },
637
+ high: { _theme: "6" },
638
+ low: { _theme: "7" }
638
639
  },
639
640
  { # 36
640
- :series => { :_theme => "1" },
641
- :negative => { :_theme => "9" },
642
- :markers => { :_theme => "8" },
643
- :first => { :_theme => "4" },
644
- :last => { :_theme => "5" },
645
- :high => { :_theme => "6" },
646
- :low => { :_theme => "7" }
641
+ series: { _theme: "1" },
642
+ negative: { _theme: "9" },
643
+ markers: { _theme: "8" },
644
+ first: { _theme: "4" },
645
+ last: { _theme: "5" },
646
+ high: { _theme: "6" },
647
+ low: { _theme: "7" }
647
648
  }
648
649
  ]
649
650
  end