apexcharts 0.1.11 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +64 -21
- data/lib/apex_charts/charts/box_plot_chart.rb +1 -0
- data/lib/apex_charts/configuration.rb +0 -2
- data/lib/apex_charts/options_builder.rb +128 -125
- data/lib/apex_charts/renderer.rb +10 -5
- data/lib/apex_charts/series/bubble_series.rb +2 -3
- data/lib/apex_charts/series/cartesian_series.rb +8 -2
- data/lib/apex_charts/version.rb +2 -2
- data/vendor/assets/javascripts/apexcharts.js +5 -5
- metadata +3 -79
- data/lib/apex_charts/config/schema.rb +0 -20
- data/lib/apex_charts/options/default/annotations_options.rb +0 -14
- data/lib/apex_charts/options/default/chart_options.rb +0 -33
- data/lib/apex_charts/options/default/data_labels_options.rb +0 -18
- data/lib/apex_charts/options/default/fill_options.rb +0 -14
- data/lib/apex_charts/options/default/grid_options.rb +0 -17
- data/lib/apex_charts/options/default/helper_options.rb +0 -22
- data/lib/apex_charts/options/default/legend_options.rb +0 -33
- data/lib/apex_charts/options/default/markers_options.rb +0 -26
- data/lib/apex_charts/options/default/no_data_options.rb +0 -14
- data/lib/apex_charts/options/default/plot_options.rb +0 -19
- data/lib/apex_charts/options/default/root_options.rb +0 -38
- data/lib/apex_charts/options/default/states_options.rb +0 -11
- data/lib/apex_charts/options/default/stroke_options.rb +0 -14
- data/lib/apex_charts/options/default/theme_options.rb +0 -11
- data/lib/apex_charts/options/default/title_subtitle_options.rb +0 -15
- data/lib/apex_charts/options/default/tooltip_options.rb +0 -25
- data/lib/apex_charts/options/default/x_axis_options.rb +0 -27
- data/lib/apex_charts/options/default/y_axis_options.rb +0 -28
- data/lib/apex_charts/options/dry_schema/annotations_options/annotation_label.rb +0 -24
- data/lib/apex_charts/options/dry_schema/annotations_options/image_annotations.rb +0 -15
- data/lib/apex_charts/options/dry_schema/annotations_options/point_annotations.rb +0 -33
- data/lib/apex_charts/options/dry_schema/annotations_options/text_annotations.rb +0 -26
- data/lib/apex_charts/options/dry_schema/annotations_options/x_axis_annotations.rb +0 -20
- data/lib/apex_charts/options/dry_schema/annotations_options/y_axis_annotations.rb +0 -21
- data/lib/apex_charts/options/dry_schema/annotations_options.rb +0 -22
- data/lib/apex_charts/options/dry_schema/chart_options.rb +0 -35
- data/lib/apex_charts/options/dry_schema/data_labels_options.rb +0 -37
- data/lib/apex_charts/options/dry_schema/fill_options.rb +0 -34
- data/lib/apex_charts/options/dry_schema/general_schema/drop_shadow.rb +0 -14
- data/lib/apex_charts/options/dry_schema/general_schema/function.rb +0 -12
- data/lib/apex_charts/options/dry_schema/grid_options.rb +0 -19
- data/lib/apex_charts/options/dry_schema/helper_options.rb +0 -22
- data/lib/apex_charts/options/dry_schema/legend_options.rb +0 -61
- data/lib/apex_charts/options/dry_schema/markers_options/discrete_point.rb +0 -13
- data/lib/apex_charts/options/dry_schema/markers_options.rb +0 -34
- data/lib/apex_charts/options/dry_schema/no_data_options.rb +0 -16
- data/lib/apex_charts/options/dry_schema/plot_options.rb +0 -231
- data/lib/apex_charts/options/dry_schema/root_options.rb +0 -42
- data/lib/apex_charts/options/dry_schema/schema.rb +0 -32
- data/lib/apex_charts/options/dry_schema/states_options/filter.rb +0 -10
- data/lib/apex_charts/options/dry_schema/states_options.rb +0 -22
- data/lib/apex_charts/options/dry_schema/stroke_options.rb +0 -21
- data/lib/apex_charts/options/dry_schema/theme_options.rb +0 -18
- data/lib/apex_charts/options/dry_schema/title_subtitle_options.rb +0 -22
- data/lib/apex_charts/options/dry_schema/tooltip_options.rb +0 -27
- data/lib/apex_charts/options/dry_schema/x_axis_options.rb +0 -30
- data/lib/apex_charts/options/dry_schema/y_axis_options.rb +0 -30
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apexcharts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Setyadi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: smart_kv
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2.8
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2.8
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: dry-schema
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.5'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.5'
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: bundler
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,56 +142,8 @@ files:
|
|
170
142
|
- lib/apex_charts/charts/syncing_charts.rb
|
171
143
|
- lib/apex_charts/colors.rb
|
172
144
|
- lib/apex_charts/config/default_options.rb
|
173
|
-
- lib/apex_charts/config/schema.rb
|
174
145
|
- lib/apex_charts/configuration.rb
|
175
146
|
- lib/apex_charts/helper.rb
|
176
|
-
- lib/apex_charts/options/default/annotations_options.rb
|
177
|
-
- lib/apex_charts/options/default/chart_options.rb
|
178
|
-
- lib/apex_charts/options/default/data_labels_options.rb
|
179
|
-
- lib/apex_charts/options/default/fill_options.rb
|
180
|
-
- lib/apex_charts/options/default/grid_options.rb
|
181
|
-
- lib/apex_charts/options/default/helper_options.rb
|
182
|
-
- lib/apex_charts/options/default/legend_options.rb
|
183
|
-
- lib/apex_charts/options/default/markers_options.rb
|
184
|
-
- lib/apex_charts/options/default/no_data_options.rb
|
185
|
-
- lib/apex_charts/options/default/plot_options.rb
|
186
|
-
- lib/apex_charts/options/default/root_options.rb
|
187
|
-
- lib/apex_charts/options/default/states_options.rb
|
188
|
-
- lib/apex_charts/options/default/stroke_options.rb
|
189
|
-
- lib/apex_charts/options/default/theme_options.rb
|
190
|
-
- lib/apex_charts/options/default/title_subtitle_options.rb
|
191
|
-
- lib/apex_charts/options/default/tooltip_options.rb
|
192
|
-
- lib/apex_charts/options/default/x_axis_options.rb
|
193
|
-
- lib/apex_charts/options/default/y_axis_options.rb
|
194
|
-
- lib/apex_charts/options/dry_schema/annotations_options.rb
|
195
|
-
- lib/apex_charts/options/dry_schema/annotations_options/annotation_label.rb
|
196
|
-
- lib/apex_charts/options/dry_schema/annotations_options/image_annotations.rb
|
197
|
-
- lib/apex_charts/options/dry_schema/annotations_options/point_annotations.rb
|
198
|
-
- lib/apex_charts/options/dry_schema/annotations_options/text_annotations.rb
|
199
|
-
- lib/apex_charts/options/dry_schema/annotations_options/x_axis_annotations.rb
|
200
|
-
- lib/apex_charts/options/dry_schema/annotations_options/y_axis_annotations.rb
|
201
|
-
- lib/apex_charts/options/dry_schema/chart_options.rb
|
202
|
-
- lib/apex_charts/options/dry_schema/data_labels_options.rb
|
203
|
-
- lib/apex_charts/options/dry_schema/fill_options.rb
|
204
|
-
- lib/apex_charts/options/dry_schema/general_schema/drop_shadow.rb
|
205
|
-
- lib/apex_charts/options/dry_schema/general_schema/function.rb
|
206
|
-
- lib/apex_charts/options/dry_schema/grid_options.rb
|
207
|
-
- lib/apex_charts/options/dry_schema/helper_options.rb
|
208
|
-
- lib/apex_charts/options/dry_schema/legend_options.rb
|
209
|
-
- lib/apex_charts/options/dry_schema/markers_options.rb
|
210
|
-
- lib/apex_charts/options/dry_schema/markers_options/discrete_point.rb
|
211
|
-
- lib/apex_charts/options/dry_schema/no_data_options.rb
|
212
|
-
- lib/apex_charts/options/dry_schema/plot_options.rb
|
213
|
-
- lib/apex_charts/options/dry_schema/root_options.rb
|
214
|
-
- lib/apex_charts/options/dry_schema/schema.rb
|
215
|
-
- lib/apex_charts/options/dry_schema/states_options.rb
|
216
|
-
- lib/apex_charts/options/dry_schema/states_options/filter.rb
|
217
|
-
- lib/apex_charts/options/dry_schema/stroke_options.rb
|
218
|
-
- lib/apex_charts/options/dry_schema/theme_options.rb
|
219
|
-
- lib/apex_charts/options/dry_schema/title_subtitle_options.rb
|
220
|
-
- lib/apex_charts/options/dry_schema/tooltip_options.rb
|
221
|
-
- lib/apex_charts/options/dry_schema/x_axis_options.rb
|
222
|
-
- lib/apex_charts/options/dry_schema/y_axis_options.rb
|
223
147
|
- lib/apex_charts/options_builder.rb
|
224
148
|
- lib/apex_charts/prefix_with_apex.rb
|
225
149
|
- lib/apex_charts/prefixer.rb
|
@@ -257,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
181
|
- !ruby/object:Gem::Version
|
258
182
|
version: '0'
|
259
183
|
requirements: []
|
260
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.3.8
|
261
185
|
signing_key:
|
262
186
|
specification_version: 4
|
263
187
|
summary: Awesome charts for your ruby app
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts
|
4
|
-
module Config
|
5
|
-
module Schema
|
6
|
-
def schema
|
7
|
-
@schema ||= 'Default'
|
8
|
-
end
|
9
|
-
|
10
|
-
def schema=(name)
|
11
|
-
@schema = case name
|
12
|
-
when :dry_schema, 'dry_schema', 'dry-schema'
|
13
|
-
'DrySchema'
|
14
|
-
else
|
15
|
-
'Default'
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class ChartOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
animations
|
6
|
-
background
|
7
|
-
brush
|
8
|
-
defaultLocale
|
9
|
-
dropShadow
|
10
|
-
events
|
11
|
-
fontFamily
|
12
|
-
foreColor
|
13
|
-
group
|
14
|
-
height
|
15
|
-
id
|
16
|
-
locales
|
17
|
-
offsetX
|
18
|
-
offsetY
|
19
|
-
parentHeightOffset
|
20
|
-
redrawOnParentResize
|
21
|
-
redrawOnWindowResize
|
22
|
-
selection
|
23
|
-
sparkline
|
24
|
-
stackType
|
25
|
-
stacked
|
26
|
-
toolbar
|
27
|
-
type
|
28
|
-
width
|
29
|
-
zoom
|
30
|
-
]
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class DataLabelsOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
background
|
6
|
-
distributed
|
7
|
-
dropShadow
|
8
|
-
enabled
|
9
|
-
enabledOnSeries
|
10
|
-
formatter
|
11
|
-
offsetX
|
12
|
-
offsetY
|
13
|
-
style
|
14
|
-
textAnchor
|
15
|
-
]
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'smart_kv'
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module Default
|
5
|
-
class HelperOptions < ::SmartKv
|
6
|
-
optional *%i[
|
7
|
-
brushTarget
|
8
|
-
class
|
9
|
-
chartId
|
10
|
-
defer
|
11
|
-
group
|
12
|
-
id
|
13
|
-
style
|
14
|
-
var
|
15
|
-
xtitle
|
16
|
-
xtype
|
17
|
-
ytitle
|
18
|
-
ytype
|
19
|
-
]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class LegendOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
containerMargin
|
6
|
-
customLegendItems
|
7
|
-
floating
|
8
|
-
fontFamily
|
9
|
-
fontSize
|
10
|
-
fontWeight
|
11
|
-
formatter
|
12
|
-
height
|
13
|
-
horizontalAlign
|
14
|
-
inverseOrder
|
15
|
-
itemMargin
|
16
|
-
labels
|
17
|
-
markers
|
18
|
-
offsetX
|
19
|
-
offsetY
|
20
|
-
onItemClick
|
21
|
-
onItemHover
|
22
|
-
position
|
23
|
-
show
|
24
|
-
showForNullSeries
|
25
|
-
showForSingleSeries
|
26
|
-
showForZeroSeries
|
27
|
-
textAnchor
|
28
|
-
tooltipHoverFormatter
|
29
|
-
width
|
30
|
-
]
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class MarkersOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
colors
|
6
|
-
discrete
|
7
|
-
fillOpacity
|
8
|
-
height
|
9
|
-
hover
|
10
|
-
offsetX
|
11
|
-
offsetY
|
12
|
-
onClick
|
13
|
-
onDblClick
|
14
|
-
radius
|
15
|
-
shape
|
16
|
-
showNullDataPoints
|
17
|
-
size
|
18
|
-
strokeColors
|
19
|
-
strokeDashArray
|
20
|
-
strokeOpacity
|
21
|
-
strokeWidth
|
22
|
-
width
|
23
|
-
]
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
require_relative 'helper_options'
|
2
|
-
require_relative 'chart_options'
|
3
|
-
require_relative 'stroke_options'
|
4
|
-
require_relative 'states_options'
|
5
|
-
|
6
|
-
module ApexCharts::Options
|
7
|
-
module Default
|
8
|
-
class RootOptions < ::SmartKv
|
9
|
-
optional *%i[
|
10
|
-
annotations
|
11
|
-
chart
|
12
|
-
colors
|
13
|
-
dataLabels
|
14
|
-
fill
|
15
|
-
grid
|
16
|
-
labels
|
17
|
-
legend
|
18
|
-
markers
|
19
|
-
noData
|
20
|
-
plotOptions
|
21
|
-
responsive
|
22
|
-
series
|
23
|
-
states
|
24
|
-
stroke
|
25
|
-
subtitle
|
26
|
-
theme
|
27
|
-
title
|
28
|
-
tooltip
|
29
|
-
xaxis
|
30
|
-
yaxis
|
31
|
-
],
|
32
|
-
*HelperOptions.optional_keys,
|
33
|
-
*ChartOptions.optional_keys,
|
34
|
-
*StrokeOptions.optional_keys,
|
35
|
-
*StatesOptions.optional_keys
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class TooltipOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
custom
|
6
|
-
enabled
|
7
|
-
enabledOnSeries
|
8
|
-
fillSeriesColor
|
9
|
-
fixed
|
10
|
-
followCursor
|
11
|
-
intersect
|
12
|
-
inverseOrder
|
13
|
-
items
|
14
|
-
marker
|
15
|
-
onDatasetHover
|
16
|
-
shared
|
17
|
-
style
|
18
|
-
theme
|
19
|
-
x
|
20
|
-
y
|
21
|
-
z
|
22
|
-
]
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class XAxisOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
axisBorder
|
6
|
-
axisTicks
|
7
|
-
categories
|
8
|
-
crosshairs
|
9
|
-
floating
|
10
|
-
labels
|
11
|
-
max
|
12
|
-
min
|
13
|
-
offsetX
|
14
|
-
offsetY
|
15
|
-
overwriteCategories
|
16
|
-
position
|
17
|
-
range
|
18
|
-
sorted
|
19
|
-
tickAmount
|
20
|
-
tickPlacement
|
21
|
-
title
|
22
|
-
tooltip
|
23
|
-
type
|
24
|
-
]
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module ApexCharts::Options
|
2
|
-
module Default
|
3
|
-
class YAxisOptions < ::SmartKv
|
4
|
-
optional *%i[
|
5
|
-
axisBorder
|
6
|
-
axisTicks
|
7
|
-
crosshairs
|
8
|
-
decimalsInFloat
|
9
|
-
floating
|
10
|
-
forceNiceScale
|
11
|
-
labels
|
12
|
-
logarithmic
|
13
|
-
max
|
14
|
-
min
|
15
|
-
opposite
|
16
|
-
reversed
|
17
|
-
seriesName
|
18
|
-
show
|
19
|
-
showAlways
|
20
|
-
showForNullSeries
|
21
|
-
tickAmount
|
22
|
-
title
|
23
|
-
tooltip
|
24
|
-
type
|
25
|
-
]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
AnnotationLabel = ::Dry::Schema.Params do
|
6
|
-
optional(:backgroundColor) { str? }
|
7
|
-
optional(:borderColor) { str? }
|
8
|
-
optional(:borderRadius) { int? | float? }
|
9
|
-
optional(:borderWidth) { int? | float? }
|
10
|
-
optional(:fontFamily) { filled? > str? }
|
11
|
-
optional(:fontSize) { str? | int? | float? }
|
12
|
-
optional(:fontWeight) { str? | int? | float? }
|
13
|
-
optional(:foreColor) { str? }
|
14
|
-
optional(:paddingBottom) { int? | float? }
|
15
|
-
optional(:paddingLeft) { int? | float? }
|
16
|
-
optional(:paddingRight) { int? | float? }
|
17
|
-
optional(:paddingTop) { int? | float? }
|
18
|
-
optional(:text) { str? }
|
19
|
-
optional(:textAnchor) { str? }
|
20
|
-
optional(:x) { int? | float? }
|
21
|
-
optional(:y) { int? | float? }
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'annotation_label'
|
4
|
-
|
5
|
-
module ApexCharts::Options
|
6
|
-
module DrySchema
|
7
|
-
ImageAnnotations = ::Dry::Schema.Params do
|
8
|
-
optional(:height) { int? | float? }
|
9
|
-
optional(:path) { str? }
|
10
|
-
optional(:width) { int? | float? }
|
11
|
-
optional(:x) { int? | float? }
|
12
|
-
optional(:y) { int? | float? }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'annotation_label'
|
4
|
-
|
5
|
-
module ApexCharts::Options
|
6
|
-
module DrySchema
|
7
|
-
PointAnnotations = ::Dry::Schema.Params do
|
8
|
-
optional(:x) { int? | float? | str? }
|
9
|
-
optional(:y) { filled? > int? | float? }
|
10
|
-
optional(:yAxisIndex) { int? | float? }
|
11
|
-
optional(:seriesIndex) { int? | float? }
|
12
|
-
optional(:marker).hash do
|
13
|
-
optional(:size) { int? | float? }
|
14
|
-
optional(:fillColor) { str? }
|
15
|
-
optional(:strokeColor) { str? }
|
16
|
-
optional(:strokeWidth) { int? | float? }
|
17
|
-
optional(:shape) { str? }
|
18
|
-
optional(:offsetX) { int? | float? }
|
19
|
-
optional(:offsetY) { int? | float? }
|
20
|
-
optional(:radius) { int? | float? }
|
21
|
-
optional(:cssClass) { str? }
|
22
|
-
end
|
23
|
-
optional(:label).hash(AnnotationLabel)
|
24
|
-
optional(:image).hash do
|
25
|
-
optional(:height) { int? | float? }
|
26
|
-
optional(:offsetX) { int? | float? }
|
27
|
-
optional(:offsetY) { int? | float? }
|
28
|
-
optional(:path) { str? }
|
29
|
-
optional(:width) { int? | float? }
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'annotation_label'
|
4
|
-
|
5
|
-
module ApexCharts::Options
|
6
|
-
module DrySchema
|
7
|
-
TextAnnotations = ::Dry::Schema.Params do
|
8
|
-
optional(:backgroundColor) { str? }
|
9
|
-
optional(:borderColor) { str? }
|
10
|
-
optional(:borderRadius) { int? | float? }
|
11
|
-
optional(:borderWidth) { int? | float? }
|
12
|
-
optional(:fontFamily) { filled? > str? }
|
13
|
-
optional(:fontSize) { str? | int? | float? }
|
14
|
-
optional(:fontWeight) { str? | int? | float? }
|
15
|
-
optional(:foreColor) { str? }
|
16
|
-
optional(:paddingBottom) { int? | float? }
|
17
|
-
optional(:paddingLeft) { int? | float? }
|
18
|
-
optional(:paddingRight) { int? | float? }
|
19
|
-
optional(:paddingTop) { int? | float? }
|
20
|
-
optional(:text) { str? }
|
21
|
-
optional(:textAnchor) { str? }
|
22
|
-
optional(:x) { int? | float? }
|
23
|
-
optional(:y) { int? | float? }
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'annotation_label'
|
4
|
-
|
5
|
-
module ApexCharts::Options
|
6
|
-
module DrySchema
|
7
|
-
XAxisAnnotations = ::Dry::Schema.Params do
|
8
|
-
optional(:borderColor) { str? }
|
9
|
-
optional(:borderWidth) { int? | float? }
|
10
|
-
optional(:fillColor) { str? }
|
11
|
-
optional(:label).hash(AnnotationLabel)
|
12
|
-
optional(:offsetX) { int? | float? }
|
13
|
-
optional(:offsetY) { int? | float? }
|
14
|
-
optional(:opacity) { int? | float? }
|
15
|
-
optional(:strokeDashArray) { int? | float? }
|
16
|
-
optional(:x) { filled? > int? | float? | str? }
|
17
|
-
optional(:x2) { filled? > int? | float? | str? }
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'annotation_label'
|
4
|
-
|
5
|
-
module ApexCharts::Options
|
6
|
-
module DrySchema
|
7
|
-
YAxisAnnotations = ::Dry::Schema.Params do
|
8
|
-
optional(:borderColor) { str? }
|
9
|
-
optional(:borderWidth) { int? | float? }
|
10
|
-
optional(:fillColor) { str? }
|
11
|
-
optional(:label).hash(AnnotationLabel)
|
12
|
-
optional(:offsetX) { int? | float? }
|
13
|
-
optional(:offsetY) { int? | float? }
|
14
|
-
optional(:opacity) { int? | float? }
|
15
|
-
optional(:strokeDashArray) { int? | float? }
|
16
|
-
optional(:y) { filled? > int? | float? | str? }
|
17
|
-
optional(:y2) { filled? > int? | float? | str? }
|
18
|
-
optional(:yAxisIndex) { int? | float? }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|