fast_excel 0.1.7 → 0.2.0
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.
- checksums.yaml +4 -4
- data/Gemfile +10 -4
- data/Gemfile.lock +39 -16
- data/Makefile +1 -1
- data/README.md +60 -12
- data/Rakefile +10 -29
- data/benchmarks/1k_rows.rb +59 -0
- data/benchmarks/20k_rows.rb +26 -0
- data/benchmarks/init.rb +59 -0
- data/benchmarks/memory.rb +49 -0
- data/{example.rb → examples/example.rb} +0 -0
- data/{example_chart.rb → examples/example_chart.rb} +0 -0
- data/{example_image.rb → examples/example_image.rb} +0 -9
- data/fast_excel.gemspec +1 -1
- data/lib/fast_excel.rb +63 -7
- data/lib/fast_excel/binding.rb +663 -7321
- data/lib/fast_excel/binding/chart.rb +2666 -0
- data/lib/fast_excel/binding/format.rb +1177 -0
- data/lib/fast_excel/binding/workbook.rb +338 -0
- data/lib/fast_excel/binding/worksheet.rb +1515 -0
- data/test/default_format_test.rb +19 -0
- data/test/test_helper.rb +3 -3
- data/test/tmpfile_test.rb +23 -0
- metadata +15 -9
- data/.dockerignore +0 -1
- data/BUILD.md +0 -26
- data/build_alpine_linux.docker +0 -16
- data/build_centos_linux.docker +0 -13
@@ -0,0 +1,2666 @@
|
|
1
|
+
module Libxlsxwriter
|
2
|
+
# = Fields:
|
3
|
+
# :stqh_first ::
|
4
|
+
# (FFI::Pointer(*ChartSeries))
|
5
|
+
# :stqh_last ::
|
6
|
+
# (FFI::Pointer(**ChartSeries))
|
7
|
+
|
8
|
+
class ChartSeriesList < FFI::Struct
|
9
|
+
layout :stqh_first, :pointer,
|
10
|
+
:stqh_last, :pointer
|
11
|
+
end
|
12
|
+
|
13
|
+
# = Fields:
|
14
|
+
# :stqh_first ::
|
15
|
+
# (FFI::Pointer(*SeriesDataPoint))
|
16
|
+
# :stqh_last ::
|
17
|
+
# (FFI::Pointer(**SeriesDataPoint))
|
18
|
+
class SeriesDataPoints < FFI::Struct
|
19
|
+
layout :stqh_first, :pointer,
|
20
|
+
:stqh_last, :pointer
|
21
|
+
end
|
22
|
+
|
23
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_type).</em>
|
24
|
+
#
|
25
|
+
# === Options:
|
26
|
+
# :none ::
|
27
|
+
# None.
|
28
|
+
# :area ::
|
29
|
+
# Area chart.
|
30
|
+
# :area_stacked ::
|
31
|
+
# Area chart - stacked.
|
32
|
+
# :area_stacked_percent ::
|
33
|
+
# Area chart - percentage stacked.
|
34
|
+
# :bar ::
|
35
|
+
# Bar chart.
|
36
|
+
# :bar_stacked ::
|
37
|
+
# Bar chart - stacked.
|
38
|
+
# :bar_stacked_percent ::
|
39
|
+
# Bar chart - percentage stacked.
|
40
|
+
# :column ::
|
41
|
+
# Column chart.
|
42
|
+
# :column_stacked ::
|
43
|
+
# Column chart - stacked.
|
44
|
+
# :column_stacked_percent ::
|
45
|
+
# Column chart - percentage stacked.
|
46
|
+
# :doughnut ::
|
47
|
+
# Doughnut chart.
|
48
|
+
# :line ::
|
49
|
+
# Line chart.
|
50
|
+
# :pie ::
|
51
|
+
# Pie chart.
|
52
|
+
# :scatter ::
|
53
|
+
# Scatter chart.
|
54
|
+
# :scatter_straight ::
|
55
|
+
# Scatter chart - straight.
|
56
|
+
# :scatter_straight_with_markers ::
|
57
|
+
# Scatter chart - straight with markers.
|
58
|
+
# :scatter_smooth ::
|
59
|
+
# Scatter chart - smooth.
|
60
|
+
# :scatter_smooth_with_markers ::
|
61
|
+
# Scatter chart - smooth with markers.
|
62
|
+
# :radar ::
|
63
|
+
# Radar chart.
|
64
|
+
# :radar_with_markers ::
|
65
|
+
# Radar chart - with markers.
|
66
|
+
# :radar_filled ::
|
67
|
+
# Radar chart - filled.
|
68
|
+
#
|
69
|
+
# @method _enum_chart_type_
|
70
|
+
# @return [Symbol]
|
71
|
+
# @scope class
|
72
|
+
enum :chart_type, [
|
73
|
+
:none, 0,
|
74
|
+
:area, 1,
|
75
|
+
:area_stacked, 2,
|
76
|
+
:area_stacked_percent, 3,
|
77
|
+
:bar, 4,
|
78
|
+
:bar_stacked, 5,
|
79
|
+
:bar_stacked_percent, 6,
|
80
|
+
:column, 7,
|
81
|
+
:column_stacked, 8,
|
82
|
+
:column_stacked_percent, 9,
|
83
|
+
:doughnut, 10,
|
84
|
+
:line, 11,
|
85
|
+
:pie, 12,
|
86
|
+
:scatter, 13,
|
87
|
+
:scatter_straight, 14,
|
88
|
+
:scatter_straight_with_markers, 15,
|
89
|
+
:scatter_smooth, 16,
|
90
|
+
:scatter_smooth_with_markers, 17,
|
91
|
+
:radar, 18,
|
92
|
+
:radar_with_markers, 19,
|
93
|
+
:radar_filled, 20
|
94
|
+
]
|
95
|
+
|
96
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_legend_position).</em>
|
97
|
+
#
|
98
|
+
# === Options:
|
99
|
+
# :none ::
|
100
|
+
# No chart legend.
|
101
|
+
# :right ::
|
102
|
+
# Chart legend positioned at right side.
|
103
|
+
# :left ::
|
104
|
+
# Chart legend positioned at left side.
|
105
|
+
# :top ::
|
106
|
+
# Chart legend positioned at top.
|
107
|
+
# :bottom ::
|
108
|
+
# Chart legend positioned at bottom.
|
109
|
+
# :overlay_right ::
|
110
|
+
# Chart legend overlaid at right side.
|
111
|
+
# :overlay_left ::
|
112
|
+
# Chart legend overlaid at left side.
|
113
|
+
#
|
114
|
+
# @method _enum_chart_legend_position_
|
115
|
+
# @return [Symbol]
|
116
|
+
# @scope class
|
117
|
+
enum :chart_legend_position, [
|
118
|
+
:none, 0,
|
119
|
+
:right, 1,
|
120
|
+
:left, 2,
|
121
|
+
:top, 3,
|
122
|
+
:bottom, 4,
|
123
|
+
:overlay_right, 5,
|
124
|
+
:overlay_left, 6
|
125
|
+
]
|
126
|
+
|
127
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_line_dash_type).</em>
|
128
|
+
#
|
129
|
+
# === Options:
|
130
|
+
# :solid ::
|
131
|
+
# Solid.
|
132
|
+
# :round_dot ::
|
133
|
+
# Round Dot.
|
134
|
+
# :square_dot ::
|
135
|
+
# Square Dot.
|
136
|
+
# :dash ::
|
137
|
+
# Dash.
|
138
|
+
# :dash_dot ::
|
139
|
+
# Dash Dot.
|
140
|
+
# :long_dash ::
|
141
|
+
# Long Dash.
|
142
|
+
# :long_dash_dot ::
|
143
|
+
# Long Dash Dot.
|
144
|
+
# :long_dash_dot_dot ::
|
145
|
+
# Long Dash Dot Dot.
|
146
|
+
# :dot ::
|
147
|
+
# These aren't available in the dialog but are used by Excel.
|
148
|
+
# :system_dash_dot ::
|
149
|
+
#
|
150
|
+
# :system_dash_dot_dot ::
|
151
|
+
#
|
152
|
+
#
|
153
|
+
# @method _enum_chart_line_dash_type_
|
154
|
+
# @return [Symbol]
|
155
|
+
# @scope class
|
156
|
+
enum :chart_line_dash_type, [
|
157
|
+
:solid, 0,
|
158
|
+
:round_dot, 1,
|
159
|
+
:square_dot, 2,
|
160
|
+
:dash, 3,
|
161
|
+
:dash_dot, 4,
|
162
|
+
:long_dash, 5,
|
163
|
+
:long_dash_dot, 6,
|
164
|
+
:long_dash_dot_dot, 7,
|
165
|
+
:dot, 8,
|
166
|
+
:system_dash_dot, 9,
|
167
|
+
:system_dash_dot_dot, 10
|
168
|
+
]
|
169
|
+
|
170
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_marker_type).</em>
|
171
|
+
#
|
172
|
+
# === Options:
|
173
|
+
# :automatic ::
|
174
|
+
# Automatic, series default, marker type.
|
175
|
+
# :none ::
|
176
|
+
# No marker type.
|
177
|
+
# :square ::
|
178
|
+
# Square marker type.
|
179
|
+
# :diamond ::
|
180
|
+
# Diamond marker type.
|
181
|
+
# :triangle ::
|
182
|
+
# Triangle marker type.
|
183
|
+
# :x ::
|
184
|
+
# X shape marker type.
|
185
|
+
# :star ::
|
186
|
+
# Star marker type.
|
187
|
+
# :short_dash ::
|
188
|
+
# Short dash marker type.
|
189
|
+
# :long_dash ::
|
190
|
+
# Long dash marker type.
|
191
|
+
# :circle ::
|
192
|
+
# Circle marker type.
|
193
|
+
# :plus ::
|
194
|
+
# Plus (+) marker type.
|
195
|
+
#
|
196
|
+
# @method _enum_chart_marker_type_
|
197
|
+
# @return [Symbol]
|
198
|
+
# @scope class
|
199
|
+
enum :chart_marker_type, [
|
200
|
+
:automatic, 0,
|
201
|
+
:none, 1,
|
202
|
+
:square, 2,
|
203
|
+
:diamond, 3,
|
204
|
+
:triangle, 4,
|
205
|
+
:x, 5,
|
206
|
+
:star, 6,
|
207
|
+
:short_dash, 7,
|
208
|
+
:long_dash, 8,
|
209
|
+
:circle, 9,
|
210
|
+
:plus, 10
|
211
|
+
]
|
212
|
+
|
213
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_pattern_type).</em>
|
214
|
+
#
|
215
|
+
# === Options:
|
216
|
+
# :none ::
|
217
|
+
# None pattern.
|
218
|
+
# :percent_5 ::
|
219
|
+
# 5 Percent pattern.
|
220
|
+
# :percent_10 ::
|
221
|
+
# 10 Percent pattern.
|
222
|
+
# :percent_20 ::
|
223
|
+
# 20 Percent pattern.
|
224
|
+
# :percent_25 ::
|
225
|
+
# 25 Percent pattern.
|
226
|
+
# :percent_30 ::
|
227
|
+
# 30 Percent pattern.
|
228
|
+
# :percent_40 ::
|
229
|
+
# 40 Percent pattern.
|
230
|
+
# :percent_50 ::
|
231
|
+
# 50 Percent pattern.
|
232
|
+
# :percent_60 ::
|
233
|
+
# 60 Percent pattern.
|
234
|
+
# :percent_70 ::
|
235
|
+
# 70 Percent pattern.
|
236
|
+
# :percent_75 ::
|
237
|
+
# 75 Percent pattern.
|
238
|
+
# :percent_80 ::
|
239
|
+
# 80 Percent pattern.
|
240
|
+
# :percent_90 ::
|
241
|
+
# 90 Percent pattern.
|
242
|
+
# :light_downward_diagonal ::
|
243
|
+
# Light downward diagonal pattern.
|
244
|
+
# :light_upward_diagonal ::
|
245
|
+
# Light upward diagonal pattern.
|
246
|
+
# :dark_downward_diagonal ::
|
247
|
+
# Dark downward diagonal pattern.
|
248
|
+
# :dark_upward_diagonal ::
|
249
|
+
# Dark upward diagonal pattern.
|
250
|
+
# :wide_downward_diagonal ::
|
251
|
+
# Wide downward diagonal pattern.
|
252
|
+
# :wide_upward_diagonal ::
|
253
|
+
# Wide upward diagonal pattern.
|
254
|
+
# :light_vertical ::
|
255
|
+
# Light vertical pattern.
|
256
|
+
# :light_horizontal ::
|
257
|
+
# Light horizontal pattern.
|
258
|
+
# :narrow_vertical ::
|
259
|
+
# Narrow vertical pattern.
|
260
|
+
# :narrow_horizontal ::
|
261
|
+
# Narrow horizontal pattern.
|
262
|
+
# :dark_vertical ::
|
263
|
+
# Dark vertical pattern.
|
264
|
+
# :dark_horizontal ::
|
265
|
+
# Dark horizontal pattern.
|
266
|
+
# :dashed_downward_diagonal ::
|
267
|
+
# Dashed downward diagonal pattern.
|
268
|
+
# :dashed_upward_diagonal ::
|
269
|
+
# Dashed upward diagonal pattern.
|
270
|
+
# :dashed_horizontal ::
|
271
|
+
# Dashed horizontal pattern.
|
272
|
+
# :dashed_vertical ::
|
273
|
+
# Dashed vertical pattern.
|
274
|
+
# :small_confetti ::
|
275
|
+
# Small confetti pattern.
|
276
|
+
# :large_confetti ::
|
277
|
+
# Large confetti pattern.
|
278
|
+
# :zigzag ::
|
279
|
+
# Zigzag pattern.
|
280
|
+
# :wave ::
|
281
|
+
# Wave pattern.
|
282
|
+
# :diagonal_brick ::
|
283
|
+
# Diagonal brick pattern.
|
284
|
+
# :horizontal_brick ::
|
285
|
+
# Horizontal brick pattern.
|
286
|
+
# :weave ::
|
287
|
+
# Weave pattern.
|
288
|
+
# :plaid ::
|
289
|
+
# Plaid pattern.
|
290
|
+
# :divot ::
|
291
|
+
# Divot pattern.
|
292
|
+
# :dotted_grid ::
|
293
|
+
# Dotted grid pattern.
|
294
|
+
# :dotted_diamond ::
|
295
|
+
# Dotted diamond pattern.
|
296
|
+
# :shingle ::
|
297
|
+
# Shingle pattern.
|
298
|
+
# :trellis ::
|
299
|
+
# Trellis pattern.
|
300
|
+
# :sphere ::
|
301
|
+
# Sphere pattern.
|
302
|
+
# :small_grid ::
|
303
|
+
# Small grid pattern.
|
304
|
+
# :large_grid ::
|
305
|
+
# Large grid pattern.
|
306
|
+
# :small_check ::
|
307
|
+
# Small check pattern.
|
308
|
+
# :large_check ::
|
309
|
+
# Large check pattern.
|
310
|
+
# :outlined_diamond ::
|
311
|
+
# Outlined diamond pattern.
|
312
|
+
# :solid_diamond ::
|
313
|
+
# Solid diamond pattern.
|
314
|
+
#
|
315
|
+
# @method _enum_chart_pattern_type_
|
316
|
+
# @return [Symbol]
|
317
|
+
# @scope class
|
318
|
+
enum :chart_pattern_type, [
|
319
|
+
:none, 0,
|
320
|
+
:percent_5, 1,
|
321
|
+
:percent_10, 2,
|
322
|
+
:percent_20, 3,
|
323
|
+
:percent_25, 4,
|
324
|
+
:percent_30, 5,
|
325
|
+
:percent_40, 6,
|
326
|
+
:percent_50, 7,
|
327
|
+
:percent_60, 8,
|
328
|
+
:percent_70, 9,
|
329
|
+
:percent_75, 10,
|
330
|
+
:percent_80, 11,
|
331
|
+
:percent_90, 12,
|
332
|
+
:light_downward_diagonal, 13,
|
333
|
+
:light_upward_diagonal, 14,
|
334
|
+
:dark_downward_diagonal, 15,
|
335
|
+
:dark_upward_diagonal, 16,
|
336
|
+
:wide_downward_diagonal, 17,
|
337
|
+
:wide_upward_diagonal, 18,
|
338
|
+
:light_vertical, 19,
|
339
|
+
:light_horizontal, 20,
|
340
|
+
:narrow_vertical, 21,
|
341
|
+
:narrow_horizontal, 22,
|
342
|
+
:dark_vertical, 23,
|
343
|
+
:dark_horizontal, 24,
|
344
|
+
:dashed_downward_diagonal, 25,
|
345
|
+
:dashed_upward_diagonal, 26,
|
346
|
+
:dashed_horizontal, 27,
|
347
|
+
:dashed_vertical, 28,
|
348
|
+
:small_confetti, 29,
|
349
|
+
:large_confetti, 30,
|
350
|
+
:zigzag, 31,
|
351
|
+
:wave, 32,
|
352
|
+
:diagonal_brick, 33,
|
353
|
+
:horizontal_brick, 34,
|
354
|
+
:weave, 35,
|
355
|
+
:plaid, 36,
|
356
|
+
:divot, 37,
|
357
|
+
:dotted_grid, 38,
|
358
|
+
:dotted_diamond, 39,
|
359
|
+
:shingle, 40,
|
360
|
+
:trellis, 41,
|
361
|
+
:sphere, 42,
|
362
|
+
:small_grid, 43,
|
363
|
+
:large_grid, 44,
|
364
|
+
:small_check, 45,
|
365
|
+
:large_check, 46,
|
366
|
+
:outlined_diamond, 47,
|
367
|
+
:solid_diamond, 48
|
368
|
+
]
|
369
|
+
|
370
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_label_position).</em>
|
371
|
+
#
|
372
|
+
# === Options:
|
373
|
+
# :default ::
|
374
|
+
# Series data label position: default position.
|
375
|
+
# :center ::
|
376
|
+
# Series data label position: center.
|
377
|
+
# :right ::
|
378
|
+
# Series data label position: right.
|
379
|
+
# :left ::
|
380
|
+
# Series data label position: left.
|
381
|
+
# :above ::
|
382
|
+
# Series data label position: above.
|
383
|
+
# :below ::
|
384
|
+
# Series data label position: below.
|
385
|
+
# :inside_base ::
|
386
|
+
# Series data label position: inside base.
|
387
|
+
# :inside_end ::
|
388
|
+
# Series data label position: inside end.
|
389
|
+
# :outside_end ::
|
390
|
+
# Series data label position: outside end.
|
391
|
+
# :best_fit ::
|
392
|
+
# Series data label position: best fit.
|
393
|
+
#
|
394
|
+
# @method _enum_chart_label_position_
|
395
|
+
# @return [Symbol]
|
396
|
+
# @scope class
|
397
|
+
enum :chart_label_position, [
|
398
|
+
:default, 0,
|
399
|
+
:center, 1,
|
400
|
+
:right, 2,
|
401
|
+
:left, 3,
|
402
|
+
:above, 4,
|
403
|
+
:below, 5,
|
404
|
+
:inside_base, 6,
|
405
|
+
:inside_end, 7,
|
406
|
+
:outside_end, 8,
|
407
|
+
:best_fit, 9
|
408
|
+
]
|
409
|
+
|
410
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_label_separator).</em>
|
411
|
+
#
|
412
|
+
# === Options:
|
413
|
+
# :comma ::
|
414
|
+
# Series data label separator: comma (the default).
|
415
|
+
# :semicolon ::
|
416
|
+
# Series data label separator: semicolon.
|
417
|
+
# :period ::
|
418
|
+
# Series data label separator: period.
|
419
|
+
# :newline ::
|
420
|
+
# Series data label separator: newline.
|
421
|
+
# :space ::
|
422
|
+
# Series data label separator: space.
|
423
|
+
#
|
424
|
+
# @method _enum_chart_label_separator_
|
425
|
+
# @return [Symbol]
|
426
|
+
# @scope class
|
427
|
+
enum :chart_label_separator, [
|
428
|
+
:comma, 0,
|
429
|
+
:semicolon, 1,
|
430
|
+
:period, 2,
|
431
|
+
:newline, 3,
|
432
|
+
:space, 4
|
433
|
+
]
|
434
|
+
|
435
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_subtype).</em>
|
436
|
+
#
|
437
|
+
# === Options:
|
438
|
+
# :none ::
|
439
|
+
#
|
440
|
+
# :stacked ::
|
441
|
+
#
|
442
|
+
# :stacked_percent ::
|
443
|
+
#
|
444
|
+
#
|
445
|
+
# @method _enum_chart_subtype_
|
446
|
+
# @return [Symbol]
|
447
|
+
# @scope class
|
448
|
+
enum :chart_subtype, [
|
449
|
+
:none, 0,
|
450
|
+
:stacked, 1,
|
451
|
+
:stacked_percent, 2
|
452
|
+
]
|
453
|
+
|
454
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_grouping).</em>
|
455
|
+
#
|
456
|
+
# === Options:
|
457
|
+
# :clustered ::
|
458
|
+
#
|
459
|
+
# :standard ::
|
460
|
+
#
|
461
|
+
# :percentstacked ::
|
462
|
+
#
|
463
|
+
# :stacked ::
|
464
|
+
#
|
465
|
+
#
|
466
|
+
# @method _enum_chart_grouping_
|
467
|
+
# @return [Symbol]
|
468
|
+
# @scope class
|
469
|
+
enum :chart_grouping, [
|
470
|
+
:clustered, 0,
|
471
|
+
:standard, 1,
|
472
|
+
:percentstacked, 2,
|
473
|
+
:stacked, 3
|
474
|
+
]
|
475
|
+
|
476
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_axis_tick_position).</em>
|
477
|
+
#
|
478
|
+
# === Options:
|
479
|
+
# :default ::
|
480
|
+
#
|
481
|
+
# :on_tick ::
|
482
|
+
# Position category axis on tick marks.
|
483
|
+
# :between ::
|
484
|
+
# Position category axis between tick marks.
|
485
|
+
#
|
486
|
+
# @method _enum_chart_axis_tick_position_
|
487
|
+
# @return [Symbol]
|
488
|
+
# @scope class
|
489
|
+
enum :chart_axis_tick_position, [
|
490
|
+
:default, 0,
|
491
|
+
:on_tick, 1,
|
492
|
+
:between, 2
|
493
|
+
]
|
494
|
+
|
495
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_axis_label_position).</em>
|
496
|
+
#
|
497
|
+
# === Options:
|
498
|
+
# :next_to ::
|
499
|
+
# Position the axis labels next to the axis. The default.
|
500
|
+
# :high ::
|
501
|
+
# Position the axis labels at the top of the chart, for horizontal
|
502
|
+
# axes, or to the right for vertical axes.
|
503
|
+
# :low ::
|
504
|
+
# Position the axis labels at the bottom of the chart, for horizontal
|
505
|
+
# axes, or to the left for vertical axes.
|
506
|
+
# :none ::
|
507
|
+
# Turn off the the axis labels.
|
508
|
+
#
|
509
|
+
# @method _enum_chart_axis_label_position_
|
510
|
+
# @return [Symbol]
|
511
|
+
# @scope class
|
512
|
+
enum :chart_axis_label_position, [
|
513
|
+
:next_to, 0,
|
514
|
+
:high, 1,
|
515
|
+
:low, 2,
|
516
|
+
:none, 3
|
517
|
+
]
|
518
|
+
|
519
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_axis_display_unit).</em>
|
520
|
+
#
|
521
|
+
# === Options:
|
522
|
+
# :units_none ::
|
523
|
+
# Axis display units: None. The default.
|
524
|
+
# :units_hundreds ::
|
525
|
+
# Axis display units: Hundreds.
|
526
|
+
# :units_thousands ::
|
527
|
+
# Axis display units: Thousands.
|
528
|
+
# :units_ten_thousands ::
|
529
|
+
# Axis display units: Ten thousands.
|
530
|
+
# :units_hundred_thousands ::
|
531
|
+
# Axis display units: Hundred thousands.
|
532
|
+
# :units_millions ::
|
533
|
+
# Axis display units: Millions.
|
534
|
+
# :units_ten_millions ::
|
535
|
+
# Axis display units: Ten millions.
|
536
|
+
# :units_hundred_millions ::
|
537
|
+
# Axis display units: Hundred millions.
|
538
|
+
# :units_billions ::
|
539
|
+
# Axis display units: Billions.
|
540
|
+
# :units_trillions ::
|
541
|
+
# Axis display units: Trillions.
|
542
|
+
#
|
543
|
+
# @method _enum_chart_axis_display_unit_
|
544
|
+
# @return [Symbol]
|
545
|
+
# @scope class
|
546
|
+
enum :chart_axis_display_unit, [
|
547
|
+
:units_none, 0,
|
548
|
+
:units_hundreds, 1,
|
549
|
+
:units_thousands, 2,
|
550
|
+
:units_ten_thousands, 3,
|
551
|
+
:units_hundred_thousands, 4,
|
552
|
+
:units_millions, 5,
|
553
|
+
:units_ten_millions, 6,
|
554
|
+
:units_hundred_millions, 7,
|
555
|
+
:units_billions, 8,
|
556
|
+
:units_trillions, 9
|
557
|
+
]
|
558
|
+
|
559
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_axis_tick_mark).</em>
|
560
|
+
#
|
561
|
+
# === Options:
|
562
|
+
# :default ::
|
563
|
+
# Default tick mark for the chart axis. Usually outside.
|
564
|
+
# :none ::
|
565
|
+
# No tick mark for the axis.
|
566
|
+
# :inside ::
|
567
|
+
# Tick mark inside the axis only.
|
568
|
+
# :outside ::
|
569
|
+
# Tick mark outside the axis only.
|
570
|
+
# :crossing ::
|
571
|
+
# Tick mark inside and outside the axis.
|
572
|
+
#
|
573
|
+
# @method _enum_chart_axis_tick_mark_
|
574
|
+
# @return [Symbol]
|
575
|
+
# @scope class
|
576
|
+
enum :chart_axis_tick_mark, [
|
577
|
+
:default, 0,
|
578
|
+
:none, 1,
|
579
|
+
:inside, 2,
|
580
|
+
:outside, 3,
|
581
|
+
:crossing, 4
|
582
|
+
]
|
583
|
+
|
584
|
+
# = Fields:
|
585
|
+
# :formula ::
|
586
|
+
# (String)
|
587
|
+
# :sheetname ::
|
588
|
+
# (String)
|
589
|
+
# :first_row ::
|
590
|
+
# (Integer)
|
591
|
+
# :last_row ::
|
592
|
+
# (Integer)
|
593
|
+
# :first_col ::
|
594
|
+
# (Integer)
|
595
|
+
# :last_col ::
|
596
|
+
# (Integer)
|
597
|
+
# :ignore_cache ::
|
598
|
+
# (Integer)
|
599
|
+
# :has_string_cache ::
|
600
|
+
# (Integer)
|
601
|
+
# :num_data_points ::
|
602
|
+
# (Integer)
|
603
|
+
# :data_cache ::
|
604
|
+
# (SeriesDataPoints)
|
605
|
+
class SeriesRange < FFI::Struct
|
606
|
+
layout :formula, :string,
|
607
|
+
:sheetname, :string,
|
608
|
+
:first_row, :uint,
|
609
|
+
:last_row, :uint,
|
610
|
+
:first_col, :ushort,
|
611
|
+
:last_col, :ushort,
|
612
|
+
:ignore_cache, :uchar,
|
613
|
+
:has_string_cache, :uchar,
|
614
|
+
:num_data_points, :ushort,
|
615
|
+
:data_cache, SeriesDataPoints
|
616
|
+
end
|
617
|
+
|
618
|
+
# = Fields:
|
619
|
+
# :stqe_next ::
|
620
|
+
# (FFI::Pointer(*SeriesDataPoint))
|
621
|
+
class SeriesDataPointListPointers < FFI::Struct
|
622
|
+
layout :stqe_next, :pointer
|
623
|
+
end
|
624
|
+
|
625
|
+
# = Fields:
|
626
|
+
# :is_string ::
|
627
|
+
# (Integer)
|
628
|
+
# :number ::
|
629
|
+
# (Float)
|
630
|
+
# :string ::
|
631
|
+
# (String)
|
632
|
+
# :no_data ::
|
633
|
+
# (Integer)
|
634
|
+
# :list_pointers ::
|
635
|
+
# (SeriesDataPointListPointers)
|
636
|
+
class SeriesDataPoint < FFI::Struct
|
637
|
+
layout :is_string, :uchar,
|
638
|
+
:number, :double,
|
639
|
+
:string, :string,
|
640
|
+
:no_data, :uchar,
|
641
|
+
:list_pointers, SeriesDataPointListPointers.by_value
|
642
|
+
end
|
643
|
+
|
644
|
+
# = Fields:
|
645
|
+
# :color ::
|
646
|
+
# (Integer) The chart font color. See @ref working_with_colors.
|
647
|
+
# :none ::
|
648
|
+
# (Integer) Turn off/hide line. Set to 0 or 1.
|
649
|
+
# :width ::
|
650
|
+
# (Float) Width of the line in increments of 0.25. Default is 2.25.
|
651
|
+
# :dash_type ::
|
652
|
+
# (Integer) The line dash type. See #lxw_chart_line_dash_type.
|
653
|
+
# :transparency ::
|
654
|
+
# (Integer) Transparency for lines isn't generally useful. Undocumented for now.
|
655
|
+
# :has_color ::
|
656
|
+
# (Integer) Members for internal use only.
|
657
|
+
class ChartLine < FFI::Struct
|
658
|
+
layout :color, :int,
|
659
|
+
:none, :uchar,
|
660
|
+
:width, :float,
|
661
|
+
:dash_type, :uchar,
|
662
|
+
:transparency, :uchar,
|
663
|
+
:has_color, :uchar
|
664
|
+
end
|
665
|
+
|
666
|
+
# = Fields:
|
667
|
+
# :color ::
|
668
|
+
# (Integer) The chart font color. See @ref working_with_colors.
|
669
|
+
# :none ::
|
670
|
+
# (Integer) Turn off/hide line. Set to 0 or 1.
|
671
|
+
# :transparency ::
|
672
|
+
# (Integer) Set the transparency of the fill. 0 - 100. Default 0.
|
673
|
+
# :has_color ::
|
674
|
+
# (Integer) Members for internal use only.
|
675
|
+
class ChartFill < FFI::Struct
|
676
|
+
layout :color, :int,
|
677
|
+
:none, :uchar,
|
678
|
+
:transparency, :uchar,
|
679
|
+
:has_color, :uchar
|
680
|
+
end
|
681
|
+
|
682
|
+
# = Fields:
|
683
|
+
# :fg_color ::
|
684
|
+
# (Integer) The pattern foreground color. See @ref working_with_colors.
|
685
|
+
# :bg_color ::
|
686
|
+
# (Integer) The pattern background color. See @ref working_with_colors.
|
687
|
+
# :type ::
|
688
|
+
# (Integer) The pattern type. See #lxw_chart_pattern_type.
|
689
|
+
# :has_fg_color ::
|
690
|
+
# (Integer) Members for internal use only.
|
691
|
+
# :has_bg_color ::
|
692
|
+
# (Integer)
|
693
|
+
class ChartPattern < FFI::Struct
|
694
|
+
layout :fg_color, :int,
|
695
|
+
:bg_color, :int,
|
696
|
+
:type, :uchar,
|
697
|
+
:has_fg_color, :uchar,
|
698
|
+
:has_bg_color, :uchar
|
699
|
+
end
|
700
|
+
|
701
|
+
# = Fields:
|
702
|
+
# :name ::
|
703
|
+
# (String) The chart font name, such as "Arial" or "Calibri".
|
704
|
+
# :size ::
|
705
|
+
# (Integer) The chart font size. The default is 11.
|
706
|
+
# :bold ::
|
707
|
+
# (Integer) The chart font bold property. Set to 0 or 1.
|
708
|
+
# :italic ::
|
709
|
+
# (Integer) The chart font italic property. Set to 0 or 1.
|
710
|
+
# :underline ::
|
711
|
+
# (Integer) The chart font underline property. Set to 0 or 1.
|
712
|
+
# :rotation ::
|
713
|
+
# (Integer) The chart font rotation property. Range: -90 to 90.
|
714
|
+
# :color ::
|
715
|
+
# (Integer) The chart font color. See @ref working_with_colors.
|
716
|
+
# :pitch_family ::
|
717
|
+
# (Integer) Members for internal use only.
|
718
|
+
# :charset ::
|
719
|
+
# (Integer)
|
720
|
+
# :baseline ::
|
721
|
+
# (Integer)
|
722
|
+
# :has_color ::
|
723
|
+
# (Integer)
|
724
|
+
class ChartFont < FFI::Struct
|
725
|
+
layout :name, :string,
|
726
|
+
:size, :ushort,
|
727
|
+
:bold, :uchar,
|
728
|
+
:italic, :uchar,
|
729
|
+
:underline, :uchar,
|
730
|
+
:rotation, :int,
|
731
|
+
:color, :int,
|
732
|
+
:pitch_family, :uchar,
|
733
|
+
:charset, :uchar,
|
734
|
+
:baseline, :char,
|
735
|
+
:has_color, :uchar
|
736
|
+
end
|
737
|
+
|
738
|
+
# = Fields:
|
739
|
+
# :type ::
|
740
|
+
# (Integer)
|
741
|
+
# :size ::
|
742
|
+
# (Integer)
|
743
|
+
# :line ::
|
744
|
+
# (ChartLine)
|
745
|
+
# :fill ::
|
746
|
+
# (ChartFill)
|
747
|
+
# :pattern ::
|
748
|
+
# (ChartPattern)
|
749
|
+
class ChartMarker < FFI::Struct
|
750
|
+
layout :type, :uchar,
|
751
|
+
:size, :uchar,
|
752
|
+
:line, ChartLine,
|
753
|
+
:fill, ChartFill,
|
754
|
+
:pattern, ChartPattern
|
755
|
+
end
|
756
|
+
|
757
|
+
# = Fields:
|
758
|
+
# :font ::
|
759
|
+
# (ChartFont)
|
760
|
+
# :position ::
|
761
|
+
# (Integer)
|
762
|
+
class ChartLegend < FFI::Struct
|
763
|
+
layout :font, ChartFont,
|
764
|
+
:position, :uchar
|
765
|
+
end
|
766
|
+
|
767
|
+
# = Fields:
|
768
|
+
# :name ::
|
769
|
+
# (String)
|
770
|
+
# :row ::
|
771
|
+
# (Integer)
|
772
|
+
# :col ::
|
773
|
+
# (Integer)
|
774
|
+
# :font ::
|
775
|
+
# (ChartFont)
|
776
|
+
# :off ::
|
777
|
+
# (Integer)
|
778
|
+
# :is_horizontal ::
|
779
|
+
# (Integer)
|
780
|
+
# :ignore_cache ::
|
781
|
+
# (Integer)
|
782
|
+
# :range ::
|
783
|
+
# (SeriesRange) We use a range to hold the title formula properties even though it
|
784
|
+
# will only have 1 point in order to re-use similar functions.
|
785
|
+
# :data_point ::
|
786
|
+
# (SeriesDataPoint)
|
787
|
+
class ChartTitle < FFI::Struct
|
788
|
+
layout :name, :string,
|
789
|
+
:row, :uint,
|
790
|
+
:col, :ushort,
|
791
|
+
:font, ChartFont,
|
792
|
+
:off, :uchar,
|
793
|
+
:is_horizontal, :uchar,
|
794
|
+
:ignore_cache, :uchar,
|
795
|
+
:range, SeriesRange,
|
796
|
+
:data_point, SeriesDataPoint.by_value
|
797
|
+
end
|
798
|
+
|
799
|
+
# = Fields:
|
800
|
+
# :line ::
|
801
|
+
# (ChartLine) The line/border for the chart point. See @ref chart_lines.
|
802
|
+
# :fill ::
|
803
|
+
# (ChartFill) The fill for the chart point. See @ref chart_fills.
|
804
|
+
# :pattern ::
|
805
|
+
# (ChartPattern) The pattern for the chart point. See @ref chart_patterns.
|
806
|
+
class ChartPoint < FFI::Struct
|
807
|
+
layout :line, ChartLine,
|
808
|
+
:fill, ChartFill,
|
809
|
+
:pattern, ChartPattern
|
810
|
+
end
|
811
|
+
|
812
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_blank).</em>
|
813
|
+
#
|
814
|
+
# === Options:
|
815
|
+
# :blanks_as_gap ::
|
816
|
+
# Show empty chart cells as gaps in the data. The default.
|
817
|
+
# :blanks_as_zero ::
|
818
|
+
# Show empty chart cells as zeros.
|
819
|
+
# :blanks_as_connected ::
|
820
|
+
# Show empty chart cells as connected. Only for charts with lines.
|
821
|
+
#
|
822
|
+
# @method _enum_chart_blank_
|
823
|
+
# @return [Symbol]
|
824
|
+
# @scope class
|
825
|
+
enum :chart_blank, [
|
826
|
+
:blanks_as_gap, 0,
|
827
|
+
:blanks_as_zero, 1,
|
828
|
+
:blanks_as_connected, 2
|
829
|
+
]
|
830
|
+
|
831
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_position).</em>
|
832
|
+
#
|
833
|
+
# === Options:
|
834
|
+
# :axis_right ::
|
835
|
+
#
|
836
|
+
# :axis_left ::
|
837
|
+
#
|
838
|
+
# :axis_top ::
|
839
|
+
#
|
840
|
+
# :axis_bottom ::
|
841
|
+
#
|
842
|
+
#
|
843
|
+
# @method _enum_chart_position_
|
844
|
+
# @return [Symbol]
|
845
|
+
# @scope class
|
846
|
+
enum :chart_position, [
|
847
|
+
:axis_right, 0,
|
848
|
+
:axis_left, 1,
|
849
|
+
:axis_top, 2,
|
850
|
+
:axis_bottom, 3
|
851
|
+
]
|
852
|
+
|
853
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_error_bar_type).</em>
|
854
|
+
#
|
855
|
+
# === Options:
|
856
|
+
# :std_error ::
|
857
|
+
# Error bar type: Standard error.
|
858
|
+
# :fixed ::
|
859
|
+
# Error bar type: Fixed value.
|
860
|
+
# :percentage ::
|
861
|
+
# Error bar type: Percentage.
|
862
|
+
# :std_dev ::
|
863
|
+
# Error bar type: Standard deviation(s).
|
864
|
+
#
|
865
|
+
# @method _enum_chart_error_bar_type_
|
866
|
+
# @return [Symbol]
|
867
|
+
# @scope class
|
868
|
+
enum :chart_error_bar_type, [
|
869
|
+
:std_error, 0,
|
870
|
+
:fixed, 1,
|
871
|
+
:percentage, 2,
|
872
|
+
:std_dev, 3
|
873
|
+
]
|
874
|
+
|
875
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_error_bar_direction).</em>
|
876
|
+
#
|
877
|
+
# === Options:
|
878
|
+
# :dir_both ::
|
879
|
+
# Error bar extends in both directions. The default.
|
880
|
+
# :dir_plus ::
|
881
|
+
# Error bar extends in positive direction.
|
882
|
+
# :dir_minus ::
|
883
|
+
# Error bar extends in negative direction.
|
884
|
+
#
|
885
|
+
# @method _enum_chart_error_bar_direction_
|
886
|
+
# @return [Symbol]
|
887
|
+
# @scope class
|
888
|
+
enum :chart_error_bar_direction, [
|
889
|
+
:dir_both, 0,
|
890
|
+
:dir_plus, 1,
|
891
|
+
:dir_minus, 2
|
892
|
+
]
|
893
|
+
|
894
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_error_bar_cap).</em>
|
895
|
+
#
|
896
|
+
# === Options:
|
897
|
+
# :end_ ::
|
898
|
+
# Flat end cap. The default.
|
899
|
+
# :no ::
|
900
|
+
# No end cap.
|
901
|
+
#
|
902
|
+
# @method _enum_chart_error_bar_cap_
|
903
|
+
# @return [Symbol]
|
904
|
+
# @scope class
|
905
|
+
enum :chart_error_bar_cap, [
|
906
|
+
:end_, 0,
|
907
|
+
:no, 1
|
908
|
+
]
|
909
|
+
|
910
|
+
# = Fields:
|
911
|
+
# :type ::
|
912
|
+
# (Integer)
|
913
|
+
# :direction ::
|
914
|
+
# (Integer)
|
915
|
+
# :endcap ::
|
916
|
+
# (Integer)
|
917
|
+
# :has_value ::
|
918
|
+
# (Integer)
|
919
|
+
# :is_set ::
|
920
|
+
# (Integer)
|
921
|
+
# :is_x ::
|
922
|
+
# (Integer)
|
923
|
+
# :chart_group ::
|
924
|
+
# (Integer)
|
925
|
+
# :value ::
|
926
|
+
# (Float)
|
927
|
+
# :line ::
|
928
|
+
# (ChartLine)
|
929
|
+
class SeriesErrorBars < FFI::Struct
|
930
|
+
layout :type, :uchar,
|
931
|
+
:direction, :uchar,
|
932
|
+
:endcap, :uchar,
|
933
|
+
:has_value, :uchar,
|
934
|
+
:is_set, :uchar,
|
935
|
+
:is_x, :uchar,
|
936
|
+
:chart_group, :uchar,
|
937
|
+
:value, :double,
|
938
|
+
:line, ChartLine
|
939
|
+
end
|
940
|
+
|
941
|
+
# <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chart_trendline_type).</em>
|
942
|
+
#
|
943
|
+
# === Options:
|
944
|
+
# :linear ::
|
945
|
+
# Trendline type: Linear.
|
946
|
+
# :log ::
|
947
|
+
# Trendline type: Logarithm.
|
948
|
+
# :poly ::
|
949
|
+
# Trendline type: Polynomial.
|
950
|
+
# :power ::
|
951
|
+
# Trendline type: Power.
|
952
|
+
# :exp ::
|
953
|
+
# Trendline type: Exponential.
|
954
|
+
# :average ::
|
955
|
+
# Trendline type: Moving Average.
|
956
|
+
#
|
957
|
+
# @method _enum_chart_trendline_type_
|
958
|
+
# @return [Symbol]
|
959
|
+
# @scope class
|
960
|
+
enum :chart_trendline_type, [
|
961
|
+
:linear, 0,
|
962
|
+
:log, 1,
|
963
|
+
:poly, 2,
|
964
|
+
:power, 3,
|
965
|
+
:exp, 4,
|
966
|
+
:average, 5
|
967
|
+
]
|
968
|
+
|
969
|
+
# = Fields:
|
970
|
+
# :stqe_next ::
|
971
|
+
# (FFI::Pointer(*ChartSeries))
|
972
|
+
class ChartSeriesListPointers < FFI::Struct
|
973
|
+
layout :stqe_next, :pointer
|
974
|
+
end
|
975
|
+
|
976
|
+
# = Fields:
|
977
|
+
# :categories ::
|
978
|
+
# (SeriesRange)
|
979
|
+
# :values ::
|
980
|
+
# (SeriesRange)
|
981
|
+
# :title ::
|
982
|
+
# (ChartTitle)
|
983
|
+
# :line ::
|
984
|
+
# (ChartLine)
|
985
|
+
# :fill ::
|
986
|
+
# (ChartFill)
|
987
|
+
# :pattern ::
|
988
|
+
# (ChartPattern)
|
989
|
+
# :marker ::
|
990
|
+
# (ChartMarker)
|
991
|
+
# :points ::
|
992
|
+
# (ChartPoint)
|
993
|
+
# :point_count ::
|
994
|
+
# (Integer)
|
995
|
+
# :smooth ::
|
996
|
+
# (Integer)
|
997
|
+
# :invert_if_negative ::
|
998
|
+
# (Integer)
|
999
|
+
# :has_labels ::
|
1000
|
+
# (Integer) Data label parameters.
|
1001
|
+
# :show_labels_value ::
|
1002
|
+
# (Integer)
|
1003
|
+
# :show_labels_category ::
|
1004
|
+
# (Integer)
|
1005
|
+
# :show_labels_name ::
|
1006
|
+
# (Integer)
|
1007
|
+
# :show_labels_leader ::
|
1008
|
+
# (Integer)
|
1009
|
+
# :show_labels_legend ::
|
1010
|
+
# (Integer)
|
1011
|
+
# :show_labels_percent ::
|
1012
|
+
# (Integer)
|
1013
|
+
# :label_position ::
|
1014
|
+
# (Integer)
|
1015
|
+
# :label_separator ::
|
1016
|
+
# (Integer)
|
1017
|
+
# :default_label_position ::
|
1018
|
+
# (Integer)
|
1019
|
+
# :label_num_format ::
|
1020
|
+
# (String)
|
1021
|
+
# :label_font ::
|
1022
|
+
# (ChartFont)
|
1023
|
+
# :x_error_bars ::
|
1024
|
+
# (SeriesErrorBars)
|
1025
|
+
# :y_error_bars ::
|
1026
|
+
# (SeriesErrorBars)
|
1027
|
+
# :has_trendline ::
|
1028
|
+
# (Integer)
|
1029
|
+
# :has_trendline_forecast ::
|
1030
|
+
# (Integer)
|
1031
|
+
# :has_trendline_equation ::
|
1032
|
+
# (Integer)
|
1033
|
+
# :has_trendline_r_squared ::
|
1034
|
+
# (Integer)
|
1035
|
+
# :has_trendline_intercept ::
|
1036
|
+
# (Integer)
|
1037
|
+
# :trendline_type ::
|
1038
|
+
# (Integer)
|
1039
|
+
# :trendline_value ::
|
1040
|
+
# (Integer)
|
1041
|
+
# :trendline_forward ::
|
1042
|
+
# (Float)
|
1043
|
+
# :trendline_backward ::
|
1044
|
+
# (Float)
|
1045
|
+
# :trendline_value_type ::
|
1046
|
+
# (Integer)
|
1047
|
+
# :trendline_name ::
|
1048
|
+
# (String)
|
1049
|
+
# :trendline_line ::
|
1050
|
+
# (ChartLine)
|
1051
|
+
# :trendline_intercept ::
|
1052
|
+
# (Float)
|
1053
|
+
# :list_pointers ::
|
1054
|
+
# (ChartSeriesListPointers)
|
1055
|
+
module ChartSeriesWrappers
|
1056
|
+
# @param [String] sheetname
|
1057
|
+
# @param [Integer] first_row
|
1058
|
+
# @param [Integer] first_col
|
1059
|
+
# @param [Integer] last_row
|
1060
|
+
# @param [Integer] last_col
|
1061
|
+
# @return [nil]
|
1062
|
+
def set_categories(sheetname, first_row, first_col, last_row, last_col)
|
1063
|
+
Libxlsxwriter.chart_series_set_categories(self, sheetname, first_row, first_col, last_row, last_col)
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# @param [String] sheetname
|
1067
|
+
# @param [Integer] first_row
|
1068
|
+
# @param [Integer] first_col
|
1069
|
+
# @param [Integer] last_row
|
1070
|
+
# @param [Integer] last_col
|
1071
|
+
# @return [nil]
|
1072
|
+
def set_values(sheetname, first_row, first_col, last_row, last_col)
|
1073
|
+
Libxlsxwriter.chart_series_set_values(self, sheetname, first_row, first_col, last_row, last_col)
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# @param [String] name
|
1077
|
+
# @return [nil]
|
1078
|
+
def set_name(name)
|
1079
|
+
Libxlsxwriter.chart_series_set_name(self, name)
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
# @param [String] sheetname
|
1083
|
+
# @param [Integer] row
|
1084
|
+
# @param [Integer] col
|
1085
|
+
# @return [nil]
|
1086
|
+
def set_name_range(sheetname, row, col)
|
1087
|
+
Libxlsxwriter.chart_series_set_name_range(self, sheetname, row, col)
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# @param [ChartLine] line
|
1091
|
+
# @return [nil]
|
1092
|
+
def set_line(line)
|
1093
|
+
Libxlsxwriter.chart_series_set_line(self, line)
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
# @param [ChartFill] fill
|
1097
|
+
# @return [nil]
|
1098
|
+
def set_fill(fill)
|
1099
|
+
Libxlsxwriter.chart_series_set_fill(self, fill)
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
# @return [nil]
|
1103
|
+
def set_invert_if_negative()
|
1104
|
+
Libxlsxwriter.chart_series_set_invert_if_negative(self)
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
# @param [ChartPattern] pattern
|
1108
|
+
# @return [nil]
|
1109
|
+
def set_pattern(pattern)
|
1110
|
+
Libxlsxwriter.chart_series_set_pattern(self, pattern)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# @param [Integer] type
|
1114
|
+
# @return [nil]
|
1115
|
+
def set_marker_type(type)
|
1116
|
+
Libxlsxwriter.chart_series_set_marker_type(self, type)
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
# @param [Integer] size
|
1120
|
+
# @return [nil]
|
1121
|
+
def set_marker_size(size)
|
1122
|
+
Libxlsxwriter.chart_series_set_marker_size(self, size)
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
# @param [ChartLine] line
|
1126
|
+
# @return [nil]
|
1127
|
+
def set_marker_line(line)
|
1128
|
+
Libxlsxwriter.chart_series_set_marker_line(self, line)
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# @param [ChartFill] fill
|
1132
|
+
# @return [nil]
|
1133
|
+
def set_marker_fill(fill)
|
1134
|
+
Libxlsxwriter.chart_series_set_marker_fill(self, fill)
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
# @param [ChartPattern] pattern
|
1138
|
+
# @return [nil]
|
1139
|
+
def set_marker_pattern(pattern)
|
1140
|
+
Libxlsxwriter.chart_series_set_marker_pattern(self, pattern)
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
# @param [FFI::Pointer(*ChartPoint)] points
|
1144
|
+
# @return [Symbol from _enum_error_]
|
1145
|
+
def set_points(points)
|
1146
|
+
Libxlsxwriter.chart_series_set_points(self, points)
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
# @param [Integer] smooth
|
1150
|
+
# @return [nil]
|
1151
|
+
def set_smooth(smooth)
|
1152
|
+
Libxlsxwriter.chart_series_set_smooth(self, smooth)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# @return [nil]
|
1156
|
+
def set_labels()
|
1157
|
+
Libxlsxwriter.chart_series_set_labels(self)
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
# @param [Integer] show_name
|
1161
|
+
# @param [Integer] show_category
|
1162
|
+
# @param [Integer] show_value
|
1163
|
+
# @return [nil]
|
1164
|
+
def set_labels_options(show_name, show_category, show_value)
|
1165
|
+
Libxlsxwriter.chart_series_set_labels_options(self, show_name, show_category, show_value)
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# @param [Integer] separator
|
1169
|
+
# @return [nil]
|
1170
|
+
def set_labels_separator(separator)
|
1171
|
+
Libxlsxwriter.chart_series_set_labels_separator(self, separator)
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
# @param [Integer] position
|
1175
|
+
# @return [nil]
|
1176
|
+
def set_labels_position(position)
|
1177
|
+
Libxlsxwriter.chart_series_set_labels_position(self, position)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# @return [nil]
|
1181
|
+
def set_labels_leader_line()
|
1182
|
+
Libxlsxwriter.chart_series_set_labels_leader_line(self)
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# @return [nil]
|
1186
|
+
def set_labels_legend()
|
1187
|
+
Libxlsxwriter.chart_series_set_labels_legend(self)
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
# @return [nil]
|
1191
|
+
def set_labels_percentage()
|
1192
|
+
Libxlsxwriter.chart_series_set_labels_percentage(self)
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# @param [String] num_format
|
1196
|
+
# @return [nil]
|
1197
|
+
def set_labels_num_format(num_format)
|
1198
|
+
Libxlsxwriter.chart_series_set_labels_num_format(self, num_format)
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# @param [ChartFont] font
|
1202
|
+
# @return [nil]
|
1203
|
+
def set_labels_font(font)
|
1204
|
+
Libxlsxwriter.chart_series_set_labels_font(self, font)
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
# @param [Integer] type
|
1208
|
+
# @param [Integer] value
|
1209
|
+
# @return [nil]
|
1210
|
+
def set_trendline(type, value)
|
1211
|
+
Libxlsxwriter.chart_series_set_trendline(self, type, value)
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
# @param [Float] forward
|
1215
|
+
# @param [Float] backward
|
1216
|
+
# @return [nil]
|
1217
|
+
def set_trendline_forecast(forward, backward)
|
1218
|
+
Libxlsxwriter.chart_series_set_trendline_forecast(self, forward, backward)
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# @return [nil]
|
1222
|
+
def set_trendline_equation()
|
1223
|
+
Libxlsxwriter.chart_series_set_trendline_equation(self)
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# @return [nil]
|
1227
|
+
def set_trendline_r_squared()
|
1228
|
+
Libxlsxwriter.chart_series_set_trendline_r_squared(self)
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# @param [Float] intercept
|
1232
|
+
# @return [nil]
|
1233
|
+
def set_trendline_intercept(intercept)
|
1234
|
+
Libxlsxwriter.chart_series_set_trendline_intercept(self, intercept)
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# @param [String] name
|
1238
|
+
# @return [nil]
|
1239
|
+
def set_trendline_name(name)
|
1240
|
+
Libxlsxwriter.chart_series_set_trendline_name(self, name)
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# @param [ChartLine] line
|
1244
|
+
# @return [nil]
|
1245
|
+
def set_trendline_line(line)
|
1246
|
+
Libxlsxwriter.chart_series_set_trendline_line(self, line)
|
1247
|
+
end
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
class ChartSeries < FFI::Struct
|
1251
|
+
include ChartSeriesWrappers
|
1252
|
+
layout :categories, SeriesRange,
|
1253
|
+
:values, SeriesRange,
|
1254
|
+
:title, ChartTitle.by_value,
|
1255
|
+
:line, ChartLine,
|
1256
|
+
:fill, ChartFill,
|
1257
|
+
:pattern, ChartPattern,
|
1258
|
+
:marker, ChartMarker,
|
1259
|
+
:points, ChartPoint,
|
1260
|
+
:point_count, :ushort,
|
1261
|
+
:smooth, :uchar,
|
1262
|
+
:invert_if_negative, :uchar,
|
1263
|
+
:has_labels, :uchar,
|
1264
|
+
:show_labels_value, :uchar,
|
1265
|
+
:show_labels_category, :uchar,
|
1266
|
+
:show_labels_name, :uchar,
|
1267
|
+
:show_labels_leader, :uchar,
|
1268
|
+
:show_labels_legend, :uchar,
|
1269
|
+
:show_labels_percent, :uchar,
|
1270
|
+
:label_position, :uchar,
|
1271
|
+
:label_separator, :uchar,
|
1272
|
+
:default_label_position, :uchar,
|
1273
|
+
:label_num_format, :string,
|
1274
|
+
:label_font, ChartFont,
|
1275
|
+
:x_error_bars, SeriesErrorBars,
|
1276
|
+
:y_error_bars, SeriesErrorBars,
|
1277
|
+
:has_trendline, :uchar,
|
1278
|
+
:has_trendline_forecast, :uchar,
|
1279
|
+
:has_trendline_equation, :uchar,
|
1280
|
+
:has_trendline_r_squared, :uchar,
|
1281
|
+
:has_trendline_intercept, :uchar,
|
1282
|
+
:trendline_type, :uchar,
|
1283
|
+
:trendline_value, :uchar,
|
1284
|
+
:trendline_forward, :double,
|
1285
|
+
:trendline_backward, :double,
|
1286
|
+
:trendline_value_type, :uchar,
|
1287
|
+
:trendline_name, :string,
|
1288
|
+
:trendline_line, ChartLine,
|
1289
|
+
:trendline_intercept, :double,
|
1290
|
+
:list_pointers, ChartSeriesListPointers.by_value
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
# = Fields:
|
1294
|
+
# :visible ::
|
1295
|
+
# (Integer)
|
1296
|
+
# :line ::
|
1297
|
+
# (ChartLine)
|
1298
|
+
class ChartGridline < FFI::Struct
|
1299
|
+
layout :visible, :uchar,
|
1300
|
+
:line, ChartLine
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
# = Fields:
|
1304
|
+
# :title ::
|
1305
|
+
# (ChartTitle)
|
1306
|
+
# :num_format ::
|
1307
|
+
# (String)
|
1308
|
+
# :default_num_format ::
|
1309
|
+
# (String)
|
1310
|
+
# :source_linked ::
|
1311
|
+
# (Integer)
|
1312
|
+
# :major_tick_mark ::
|
1313
|
+
# (Integer)
|
1314
|
+
# :minor_tick_mark ::
|
1315
|
+
# (Integer)
|
1316
|
+
# :is_horizontal ::
|
1317
|
+
# (Integer)
|
1318
|
+
# :major_gridlines ::
|
1319
|
+
# (ChartGridline)
|
1320
|
+
# :minor_gridlines ::
|
1321
|
+
# (ChartGridline)
|
1322
|
+
# :num_font ::
|
1323
|
+
# (ChartFont)
|
1324
|
+
# :line ::
|
1325
|
+
# (ChartLine)
|
1326
|
+
# :fill ::
|
1327
|
+
# (ChartFill)
|
1328
|
+
# :pattern ::
|
1329
|
+
# (ChartPattern)
|
1330
|
+
# :is_category ::
|
1331
|
+
# (Integer)
|
1332
|
+
# :is_date ::
|
1333
|
+
# (Integer)
|
1334
|
+
# :is_value ::
|
1335
|
+
# (Integer)
|
1336
|
+
# :axis_position ::
|
1337
|
+
# (Integer)
|
1338
|
+
# :position_axis ::
|
1339
|
+
# (Integer)
|
1340
|
+
# :label_position ::
|
1341
|
+
# (Integer)
|
1342
|
+
# :hidden ::
|
1343
|
+
# (Integer)
|
1344
|
+
# :reverse ::
|
1345
|
+
# (Integer)
|
1346
|
+
# :has_min ::
|
1347
|
+
# (Integer)
|
1348
|
+
# :min ::
|
1349
|
+
# (Float)
|
1350
|
+
# :has_max ::
|
1351
|
+
# (Integer)
|
1352
|
+
# :max ::
|
1353
|
+
# (Float)
|
1354
|
+
# :has_major_unit ::
|
1355
|
+
# (Integer)
|
1356
|
+
# :major_unit ::
|
1357
|
+
# (Float)
|
1358
|
+
# :has_minor_unit ::
|
1359
|
+
# (Integer)
|
1360
|
+
# :minor_unit ::
|
1361
|
+
# (Float)
|
1362
|
+
# :interval_unit ::
|
1363
|
+
# (Integer)
|
1364
|
+
# :interval_tick ::
|
1365
|
+
# (Integer)
|
1366
|
+
# :log_base ::
|
1367
|
+
# (Integer)
|
1368
|
+
# :display_units ::
|
1369
|
+
# (Integer)
|
1370
|
+
# :display_units_visible ::
|
1371
|
+
# (Integer)
|
1372
|
+
# :has_crossing ::
|
1373
|
+
# (Integer)
|
1374
|
+
# :crossing_max ::
|
1375
|
+
# (Integer)
|
1376
|
+
# :crossing ::
|
1377
|
+
# (Float)
|
1378
|
+
module ChartAxisWrappers
|
1379
|
+
# @param [String] name
|
1380
|
+
# @return [nil]
|
1381
|
+
def set_name(name)
|
1382
|
+
Libxlsxwriter.chart_axis_set_name(self, name)
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
# @param [String] sheetname
|
1386
|
+
# @param [Integer] row
|
1387
|
+
# @param [Integer] col
|
1388
|
+
# @return [nil]
|
1389
|
+
def set_name_range(sheetname, row, col)
|
1390
|
+
Libxlsxwriter.chart_axis_set_name_range(self, sheetname, row, col)
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
# @param [ChartFont] font
|
1394
|
+
# @return [nil]
|
1395
|
+
def set_name_font(font)
|
1396
|
+
Libxlsxwriter.chart_axis_set_name_font(self, font)
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
# @param [ChartFont] font
|
1400
|
+
# @return [nil]
|
1401
|
+
def set_num_font(font)
|
1402
|
+
Libxlsxwriter.chart_axis_set_num_font(self, font)
|
1403
|
+
end
|
1404
|
+
|
1405
|
+
# @param [String] num_format
|
1406
|
+
# @return [nil]
|
1407
|
+
def set_num_format(num_format)
|
1408
|
+
Libxlsxwriter.chart_axis_set_num_format(self, num_format)
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
# @param [ChartLine] line
|
1412
|
+
# @return [nil]
|
1413
|
+
def set_line(line)
|
1414
|
+
Libxlsxwriter.chart_axis_set_line(self, line)
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
# @param [ChartFill] fill
|
1418
|
+
# @return [nil]
|
1419
|
+
def set_fill(fill)
|
1420
|
+
Libxlsxwriter.chart_axis_set_fill(self, fill)
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
# @param [ChartPattern] pattern
|
1424
|
+
# @return [nil]
|
1425
|
+
def set_pattern(pattern)
|
1426
|
+
Libxlsxwriter.chart_axis_set_pattern(self, pattern)
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
# @return [nil]
|
1430
|
+
def set_reverse()
|
1431
|
+
Libxlsxwriter.chart_axis_set_reverse(self)
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
# @param [Float] value
|
1435
|
+
# @return [nil]
|
1436
|
+
def set_crossing(value)
|
1437
|
+
Libxlsxwriter.chart_axis_set_crossing(self, value)
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
# @return [nil]
|
1441
|
+
def set_crossing_max()
|
1442
|
+
Libxlsxwriter.chart_axis_set_crossing_max(self)
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
# @return [nil]
|
1446
|
+
def off()
|
1447
|
+
Libxlsxwriter.chart_axis_off(self)
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# @param [Integer] position
|
1451
|
+
# @return [nil]
|
1452
|
+
def set_position(position)
|
1453
|
+
Libxlsxwriter.chart_axis_set_position(self, position)
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
# @param [Integer] position
|
1457
|
+
# @return [nil]
|
1458
|
+
def set_label_position(position)
|
1459
|
+
Libxlsxwriter.chart_axis_set_label_position(self, position)
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
# @param [Float] min
|
1463
|
+
# @return [nil]
|
1464
|
+
def set_min(min)
|
1465
|
+
Libxlsxwriter.chart_axis_set_min(self, min)
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
# @param [Float] max
|
1469
|
+
# @return [nil]
|
1470
|
+
def set_max(max)
|
1471
|
+
Libxlsxwriter.chart_axis_set_max(self, max)
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# @param [Integer] log_base
|
1475
|
+
# @return [nil]
|
1476
|
+
def set_log_base(log_base)
|
1477
|
+
Libxlsxwriter.chart_axis_set_log_base(self, log_base)
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# @param [Integer] type
|
1481
|
+
# @return [nil]
|
1482
|
+
def set_major_tick_mark(type)
|
1483
|
+
Libxlsxwriter.chart_axis_set_major_tick_mark(self, type)
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
# @param [Integer] type
|
1487
|
+
# @return [nil]
|
1488
|
+
def set_minor_tick_mark(type)
|
1489
|
+
Libxlsxwriter.chart_axis_set_minor_tick_mark(self, type)
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
# @param [Integer] unit
|
1493
|
+
# @return [nil]
|
1494
|
+
def set_interval_unit(unit)
|
1495
|
+
Libxlsxwriter.chart_axis_set_interval_unit(self, unit)
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
# @param [Integer] unit
|
1499
|
+
# @return [nil]
|
1500
|
+
def set_interval_tick(unit)
|
1501
|
+
Libxlsxwriter.chart_axis_set_interval_tick(self, unit)
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
# @param [Float] unit
|
1505
|
+
# @return [nil]
|
1506
|
+
def set_major_unit(unit)
|
1507
|
+
Libxlsxwriter.chart_axis_set_major_unit(self, unit)
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
# @param [Float] unit
|
1511
|
+
# @return [nil]
|
1512
|
+
def set_minor_unit(unit)
|
1513
|
+
Libxlsxwriter.chart_axis_set_minor_unit(self, unit)
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
# @param [Integer] units
|
1517
|
+
# @return [nil]
|
1518
|
+
def set_display_units(units)
|
1519
|
+
Libxlsxwriter.chart_axis_set_display_units(self, units)
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
# @param [Integer] visible
|
1523
|
+
# @return [nil]
|
1524
|
+
def set_display_units_visible(visible)
|
1525
|
+
Libxlsxwriter.chart_axis_set_display_units_visible(self, visible)
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
# @param [Integer] visible
|
1529
|
+
# @return [nil]
|
1530
|
+
def major_gridlines_set_visible(visible)
|
1531
|
+
Libxlsxwriter.chart_axis_major_gridlines_set_visible(self, visible)
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
# @param [Integer] visible
|
1535
|
+
# @return [nil]
|
1536
|
+
def minor_gridlines_set_visible(visible)
|
1537
|
+
Libxlsxwriter.chart_axis_minor_gridlines_set_visible(self, visible)
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
# @param [ChartLine] line
|
1541
|
+
# @return [nil]
|
1542
|
+
def major_gridlines_set_line(line)
|
1543
|
+
Libxlsxwriter.chart_axis_major_gridlines_set_line(self, line)
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
# @param [ChartLine] line
|
1547
|
+
# @return [nil]
|
1548
|
+
def minor_gridlines_set_line(line)
|
1549
|
+
Libxlsxwriter.chart_axis_minor_gridlines_set_line(self, line)
|
1550
|
+
end
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
class ChartAxis < FFI::Struct
|
1554
|
+
include ChartAxisWrappers
|
1555
|
+
layout :title, ChartTitle.by_value,
|
1556
|
+
:num_format, :string,
|
1557
|
+
:default_num_format, :string,
|
1558
|
+
:source_linked, :uchar,
|
1559
|
+
:major_tick_mark, :uchar,
|
1560
|
+
:minor_tick_mark, :uchar,
|
1561
|
+
:is_horizontal, :uchar,
|
1562
|
+
:major_gridlines, ChartGridline.by_value,
|
1563
|
+
:minor_gridlines, ChartGridline.by_value,
|
1564
|
+
:num_font, ChartFont,
|
1565
|
+
:line, ChartLine,
|
1566
|
+
:fill, ChartFill,
|
1567
|
+
:pattern, ChartPattern,
|
1568
|
+
:is_category, :uchar,
|
1569
|
+
:is_date, :uchar,
|
1570
|
+
:is_value, :uchar,
|
1571
|
+
:axis_position, :uchar,
|
1572
|
+
:position_axis, :uchar,
|
1573
|
+
:label_position, :uchar,
|
1574
|
+
:hidden, :uchar,
|
1575
|
+
:reverse, :uchar,
|
1576
|
+
:has_min, :uchar,
|
1577
|
+
:min, :double,
|
1578
|
+
:has_max, :uchar,
|
1579
|
+
:max, :double,
|
1580
|
+
:has_major_unit, :uchar,
|
1581
|
+
:major_unit, :double,
|
1582
|
+
:has_minor_unit, :uchar,
|
1583
|
+
:minor_unit, :double,
|
1584
|
+
:interval_unit, :ushort,
|
1585
|
+
:interval_tick, :ushort,
|
1586
|
+
:log_base, :ushort,
|
1587
|
+
:display_units, :uchar,
|
1588
|
+
:display_units_visible, :uchar,
|
1589
|
+
:has_crossing, :uchar,
|
1590
|
+
:crossing_max, :uchar,
|
1591
|
+
:crossing, :double
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
# = Fields:
|
1595
|
+
# :stqe_next ::
|
1596
|
+
# (FFI::Pointer(*Chart))
|
1597
|
+
class ChartOrderedListPointers < FFI::Struct
|
1598
|
+
layout :stqe_next, :pointer
|
1599
|
+
end
|
1600
|
+
|
1601
|
+
# = Fields:
|
1602
|
+
# :stqe_next ::
|
1603
|
+
# (FFI::Pointer(*Chart))
|
1604
|
+
class ChartListPointers < FFI::Struct
|
1605
|
+
layout :stqe_next, :pointer
|
1606
|
+
end
|
1607
|
+
|
1608
|
+
# = Fields:
|
1609
|
+
# :file ::
|
1610
|
+
# (FFI::Pointer(*FILE))
|
1611
|
+
# :type ::
|
1612
|
+
# (Integer)
|
1613
|
+
# :subtype ::
|
1614
|
+
# (Integer)
|
1615
|
+
# :series_index ::
|
1616
|
+
# (Integer)
|
1617
|
+
# :write_chart_type ::
|
1618
|
+
# (FFI::Pointer(*))
|
1619
|
+
# :write_plot_area ::
|
1620
|
+
# (FFI::Pointer(*))
|
1621
|
+
# :x_axis ::
|
1622
|
+
# (ChartAxis) A pointer to the chart x_axis object which can be used in functions
|
1623
|
+
# that configures the X axis.
|
1624
|
+
# :y_axis ::
|
1625
|
+
# (ChartAxis) A pointer to the chart y_axis object which can be used in functions
|
1626
|
+
# that configures the Y axis.
|
1627
|
+
# :title ::
|
1628
|
+
# (ChartTitle)
|
1629
|
+
# :id ::
|
1630
|
+
# (Integer)
|
1631
|
+
# :axis_id_1 ::
|
1632
|
+
# (Integer)
|
1633
|
+
# :axis_id_2 ::
|
1634
|
+
# (Integer)
|
1635
|
+
# :axis_id_3 ::
|
1636
|
+
# (Integer)
|
1637
|
+
# :axis_id_4 ::
|
1638
|
+
# (Integer)
|
1639
|
+
# :in_use ::
|
1640
|
+
# (Integer)
|
1641
|
+
# :chart_group ::
|
1642
|
+
# (Integer)
|
1643
|
+
# :cat_has_num_fmt ::
|
1644
|
+
# (Integer)
|
1645
|
+
# :has_horiz_cat_axis ::
|
1646
|
+
# (Integer)
|
1647
|
+
# :has_horiz_val_axis ::
|
1648
|
+
# (Integer)
|
1649
|
+
# :style_id ::
|
1650
|
+
# (Integer)
|
1651
|
+
# :rotation ::
|
1652
|
+
# (Integer)
|
1653
|
+
# :hole_size ::
|
1654
|
+
# (Integer)
|
1655
|
+
# :no_title ::
|
1656
|
+
# (Integer)
|
1657
|
+
# :has_overlap ::
|
1658
|
+
# (Integer)
|
1659
|
+
# :overlap_y1 ::
|
1660
|
+
# (Integer)
|
1661
|
+
# :overlap_y2 ::
|
1662
|
+
# (Integer)
|
1663
|
+
# :gap_y1 ::
|
1664
|
+
# (Integer)
|
1665
|
+
# :gap_y2 ::
|
1666
|
+
# (Integer)
|
1667
|
+
# :grouping ::
|
1668
|
+
# (Integer)
|
1669
|
+
# :default_cross_between ::
|
1670
|
+
# (Integer)
|
1671
|
+
# :legend ::
|
1672
|
+
# (ChartLegend)
|
1673
|
+
# :delete_series ::
|
1674
|
+
# (FFI::Pointer(*Int16T))
|
1675
|
+
# :delete_series_count ::
|
1676
|
+
# (Integer)
|
1677
|
+
# :default_marker ::
|
1678
|
+
# (ChartMarker)
|
1679
|
+
# :chartarea_line ::
|
1680
|
+
# (ChartLine)
|
1681
|
+
# :chartarea_fill ::
|
1682
|
+
# (ChartFill)
|
1683
|
+
# :chartarea_pattern ::
|
1684
|
+
# (ChartPattern)
|
1685
|
+
# :plotarea_line ::
|
1686
|
+
# (ChartLine)
|
1687
|
+
# :plotarea_fill ::
|
1688
|
+
# (ChartFill)
|
1689
|
+
# :plotarea_pattern ::
|
1690
|
+
# (ChartPattern)
|
1691
|
+
# :has_drop_lines ::
|
1692
|
+
# (Integer)
|
1693
|
+
# :drop_lines_line ::
|
1694
|
+
# (ChartLine)
|
1695
|
+
# :has_high_low_lines ::
|
1696
|
+
# (Integer)
|
1697
|
+
# :high_low_lines_line ::
|
1698
|
+
# (ChartLine)
|
1699
|
+
# :series_list ::
|
1700
|
+
# (ChartSeriesList)
|
1701
|
+
# :has_table ::
|
1702
|
+
# (Integer)
|
1703
|
+
# :has_table_vertical ::
|
1704
|
+
# (Integer)
|
1705
|
+
# :has_table_horizontal ::
|
1706
|
+
# (Integer)
|
1707
|
+
# :has_table_outline ::
|
1708
|
+
# (Integer)
|
1709
|
+
# :has_table_legend_keys ::
|
1710
|
+
# (Integer)
|
1711
|
+
# :table_font ::
|
1712
|
+
# (ChartFont)
|
1713
|
+
# :show_blanks_as ::
|
1714
|
+
# (Integer)
|
1715
|
+
# :show_hidden_data ::
|
1716
|
+
# (Integer)
|
1717
|
+
# :has_up_down_bars ::
|
1718
|
+
# (Integer)
|
1719
|
+
# :up_bar_line ::
|
1720
|
+
# (ChartLine)
|
1721
|
+
# :down_bar_line ::
|
1722
|
+
# (ChartLine)
|
1723
|
+
# :up_bar_fill ::
|
1724
|
+
# (ChartFill)
|
1725
|
+
# :down_bar_fill ::
|
1726
|
+
# (ChartFill)
|
1727
|
+
# :default_label_position ::
|
1728
|
+
# (Integer)
|
1729
|
+
# :ordered_list_pointers ::
|
1730
|
+
# (ChartOrderedListPointers)
|
1731
|
+
# :list_pointers ::
|
1732
|
+
# (ChartListPointers)
|
1733
|
+
module ChartWrappers
|
1734
|
+
# @return [nil]
|
1735
|
+
def free()
|
1736
|
+
Libxlsxwriter.chart_free(self)
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
# @return [nil]
|
1740
|
+
def assemble_xml_file()
|
1741
|
+
Libxlsxwriter.chart_assemble_xml_file(self)
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# @param [String] categories
|
1745
|
+
# @param [String] values
|
1746
|
+
# @return [ChartSeries]
|
1747
|
+
def add_series(categories, values)
|
1748
|
+
ChartSeries.new Libxlsxwriter.chart_add_series(self, categories, values)
|
1749
|
+
end
|
1750
|
+
|
1751
|
+
# @param [String] name
|
1752
|
+
# @return [nil]
|
1753
|
+
def title_set_name(name)
|
1754
|
+
Libxlsxwriter.chart_title_set_name(self, name)
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
# @param [String] sheetname
|
1758
|
+
# @param [Integer] row
|
1759
|
+
# @param [Integer] col
|
1760
|
+
# @return [nil]
|
1761
|
+
def title_set_name_range(sheetname, row, col)
|
1762
|
+
Libxlsxwriter.chart_title_set_name_range(self, sheetname, row, col)
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
# @param [ChartFont] font
|
1766
|
+
# @return [nil]
|
1767
|
+
def title_set_name_font(font)
|
1768
|
+
Libxlsxwriter.chart_title_set_name_font(self, font)
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# @return [nil]
|
1772
|
+
def title_off()
|
1773
|
+
Libxlsxwriter.chart_title_off(self)
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
# @param [Integer] position
|
1777
|
+
# @return [nil]
|
1778
|
+
def legend_set_position(position)
|
1779
|
+
Libxlsxwriter.chart_legend_set_position(self, position)
|
1780
|
+
end
|
1781
|
+
|
1782
|
+
# @param [ChartFont] font
|
1783
|
+
# @return [nil]
|
1784
|
+
def legend_set_font(font)
|
1785
|
+
Libxlsxwriter.chart_legend_set_font(self, font)
|
1786
|
+
end
|
1787
|
+
|
1788
|
+
# @param [FFI::Pointer(*Short)] delete_series
|
1789
|
+
# @return [Symbol from _enum_error_]
|
1790
|
+
def legend_delete_series(delete_series)
|
1791
|
+
Libxlsxwriter.chart_legend_delete_series(self, delete_series)
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
# @param [ChartLine] line
|
1795
|
+
# @return [nil]
|
1796
|
+
def chartarea_set_line(line)
|
1797
|
+
Libxlsxwriter.chart_chartarea_set_line(self, line)
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
# @param [ChartFill] fill
|
1801
|
+
# @return [nil]
|
1802
|
+
def chartarea_set_fill(fill)
|
1803
|
+
Libxlsxwriter.chart_chartarea_set_fill(self, fill)
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
# @param [ChartPattern] pattern
|
1807
|
+
# @return [nil]
|
1808
|
+
def chartarea_set_pattern(pattern)
|
1809
|
+
Libxlsxwriter.chart_chartarea_set_pattern(self, pattern)
|
1810
|
+
end
|
1811
|
+
|
1812
|
+
# @param [ChartLine] line
|
1813
|
+
# @return [nil]
|
1814
|
+
def plotarea_set_line(line)
|
1815
|
+
Libxlsxwriter.chart_plotarea_set_line(self, line)
|
1816
|
+
end
|
1817
|
+
|
1818
|
+
# @param [ChartFill] fill
|
1819
|
+
# @return [nil]
|
1820
|
+
def plotarea_set_fill(fill)
|
1821
|
+
Libxlsxwriter.chart_plotarea_set_fill(self, fill)
|
1822
|
+
end
|
1823
|
+
|
1824
|
+
# @param [ChartPattern] pattern
|
1825
|
+
# @return [nil]
|
1826
|
+
def plotarea_set_pattern(pattern)
|
1827
|
+
Libxlsxwriter.chart_plotarea_set_pattern(self, pattern)
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
# @param [Integer] style_id
|
1831
|
+
# @return [nil]
|
1832
|
+
def set_style(style_id)
|
1833
|
+
Libxlsxwriter.chart_set_style(self, style_id)
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
# @return [nil]
|
1837
|
+
def set_table()
|
1838
|
+
Libxlsxwriter.chart_set_table(self)
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
# @param [Integer] horizontal
|
1842
|
+
# @param [Integer] vertical
|
1843
|
+
# @param [Integer] outline
|
1844
|
+
# @param [Integer] legend_keys
|
1845
|
+
# @return [nil]
|
1846
|
+
def set_table_grid(horizontal, vertical, outline, legend_keys)
|
1847
|
+
Libxlsxwriter.chart_set_table_grid(self, horizontal, vertical, outline, legend_keys)
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# @param [ChartFont] font
|
1851
|
+
# @return [nil]
|
1852
|
+
def set_table_font(font)
|
1853
|
+
Libxlsxwriter.chart_set_table_font(self, font)
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
# @return [nil]
|
1857
|
+
def set_up_down_bars()
|
1858
|
+
Libxlsxwriter.chart_set_up_down_bars(self)
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
# @param [ChartLine] up_bar_line
|
1862
|
+
# @param [ChartFill] up_bar_fill
|
1863
|
+
# @param [ChartLine] down_bar_line
|
1864
|
+
# @param [ChartFill] down_bar_fill
|
1865
|
+
# @return [nil]
|
1866
|
+
def set_up_down_bars_format(up_bar_line, up_bar_fill, down_bar_line, down_bar_fill)
|
1867
|
+
Libxlsxwriter.chart_set_up_down_bars_format(self, up_bar_line, up_bar_fill, down_bar_line, down_bar_fill)
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
# @param [ChartLine] line
|
1871
|
+
# @return [nil]
|
1872
|
+
def set_drop_lines(line)
|
1873
|
+
Libxlsxwriter.chart_set_drop_lines(self, line)
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
# @param [ChartLine] line
|
1877
|
+
# @return [nil]
|
1878
|
+
def set_high_low_lines(line)
|
1879
|
+
Libxlsxwriter.chart_set_high_low_lines(self, line)
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
# @param [Integer] overlap
|
1883
|
+
# @return [nil]
|
1884
|
+
def set_series_overlap(overlap)
|
1885
|
+
Libxlsxwriter.chart_set_series_overlap(self, overlap)
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
# @param [Integer] gap
|
1889
|
+
# @return [nil]
|
1890
|
+
def set_series_gap(gap)
|
1891
|
+
Libxlsxwriter.chart_set_series_gap(self, gap)
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
# @param [Integer] option
|
1895
|
+
# @return [nil]
|
1896
|
+
def show_blanks_as(option)
|
1897
|
+
Libxlsxwriter.chart_show_blanks_as(self, option)
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
# @return [nil]
|
1901
|
+
def show_hidden_data()
|
1902
|
+
Libxlsxwriter.chart_show_hidden_data(self)
|
1903
|
+
end
|
1904
|
+
|
1905
|
+
# @param [Integer] rotation
|
1906
|
+
# @return [nil]
|
1907
|
+
def set_rotation(rotation)
|
1908
|
+
Libxlsxwriter.chart_set_rotation(self, rotation)
|
1909
|
+
end
|
1910
|
+
|
1911
|
+
# @param [Integer] size
|
1912
|
+
# @return [nil]
|
1913
|
+
def set_hole_size(size)
|
1914
|
+
Libxlsxwriter.chart_set_hole_size(self, size)
|
1915
|
+
end
|
1916
|
+
end
|
1917
|
+
|
1918
|
+
class Chart < FFI::Struct
|
1919
|
+
include ChartWrappers
|
1920
|
+
layout :file, :pointer,
|
1921
|
+
:type, :uchar,
|
1922
|
+
:subtype, :uchar,
|
1923
|
+
:series_index, :ushort,
|
1924
|
+
:write_chart_type, :pointer,
|
1925
|
+
:write_plot_area, :pointer,
|
1926
|
+
:x_axis, ChartAxis,
|
1927
|
+
:y_axis, ChartAxis,
|
1928
|
+
:title, ChartTitle.by_value,
|
1929
|
+
:id, :uint,
|
1930
|
+
:axis_id_1, :uint,
|
1931
|
+
:axis_id_2, :uint,
|
1932
|
+
:axis_id_3, :uint,
|
1933
|
+
:axis_id_4, :uint,
|
1934
|
+
:in_use, :uchar,
|
1935
|
+
:chart_group, :uchar,
|
1936
|
+
:cat_has_num_fmt, :uchar,
|
1937
|
+
:has_horiz_cat_axis, :uchar,
|
1938
|
+
:has_horiz_val_axis, :uchar,
|
1939
|
+
:style_id, :uchar,
|
1940
|
+
:rotation, :ushort,
|
1941
|
+
:hole_size, :ushort,
|
1942
|
+
:no_title, :uchar,
|
1943
|
+
:has_overlap, :uchar,
|
1944
|
+
:overlap_y1, :char,
|
1945
|
+
:overlap_y2, :char,
|
1946
|
+
:gap_y1, :ushort,
|
1947
|
+
:gap_y2, :ushort,
|
1948
|
+
:grouping, :uchar,
|
1949
|
+
:default_cross_between, :uchar,
|
1950
|
+
:legend, ChartLegend.by_value,
|
1951
|
+
:delete_series, :pointer,
|
1952
|
+
:delete_series_count, :ushort,
|
1953
|
+
:default_marker, ChartMarker,
|
1954
|
+
:chartarea_line, ChartLine,
|
1955
|
+
:chartarea_fill, ChartFill,
|
1956
|
+
:chartarea_pattern, ChartPattern,
|
1957
|
+
:plotarea_line, ChartLine,
|
1958
|
+
:plotarea_fill, ChartFill,
|
1959
|
+
:plotarea_pattern, ChartPattern,
|
1960
|
+
:has_drop_lines, :uchar,
|
1961
|
+
:drop_lines_line, ChartLine,
|
1962
|
+
:has_high_low_lines, :uchar,
|
1963
|
+
:high_low_lines_line, ChartLine,
|
1964
|
+
:series_list, ChartSeriesList,
|
1965
|
+
:has_table, :uchar,
|
1966
|
+
:has_table_vertical, :uchar,
|
1967
|
+
:has_table_horizontal, :uchar,
|
1968
|
+
:has_table_outline, :uchar,
|
1969
|
+
:has_table_legend_keys, :uchar,
|
1970
|
+
:table_font, ChartFont,
|
1971
|
+
:show_blanks_as, :uchar,
|
1972
|
+
:show_hidden_data, :uchar,
|
1973
|
+
:has_up_down_bars, :uchar,
|
1974
|
+
:up_bar_line, ChartLine,
|
1975
|
+
:down_bar_line, ChartLine,
|
1976
|
+
:up_bar_fill, ChartFill,
|
1977
|
+
:down_bar_fill, ChartFill,
|
1978
|
+
:default_label_position, :uchar,
|
1979
|
+
:ordered_list_pointers, ChartOrderedListPointers.by_value,
|
1980
|
+
:list_pointers, ChartListPointers.by_value
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
# @method chart_new(type)
|
1984
|
+
# @param [Integer] type
|
1985
|
+
# @return [Chart]
|
1986
|
+
# @scope class
|
1987
|
+
attach_function :chart_new, :lxw_chart_new, [:uchar], Chart
|
1988
|
+
|
1989
|
+
# @method chart_free(chart)
|
1990
|
+
# @param [Chart] chart
|
1991
|
+
# @return [nil]
|
1992
|
+
# @scope class
|
1993
|
+
attach_function :chart_free, :lxw_chart_free, [Chart], :void
|
1994
|
+
|
1995
|
+
# @method chart_assemble_xml_file(chart)
|
1996
|
+
# @param [Chart] chart
|
1997
|
+
# @return [nil]
|
1998
|
+
# @scope class
|
1999
|
+
attach_function :chart_assemble_xml_file, :lxw_chart_assemble_xml_file, [Chart], :void
|
2000
|
+
|
2001
|
+
# @method chart_add_series(chart, categories, values)
|
2002
|
+
# @param [Chart] chart
|
2003
|
+
# @param [String] categories
|
2004
|
+
# @param [String] values
|
2005
|
+
# @return [ChartSeries]
|
2006
|
+
# @scope class
|
2007
|
+
attach_function :chart_add_series, :chart_add_series, [Chart, :string, :string], ChartSeries
|
2008
|
+
|
2009
|
+
# @method chart_series_set_categories(series, sheetname, first_row, first_col, last_row, last_col)
|
2010
|
+
# @param [ChartSeries] series
|
2011
|
+
# @param [String] sheetname
|
2012
|
+
# @param [Integer] first_row
|
2013
|
+
# @param [Integer] first_col
|
2014
|
+
# @param [Integer] last_row
|
2015
|
+
# @param [Integer] last_col
|
2016
|
+
# @return [nil]
|
2017
|
+
# @scope class
|
2018
|
+
attach_function :chart_series_set_categories, :chart_series_set_categories, [ChartSeries, :string, :uint, :ushort, :uint, :ushort], :void
|
2019
|
+
|
2020
|
+
# @method chart_series_set_values(series, sheetname, first_row, first_col, last_row, last_col)
|
2021
|
+
# @param [ChartSeries] series
|
2022
|
+
# @param [String] sheetname
|
2023
|
+
# @param [Integer] first_row
|
2024
|
+
# @param [Integer] first_col
|
2025
|
+
# @param [Integer] last_row
|
2026
|
+
# @param [Integer] last_col
|
2027
|
+
# @return [nil]
|
2028
|
+
# @scope class
|
2029
|
+
attach_function :chart_series_set_values, :chart_series_set_values, [ChartSeries, :string, :uint, :ushort, :uint, :ushort], :void
|
2030
|
+
|
2031
|
+
# @method chart_series_set_name(series, name)
|
2032
|
+
# @param [ChartSeries] series
|
2033
|
+
# @param [String] name
|
2034
|
+
# @return [nil]
|
2035
|
+
# @scope class
|
2036
|
+
attach_function :chart_series_set_name, :chart_series_set_name, [ChartSeries, :string], :void
|
2037
|
+
|
2038
|
+
# @method chart_series_set_name_range(series, sheetname, row, col)
|
2039
|
+
# @param [ChartSeries] series
|
2040
|
+
# @param [String] sheetname
|
2041
|
+
# @param [Integer] row
|
2042
|
+
# @param [Integer] col
|
2043
|
+
# @return [nil]
|
2044
|
+
# @scope class
|
2045
|
+
attach_function :chart_series_set_name_range, :chart_series_set_name_range, [ChartSeries, :string, :uint, :ushort], :void
|
2046
|
+
|
2047
|
+
# @method chart_series_set_line(series, line)
|
2048
|
+
# @param [ChartSeries] series
|
2049
|
+
# @param [ChartLine] line
|
2050
|
+
# @return [nil]
|
2051
|
+
# @scope class
|
2052
|
+
attach_function :chart_series_set_line, :chart_series_set_line, [ChartSeries, ChartLine], :void
|
2053
|
+
|
2054
|
+
# @method chart_series_set_fill(series, fill)
|
2055
|
+
# @param [ChartSeries] series
|
2056
|
+
# @param [ChartFill] fill
|
2057
|
+
# @return [nil]
|
2058
|
+
# @scope class
|
2059
|
+
attach_function :chart_series_set_fill, :chart_series_set_fill, [ChartSeries, ChartFill], :void
|
2060
|
+
|
2061
|
+
# @method chart_series_set_invert_if_negative(series)
|
2062
|
+
# @param [ChartSeries] series
|
2063
|
+
# @return [nil]
|
2064
|
+
# @scope class
|
2065
|
+
attach_function :chart_series_set_invert_if_negative, :chart_series_set_invert_if_negative, [ChartSeries], :void
|
2066
|
+
|
2067
|
+
# @method chart_series_set_pattern(series, pattern)
|
2068
|
+
# @param [ChartSeries] series
|
2069
|
+
# @param [ChartPattern] pattern
|
2070
|
+
# @return [nil]
|
2071
|
+
# @scope class
|
2072
|
+
attach_function :chart_series_set_pattern, :chart_series_set_pattern, [ChartSeries, ChartPattern], :void
|
2073
|
+
|
2074
|
+
# @method chart_series_set_marker_type(series, type)
|
2075
|
+
# @param [ChartSeries] series
|
2076
|
+
# @param [Integer] type
|
2077
|
+
# @return [nil]
|
2078
|
+
# @scope class
|
2079
|
+
attach_function :chart_series_set_marker_type, :chart_series_set_marker_type, [ChartSeries, :uchar], :void
|
2080
|
+
|
2081
|
+
# @method chart_series_set_marker_size(series, size)
|
2082
|
+
# @param [ChartSeries] series
|
2083
|
+
# @param [Integer] size
|
2084
|
+
# @return [nil]
|
2085
|
+
# @scope class
|
2086
|
+
attach_function :chart_series_set_marker_size, :chart_series_set_marker_size, [ChartSeries, :uchar], :void
|
2087
|
+
|
2088
|
+
# @method chart_series_set_marker_line(series, line)
|
2089
|
+
# @param [ChartSeries] series
|
2090
|
+
# @param [ChartLine] line
|
2091
|
+
# @return [nil]
|
2092
|
+
# @scope class
|
2093
|
+
attach_function :chart_series_set_marker_line, :chart_series_set_marker_line, [ChartSeries, ChartLine], :void
|
2094
|
+
|
2095
|
+
# @method chart_series_set_marker_fill(series, fill)
|
2096
|
+
# @param [ChartSeries] series
|
2097
|
+
# @param [ChartFill] fill
|
2098
|
+
# @return [nil]
|
2099
|
+
# @scope class
|
2100
|
+
attach_function :chart_series_set_marker_fill, :chart_series_set_marker_fill, [ChartSeries, ChartFill], :void
|
2101
|
+
|
2102
|
+
# @method chart_series_set_marker_pattern(series, pattern)
|
2103
|
+
# @param [ChartSeries] series
|
2104
|
+
# @param [ChartPattern] pattern
|
2105
|
+
# @return [nil]
|
2106
|
+
# @scope class
|
2107
|
+
attach_function :chart_series_set_marker_pattern, :chart_series_set_marker_pattern, [ChartSeries, ChartPattern], :void
|
2108
|
+
|
2109
|
+
# @method chart_series_set_points(series, points)
|
2110
|
+
# @param [ChartSeries] series
|
2111
|
+
# @param [FFI::Pointer(*ChartPoint)] points
|
2112
|
+
# @return [Symbol from _enum_error_]
|
2113
|
+
# @scope class
|
2114
|
+
attach_function :chart_series_set_points, :chart_series_set_points, [ChartSeries, :pointer], :error
|
2115
|
+
|
2116
|
+
# @method chart_series_set_smooth(series, smooth)
|
2117
|
+
# @param [ChartSeries] series
|
2118
|
+
# @param [Integer] smooth
|
2119
|
+
# @return [nil]
|
2120
|
+
# @scope class
|
2121
|
+
attach_function :chart_series_set_smooth, :chart_series_set_smooth, [ChartSeries, :uchar], :void
|
2122
|
+
|
2123
|
+
# @method chart_series_set_labels(series)
|
2124
|
+
# @param [ChartSeries] series
|
2125
|
+
# @return [nil]
|
2126
|
+
# @scope class
|
2127
|
+
attach_function :chart_series_set_labels, :chart_series_set_labels, [ChartSeries], :void
|
2128
|
+
|
2129
|
+
# @method chart_series_set_labels_options(series, show_name, show_category, show_value)
|
2130
|
+
# @param [ChartSeries] series
|
2131
|
+
# @param [Integer] show_name
|
2132
|
+
# @param [Integer] show_category
|
2133
|
+
# @param [Integer] show_value
|
2134
|
+
# @return [nil]
|
2135
|
+
# @scope class
|
2136
|
+
attach_function :chart_series_set_labels_options, :chart_series_set_labels_options, [ChartSeries, :uchar, :uchar, :uchar], :void
|
2137
|
+
|
2138
|
+
# @method chart_series_set_labels_separator(series, separator)
|
2139
|
+
# @param [ChartSeries] series
|
2140
|
+
# @param [Integer] separator
|
2141
|
+
# @return [nil]
|
2142
|
+
# @scope class
|
2143
|
+
attach_function :chart_series_set_labels_separator, :chart_series_set_labels_separator, [ChartSeries, :uchar], :void
|
2144
|
+
|
2145
|
+
# @method chart_series_set_labels_position(series, position)
|
2146
|
+
# @param [ChartSeries] series
|
2147
|
+
# @param [Integer] position
|
2148
|
+
# @return [nil]
|
2149
|
+
# @scope class
|
2150
|
+
attach_function :chart_series_set_labels_position, :chart_series_set_labels_position, [ChartSeries, :uchar], :void
|
2151
|
+
|
2152
|
+
# @method chart_series_set_labels_leader_line(series)
|
2153
|
+
# @param [ChartSeries] series
|
2154
|
+
# @return [nil]
|
2155
|
+
# @scope class
|
2156
|
+
attach_function :chart_series_set_labels_leader_line, :chart_series_set_labels_leader_line, [ChartSeries], :void
|
2157
|
+
|
2158
|
+
# @method chart_series_set_labels_legend(series)
|
2159
|
+
# @param [ChartSeries] series
|
2160
|
+
# @return [nil]
|
2161
|
+
# @scope class
|
2162
|
+
attach_function :chart_series_set_labels_legend, :chart_series_set_labels_legend, [ChartSeries], :void
|
2163
|
+
|
2164
|
+
# @method chart_series_set_labels_percentage(series)
|
2165
|
+
# @param [ChartSeries] series
|
2166
|
+
# @return [nil]
|
2167
|
+
# @scope class
|
2168
|
+
attach_function :chart_series_set_labels_percentage, :chart_series_set_labels_percentage, [ChartSeries], :void
|
2169
|
+
|
2170
|
+
# @method chart_series_set_labels_num_format(series, num_format)
|
2171
|
+
# @param [ChartSeries] series
|
2172
|
+
# @param [String] num_format
|
2173
|
+
# @return [nil]
|
2174
|
+
# @scope class
|
2175
|
+
attach_function :chart_series_set_labels_num_format, :chart_series_set_labels_num_format, [ChartSeries, :string], :void
|
2176
|
+
|
2177
|
+
# @method chart_series_set_labels_font(series, font)
|
2178
|
+
# @param [ChartSeries] series
|
2179
|
+
# @param [ChartFont] font
|
2180
|
+
# @return [nil]
|
2181
|
+
# @scope class
|
2182
|
+
attach_function :chart_series_set_labels_font, :chart_series_set_labels_font, [ChartSeries, ChartFont], :void
|
2183
|
+
|
2184
|
+
# @method chart_series_set_trendline(series, type, value)
|
2185
|
+
# @param [ChartSeries] series
|
2186
|
+
# @param [Integer] type
|
2187
|
+
# @param [Integer] value
|
2188
|
+
# @return [nil]
|
2189
|
+
# @scope class
|
2190
|
+
attach_function :chart_series_set_trendline, :chart_series_set_trendline, [ChartSeries, :uchar, :uchar], :void
|
2191
|
+
|
2192
|
+
# @method chart_series_set_trendline_forecast(series, forward, backward)
|
2193
|
+
# @param [ChartSeries] series
|
2194
|
+
# @param [Float] forward
|
2195
|
+
# @param [Float] backward
|
2196
|
+
# @return [nil]
|
2197
|
+
# @scope class
|
2198
|
+
attach_function :chart_series_set_trendline_forecast, :chart_series_set_trendline_forecast, [ChartSeries, :double, :double], :void
|
2199
|
+
|
2200
|
+
# @method chart_series_set_trendline_equation(series)
|
2201
|
+
# @param [ChartSeries] series
|
2202
|
+
# @return [nil]
|
2203
|
+
# @scope class
|
2204
|
+
attach_function :chart_series_set_trendline_equation, :chart_series_set_trendline_equation, [ChartSeries], :void
|
2205
|
+
|
2206
|
+
# @method chart_series_set_trendline_r_squared(series)
|
2207
|
+
# @param [ChartSeries] series
|
2208
|
+
# @return [nil]
|
2209
|
+
# @scope class
|
2210
|
+
attach_function :chart_series_set_trendline_r_squared, :chart_series_set_trendline_r_squared, [ChartSeries], :void
|
2211
|
+
|
2212
|
+
# @method chart_series_set_trendline_intercept(series, intercept)
|
2213
|
+
# @param [ChartSeries] series
|
2214
|
+
# @param [Float] intercept
|
2215
|
+
# @return [nil]
|
2216
|
+
# @scope class
|
2217
|
+
attach_function :chart_series_set_trendline_intercept, :chart_series_set_trendline_intercept, [ChartSeries, :double], :void
|
2218
|
+
|
2219
|
+
# @method chart_series_set_trendline_name(series, name)
|
2220
|
+
# @param [ChartSeries] series
|
2221
|
+
# @param [String] name
|
2222
|
+
# @return [nil]
|
2223
|
+
# @scope class
|
2224
|
+
attach_function :chart_series_set_trendline_name, :chart_series_set_trendline_name, [ChartSeries, :string], :void
|
2225
|
+
|
2226
|
+
# @method chart_series_set_trendline_line(series, line)
|
2227
|
+
# @param [ChartSeries] series
|
2228
|
+
# @param [ChartLine] line
|
2229
|
+
# @return [nil]
|
2230
|
+
# @scope class
|
2231
|
+
attach_function :chart_series_set_trendline_line, :chart_series_set_trendline_line, [ChartSeries, ChartLine], :void
|
2232
|
+
|
2233
|
+
# @method chart_series_set_error_bars(error_bars, type, value)
|
2234
|
+
# @param [SeriesErrorBars] error_bars
|
2235
|
+
# @param [Integer] type
|
2236
|
+
# @param [Float] value
|
2237
|
+
# @return [nil]
|
2238
|
+
# @scope class
|
2239
|
+
attach_function :chart_series_set_error_bars, :chart_series_set_error_bars, [SeriesErrorBars, :uchar, :double], :void
|
2240
|
+
|
2241
|
+
# @method chart_series_set_error_bars_direction(error_bars, direction)
|
2242
|
+
# @param [SeriesErrorBars] error_bars
|
2243
|
+
# @param [Integer] direction
|
2244
|
+
# @return [nil]
|
2245
|
+
# @scope class
|
2246
|
+
attach_function :chart_series_set_error_bars_direction, :chart_series_set_error_bars_direction, [SeriesErrorBars, :uchar], :void
|
2247
|
+
|
2248
|
+
# @method chart_series_set_error_bars_endcap(error_bars, endcap)
|
2249
|
+
# @param [SeriesErrorBars] error_bars
|
2250
|
+
# @param [Integer] endcap
|
2251
|
+
# @return [nil]
|
2252
|
+
# @scope class
|
2253
|
+
attach_function :chart_series_set_error_bars_endcap, :chart_series_set_error_bars_endcap, [SeriesErrorBars, :uchar], :void
|
2254
|
+
|
2255
|
+
# @method chart_series_set_error_bars_line(error_bars, line)
|
2256
|
+
# @param [SeriesErrorBars] error_bars
|
2257
|
+
# @param [ChartLine] line
|
2258
|
+
# @return [nil]
|
2259
|
+
# @scope class
|
2260
|
+
attach_function :chart_series_set_error_bars_line, :chart_series_set_error_bars_line, [SeriesErrorBars, ChartLine], :void
|
2261
|
+
|
2262
|
+
# @method chart_axis_set_name(axis, name)
|
2263
|
+
# @param [ChartAxis] axis
|
2264
|
+
# @param [String] name
|
2265
|
+
# @return [nil]
|
2266
|
+
# @scope class
|
2267
|
+
attach_function :chart_axis_set_name, :chart_axis_set_name, [ChartAxis, :string], :void
|
2268
|
+
|
2269
|
+
# @method chart_axis_set_name_range(axis, sheetname, row, col)
|
2270
|
+
# @param [ChartAxis] axis
|
2271
|
+
# @param [String] sheetname
|
2272
|
+
# @param [Integer] row
|
2273
|
+
# @param [Integer] col
|
2274
|
+
# @return [nil]
|
2275
|
+
# @scope class
|
2276
|
+
attach_function :chart_axis_set_name_range, :chart_axis_set_name_range, [ChartAxis, :string, :uint, :ushort], :void
|
2277
|
+
|
2278
|
+
# @method chart_axis_set_name_font(axis, font)
|
2279
|
+
# @param [ChartAxis] axis
|
2280
|
+
# @param [ChartFont] font
|
2281
|
+
# @return [nil]
|
2282
|
+
# @scope class
|
2283
|
+
attach_function :chart_axis_set_name_font, :chart_axis_set_name_font, [ChartAxis, ChartFont], :void
|
2284
|
+
|
2285
|
+
# @method chart_axis_set_num_font(axis, font)
|
2286
|
+
# @param [ChartAxis] axis
|
2287
|
+
# @param [ChartFont] font
|
2288
|
+
# @return [nil]
|
2289
|
+
# @scope class
|
2290
|
+
attach_function :chart_axis_set_num_font, :chart_axis_set_num_font, [ChartAxis, ChartFont], :void
|
2291
|
+
|
2292
|
+
# @method chart_axis_set_num_format(axis, num_format)
|
2293
|
+
# @param [ChartAxis] axis
|
2294
|
+
# @param [String] num_format
|
2295
|
+
# @return [nil]
|
2296
|
+
# @scope class
|
2297
|
+
attach_function :chart_axis_set_num_format, :chart_axis_set_num_format, [ChartAxis, :string], :void
|
2298
|
+
|
2299
|
+
# @method chart_axis_set_line(axis, line)
|
2300
|
+
# @param [ChartAxis] axis
|
2301
|
+
# @param [ChartLine] line
|
2302
|
+
# @return [nil]
|
2303
|
+
# @scope class
|
2304
|
+
attach_function :chart_axis_set_line, :chart_axis_set_line, [ChartAxis, ChartLine], :void
|
2305
|
+
|
2306
|
+
# @method chart_axis_set_fill(axis, fill)
|
2307
|
+
# @param [ChartAxis] axis
|
2308
|
+
# @param [ChartFill] fill
|
2309
|
+
# @return [nil]
|
2310
|
+
# @scope class
|
2311
|
+
attach_function :chart_axis_set_fill, :chart_axis_set_fill, [ChartAxis, ChartFill], :void
|
2312
|
+
|
2313
|
+
# @method chart_axis_set_pattern(axis, pattern)
|
2314
|
+
# @param [ChartAxis] axis
|
2315
|
+
# @param [ChartPattern] pattern
|
2316
|
+
# @return [nil]
|
2317
|
+
# @scope class
|
2318
|
+
attach_function :chart_axis_set_pattern, :chart_axis_set_pattern, [ChartAxis, ChartPattern], :void
|
2319
|
+
|
2320
|
+
# @method chart_axis_set_reverse(axis)
|
2321
|
+
# @param [ChartAxis] axis
|
2322
|
+
# @return [nil]
|
2323
|
+
# @scope class
|
2324
|
+
attach_function :chart_axis_set_reverse, :chart_axis_set_reverse, [ChartAxis], :void
|
2325
|
+
|
2326
|
+
# @method chart_axis_set_crossing(axis, value)
|
2327
|
+
# @param [ChartAxis] axis
|
2328
|
+
# @param [Float] value
|
2329
|
+
# @return [nil]
|
2330
|
+
# @scope class
|
2331
|
+
attach_function :chart_axis_set_crossing, :chart_axis_set_crossing, [ChartAxis, :double], :void
|
2332
|
+
|
2333
|
+
# @method chart_axis_set_crossing_max(axis)
|
2334
|
+
# @param [ChartAxis] axis
|
2335
|
+
# @return [nil]
|
2336
|
+
# @scope class
|
2337
|
+
attach_function :chart_axis_set_crossing_max, :chart_axis_set_crossing_max, [ChartAxis], :void
|
2338
|
+
|
2339
|
+
# @method chart_axis_off(axis)
|
2340
|
+
# @param [ChartAxis] axis
|
2341
|
+
# @return [nil]
|
2342
|
+
# @scope class
|
2343
|
+
attach_function :chart_axis_off, :chart_axis_off, [ChartAxis], :void
|
2344
|
+
|
2345
|
+
# @method chart_axis_set_position(axis, position)
|
2346
|
+
# @param [ChartAxis] axis
|
2347
|
+
# @param [Integer] position
|
2348
|
+
# @return [nil]
|
2349
|
+
# @scope class
|
2350
|
+
attach_function :chart_axis_set_position, :chart_axis_set_position, [ChartAxis, :uchar], :void
|
2351
|
+
|
2352
|
+
# @method chart_axis_set_label_position(axis, position)
|
2353
|
+
# @param [ChartAxis] axis
|
2354
|
+
# @param [Integer] position
|
2355
|
+
# @return [nil]
|
2356
|
+
# @scope class
|
2357
|
+
attach_function :chart_axis_set_label_position, :chart_axis_set_label_position, [ChartAxis, :uchar], :void
|
2358
|
+
|
2359
|
+
# @method chart_axis_set_min(axis, min)
|
2360
|
+
# @param [ChartAxis] axis
|
2361
|
+
# @param [Float] min
|
2362
|
+
# @return [nil]
|
2363
|
+
# @scope class
|
2364
|
+
attach_function :chart_axis_set_min, :chart_axis_set_min, [ChartAxis, :double], :void
|
2365
|
+
|
2366
|
+
# @method chart_axis_set_max(axis, max)
|
2367
|
+
# @param [ChartAxis] axis
|
2368
|
+
# @param [Float] max
|
2369
|
+
# @return [nil]
|
2370
|
+
# @scope class
|
2371
|
+
attach_function :chart_axis_set_max, :chart_axis_set_max, [ChartAxis, :double], :void
|
2372
|
+
|
2373
|
+
# @method chart_axis_set_log_base(axis, log_base)
|
2374
|
+
# @param [ChartAxis] axis
|
2375
|
+
# @param [Integer] log_base
|
2376
|
+
# @return [nil]
|
2377
|
+
# @scope class
|
2378
|
+
attach_function :chart_axis_set_log_base, :chart_axis_set_log_base, [ChartAxis, :ushort], :void
|
2379
|
+
|
2380
|
+
# @method chart_axis_set_major_tick_mark(axis, type)
|
2381
|
+
# @param [ChartAxis] axis
|
2382
|
+
# @param [Integer] type
|
2383
|
+
# @return [nil]
|
2384
|
+
# @scope class
|
2385
|
+
attach_function :chart_axis_set_major_tick_mark, :chart_axis_set_major_tick_mark, [ChartAxis, :uchar], :void
|
2386
|
+
|
2387
|
+
# @method chart_axis_set_minor_tick_mark(axis, type)
|
2388
|
+
# @param [ChartAxis] axis
|
2389
|
+
# @param [Integer] type
|
2390
|
+
# @return [nil]
|
2391
|
+
# @scope class
|
2392
|
+
attach_function :chart_axis_set_minor_tick_mark, :chart_axis_set_minor_tick_mark, [ChartAxis, :uchar], :void
|
2393
|
+
|
2394
|
+
# @method chart_axis_set_interval_unit(axis, unit)
|
2395
|
+
# @param [ChartAxis] axis
|
2396
|
+
# @param [Integer] unit
|
2397
|
+
# @return [nil]
|
2398
|
+
# @scope class
|
2399
|
+
attach_function :chart_axis_set_interval_unit, :chart_axis_set_interval_unit, [ChartAxis, :ushort], :void
|
2400
|
+
|
2401
|
+
# @method chart_axis_set_interval_tick(axis, unit)
|
2402
|
+
# @param [ChartAxis] axis
|
2403
|
+
# @param [Integer] unit
|
2404
|
+
# @return [nil]
|
2405
|
+
# @scope class
|
2406
|
+
attach_function :chart_axis_set_interval_tick, :chart_axis_set_interval_tick, [ChartAxis, :ushort], :void
|
2407
|
+
|
2408
|
+
# @method chart_axis_set_major_unit(axis, unit)
|
2409
|
+
# @param [ChartAxis] axis
|
2410
|
+
# @param [Float] unit
|
2411
|
+
# @return [nil]
|
2412
|
+
# @scope class
|
2413
|
+
attach_function :chart_axis_set_major_unit, :chart_axis_set_major_unit, [ChartAxis, :double], :void
|
2414
|
+
|
2415
|
+
# @method chart_axis_set_minor_unit(axis, unit)
|
2416
|
+
# @param [ChartAxis] axis
|
2417
|
+
# @param [Float] unit
|
2418
|
+
# @return [nil]
|
2419
|
+
# @scope class
|
2420
|
+
attach_function :chart_axis_set_minor_unit, :chart_axis_set_minor_unit, [ChartAxis, :double], :void
|
2421
|
+
|
2422
|
+
# @method chart_axis_set_display_units(axis, units)
|
2423
|
+
# @param [ChartAxis] axis
|
2424
|
+
# @param [Integer] units
|
2425
|
+
# @return [nil]
|
2426
|
+
# @scope class
|
2427
|
+
attach_function :chart_axis_set_display_units, :chart_axis_set_display_units, [ChartAxis, :uchar], :void
|
2428
|
+
|
2429
|
+
# @method chart_axis_set_display_units_visible(axis, visible)
|
2430
|
+
# @param [ChartAxis] axis
|
2431
|
+
# @param [Integer] visible
|
2432
|
+
# @return [nil]
|
2433
|
+
# @scope class
|
2434
|
+
attach_function :chart_axis_set_display_units_visible, :chart_axis_set_display_units_visible, [ChartAxis, :uchar], :void
|
2435
|
+
|
2436
|
+
# @method chart_axis_major_gridlines_set_visible(axis, visible)
|
2437
|
+
# @param [ChartAxis] axis
|
2438
|
+
# @param [Integer] visible
|
2439
|
+
# @return [nil]
|
2440
|
+
# @scope class
|
2441
|
+
attach_function :chart_axis_major_gridlines_set_visible, :chart_axis_major_gridlines_set_visible, [ChartAxis, :uchar], :void
|
2442
|
+
|
2443
|
+
# @method chart_axis_minor_gridlines_set_visible(axis, visible)
|
2444
|
+
# @param [ChartAxis] axis
|
2445
|
+
# @param [Integer] visible
|
2446
|
+
# @return [nil]
|
2447
|
+
# @scope class
|
2448
|
+
attach_function :chart_axis_minor_gridlines_set_visible, :chart_axis_minor_gridlines_set_visible, [ChartAxis, :uchar], :void
|
2449
|
+
|
2450
|
+
# @method chart_axis_major_gridlines_set_line(axis, line)
|
2451
|
+
# @param [ChartAxis] axis
|
2452
|
+
# @param [ChartLine] line
|
2453
|
+
# @return [nil]
|
2454
|
+
# @scope class
|
2455
|
+
attach_function :chart_axis_major_gridlines_set_line, :chart_axis_major_gridlines_set_line, [ChartAxis, ChartLine], :void
|
2456
|
+
|
2457
|
+
# @method chart_axis_minor_gridlines_set_line(axis, line)
|
2458
|
+
# @param [ChartAxis] axis
|
2459
|
+
# @param [ChartLine] line
|
2460
|
+
# @return [nil]
|
2461
|
+
# @scope class
|
2462
|
+
attach_function :chart_axis_minor_gridlines_set_line, :chart_axis_minor_gridlines_set_line, [ChartAxis, ChartLine], :void
|
2463
|
+
|
2464
|
+
# @method chart_title_set_name(chart, name)
|
2465
|
+
# @param [Chart] chart
|
2466
|
+
# @param [String] name
|
2467
|
+
# @return [nil]
|
2468
|
+
# @scope class
|
2469
|
+
attach_function :chart_title_set_name, :chart_title_set_name, [Chart, :string], :void
|
2470
|
+
|
2471
|
+
# @method chart_title_set_name_range(chart, sheetname, row, col)
|
2472
|
+
# @param [Chart] chart
|
2473
|
+
# @param [String] sheetname
|
2474
|
+
# @param [Integer] row
|
2475
|
+
# @param [Integer] col
|
2476
|
+
# @return [nil]
|
2477
|
+
# @scope class
|
2478
|
+
attach_function :chart_title_set_name_range, :chart_title_set_name_range, [Chart, :string, :uint, :ushort], :void
|
2479
|
+
|
2480
|
+
# @method chart_title_set_name_font(chart, font)
|
2481
|
+
# @param [Chart] chart
|
2482
|
+
# @param [ChartFont] font
|
2483
|
+
# @return [nil]
|
2484
|
+
# @scope class
|
2485
|
+
attach_function :chart_title_set_name_font, :chart_title_set_name_font, [Chart, ChartFont], :void
|
2486
|
+
|
2487
|
+
# @method chart_title_off(chart)
|
2488
|
+
# @param [Chart] chart
|
2489
|
+
# @return [nil]
|
2490
|
+
# @scope class
|
2491
|
+
attach_function :chart_title_off, :chart_title_off, [Chart], :void
|
2492
|
+
|
2493
|
+
# @method chart_legend_set_position(chart, position)
|
2494
|
+
# @param [Chart] chart
|
2495
|
+
# @param [Integer] position
|
2496
|
+
# @return [nil]
|
2497
|
+
# @scope class
|
2498
|
+
attach_function :chart_legend_set_position, :chart_legend_set_position, [Chart, :uchar], :void
|
2499
|
+
|
2500
|
+
# @method chart_legend_set_font(chart, font)
|
2501
|
+
# @param [Chart] chart
|
2502
|
+
# @param [ChartFont] font
|
2503
|
+
# @return [nil]
|
2504
|
+
# @scope class
|
2505
|
+
attach_function :chart_legend_set_font, :chart_legend_set_font, [Chart, ChartFont], :void
|
2506
|
+
|
2507
|
+
# @method chart_legend_delete_series(chart, delete_series)
|
2508
|
+
# @param [Chart] chart
|
2509
|
+
# @param [FFI::Pointer(*Short)] delete_series
|
2510
|
+
# @return [Symbol from _enum_error_]
|
2511
|
+
# @scope class
|
2512
|
+
attach_function :chart_legend_delete_series, :chart_legend_delete_series, [Chart, :pointer], :error
|
2513
|
+
|
2514
|
+
# @method chart_chartarea_set_line(chart, line)
|
2515
|
+
# @param [Chart] chart
|
2516
|
+
# @param [ChartLine] line
|
2517
|
+
# @return [nil]
|
2518
|
+
# @scope class
|
2519
|
+
attach_function :chart_chartarea_set_line, :chart_chartarea_set_line, [Chart, ChartLine], :void
|
2520
|
+
|
2521
|
+
# @method chart_chartarea_set_fill(chart, fill)
|
2522
|
+
# @param [Chart] chart
|
2523
|
+
# @param [ChartFill] fill
|
2524
|
+
# @return [nil]
|
2525
|
+
# @scope class
|
2526
|
+
attach_function :chart_chartarea_set_fill, :chart_chartarea_set_fill, [Chart, ChartFill], :void
|
2527
|
+
|
2528
|
+
# @method chart_chartarea_set_pattern(chart, pattern)
|
2529
|
+
# @param [Chart] chart
|
2530
|
+
# @param [ChartPattern] pattern
|
2531
|
+
# @return [nil]
|
2532
|
+
# @scope class
|
2533
|
+
attach_function :chart_chartarea_set_pattern, :chart_chartarea_set_pattern, [Chart, ChartPattern], :void
|
2534
|
+
|
2535
|
+
# @method chart_plotarea_set_line(chart, line)
|
2536
|
+
# @param [Chart] chart
|
2537
|
+
# @param [ChartLine] line
|
2538
|
+
# @return [nil]
|
2539
|
+
# @scope class
|
2540
|
+
attach_function :chart_plotarea_set_line, :chart_plotarea_set_line, [Chart, ChartLine], :void
|
2541
|
+
|
2542
|
+
# @method chart_plotarea_set_fill(chart, fill)
|
2543
|
+
# @param [Chart] chart
|
2544
|
+
# @param [ChartFill] fill
|
2545
|
+
# @return [nil]
|
2546
|
+
# @scope class
|
2547
|
+
attach_function :chart_plotarea_set_fill, :chart_plotarea_set_fill, [Chart, ChartFill], :void
|
2548
|
+
|
2549
|
+
# @method chart_plotarea_set_pattern(chart, pattern)
|
2550
|
+
# @param [Chart] chart
|
2551
|
+
# @param [ChartPattern] pattern
|
2552
|
+
# @return [nil]
|
2553
|
+
# @scope class
|
2554
|
+
attach_function :chart_plotarea_set_pattern, :chart_plotarea_set_pattern, [Chart, ChartPattern], :void
|
2555
|
+
|
2556
|
+
# @method chart_set_style(chart, style_id)
|
2557
|
+
# @param [Chart] chart
|
2558
|
+
# @param [Integer] style_id
|
2559
|
+
# @return [nil]
|
2560
|
+
# @scope class
|
2561
|
+
attach_function :chart_set_style, :chart_set_style, [Chart, :uchar], :void
|
2562
|
+
|
2563
|
+
# @method chart_set_table(chart)
|
2564
|
+
# @param [Chart] chart
|
2565
|
+
# @return [nil]
|
2566
|
+
# @scope class
|
2567
|
+
attach_function :chart_set_table, :chart_set_table, [Chart], :void
|
2568
|
+
|
2569
|
+
# @method chart_set_table_grid(chart, horizontal, vertical, outline, legend_keys)
|
2570
|
+
# @param [Chart] chart
|
2571
|
+
# @param [Integer] horizontal
|
2572
|
+
# @param [Integer] vertical
|
2573
|
+
# @param [Integer] outline
|
2574
|
+
# @param [Integer] legend_keys
|
2575
|
+
# @return [nil]
|
2576
|
+
# @scope class
|
2577
|
+
attach_function :chart_set_table_grid, :chart_set_table_grid, [Chart, :uchar, :uchar, :uchar, :uchar], :void
|
2578
|
+
|
2579
|
+
# @method chart_set_table_font(chart, font)
|
2580
|
+
# @param [Chart] chart
|
2581
|
+
# @param [ChartFont] font
|
2582
|
+
# @return [nil]
|
2583
|
+
# @scope class
|
2584
|
+
attach_function :chart_set_table_font, :chart_set_table_font, [Chart, ChartFont], :void
|
2585
|
+
|
2586
|
+
# @method chart_set_up_down_bars(chart)
|
2587
|
+
# @param [Chart] chart
|
2588
|
+
# @return [nil]
|
2589
|
+
# @scope class
|
2590
|
+
attach_function :chart_set_up_down_bars, :chart_set_up_down_bars, [Chart], :void
|
2591
|
+
|
2592
|
+
# @method chart_set_up_down_bars_format(chart, up_bar_line, up_bar_fill, down_bar_line, down_bar_fill)
|
2593
|
+
# @param [Chart] chart
|
2594
|
+
# @param [ChartLine] up_bar_line
|
2595
|
+
# @param [ChartFill] up_bar_fill
|
2596
|
+
# @param [ChartLine] down_bar_line
|
2597
|
+
# @param [ChartFill] down_bar_fill
|
2598
|
+
# @return [nil]
|
2599
|
+
# @scope class
|
2600
|
+
attach_function :chart_set_up_down_bars_format, :chart_set_up_down_bars_format, [Chart, ChartLine, ChartFill, ChartLine, ChartFill], :void
|
2601
|
+
|
2602
|
+
# @method chart_set_drop_lines(chart, line)
|
2603
|
+
# @param [Chart] chart
|
2604
|
+
# @param [ChartLine] line
|
2605
|
+
# @return [nil]
|
2606
|
+
# @scope class
|
2607
|
+
attach_function :chart_set_drop_lines, :chart_set_drop_lines, [Chart, ChartLine], :void
|
2608
|
+
|
2609
|
+
# @method chart_set_high_low_lines(chart, line)
|
2610
|
+
# @param [Chart] chart
|
2611
|
+
# @param [ChartLine] line
|
2612
|
+
# @return [nil]
|
2613
|
+
# @scope class
|
2614
|
+
attach_function :chart_set_high_low_lines, :chart_set_high_low_lines, [Chart, ChartLine], :void
|
2615
|
+
|
2616
|
+
# @method chart_set_series_overlap(chart, overlap)
|
2617
|
+
# @param [Chart] chart
|
2618
|
+
# @param [Integer] overlap
|
2619
|
+
# @return [nil]
|
2620
|
+
# @scope class
|
2621
|
+
attach_function :chart_set_series_overlap, :chart_set_series_overlap, [Chart, :char], :void
|
2622
|
+
|
2623
|
+
# @method chart_set_series_gap(chart, gap)
|
2624
|
+
# @param [Chart] chart
|
2625
|
+
# @param [Integer] gap
|
2626
|
+
# @return [nil]
|
2627
|
+
# @scope class
|
2628
|
+
attach_function :chart_set_series_gap, :chart_set_series_gap, [Chart, :ushort], :void
|
2629
|
+
|
2630
|
+
# @method chart_show_blanks_as(chart, option)
|
2631
|
+
# @param [Chart] chart
|
2632
|
+
# @param [Integer] option
|
2633
|
+
# @return [nil]
|
2634
|
+
# @scope class
|
2635
|
+
attach_function :chart_show_blanks_as, :chart_show_blanks_as, [Chart, :uchar], :void
|
2636
|
+
|
2637
|
+
# @method chart_show_hidden_data(chart)
|
2638
|
+
# @param [Chart] chart
|
2639
|
+
# @return [nil]
|
2640
|
+
# @scope class
|
2641
|
+
attach_function :chart_show_hidden_data, :chart_show_hidden_data, [Chart], :void
|
2642
|
+
|
2643
|
+
# @method chart_set_rotation(chart, rotation)
|
2644
|
+
# @param [Chart] chart
|
2645
|
+
# @param [Integer] rotation
|
2646
|
+
# @return [nil]
|
2647
|
+
# @scope class
|
2648
|
+
attach_function :chart_set_rotation, :chart_set_rotation, [Chart, :ushort], :void
|
2649
|
+
|
2650
|
+
# @method chart_set_hole_size(chart, size)
|
2651
|
+
# @param [Chart] chart
|
2652
|
+
# @param [Integer] size
|
2653
|
+
# @return [nil]
|
2654
|
+
# @scope class
|
2655
|
+
attach_function :chart_set_hole_size, :chart_set_hole_size, [Chart, :uchar], :void
|
2656
|
+
|
2657
|
+
# @method chart_add_data_cache(range, data, rows, cols, col)
|
2658
|
+
# @param [SeriesRange] range
|
2659
|
+
# @param [FFI::Pointer(*Uint8T)] data
|
2660
|
+
# @param [Integer] rows
|
2661
|
+
# @param [Integer] cols
|
2662
|
+
# @param [Integer] col
|
2663
|
+
# @return [Symbol from _enum_error_]
|
2664
|
+
# @scope class
|
2665
|
+
attach_function :chart_add_data_cache, :lxw_chart_add_data_cache, [SeriesRange, :pointer, :ushort, :uchar, :uchar], :error
|
2666
|
+
end
|