apexcharts 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -20
- data/lib/apex_charts/charts.rb +16 -0
- data/lib/{apexcharts/charts/area.rb → apex_charts/charts/area_chart.rb} +1 -1
- data/lib/{apexcharts/charts/bar.rb → apex_charts/charts/bar_chart.rb} +1 -1
- data/lib/{apexcharts/charts/base.rb → apex_charts/charts/base_chart.rb} +6 -4
- data/lib/{apexcharts/charts/bubble.rb → apex_charts/charts/bubble_chart.rb} +2 -2
- data/lib/{apexcharts/charts/candlestick.rb → apex_charts/charts/candlestick_chart.rb} +1 -1
- data/lib/{apexcharts/charts/cartesian.rb → apex_charts/charts/cartesian_chart.rb} +8 -6
- data/lib/{apexcharts/charts/column.rb → apex_charts/charts/column_chart.rb} +3 -1
- data/lib/{apexcharts/charts/donut.rb → apex_charts/charts/donut_chart.rb} +1 -1
- data/lib/{apexcharts → apex_charts}/charts/features/annotations.rb +7 -5
- data/lib/{apexcharts → apex_charts}/charts/features/mixable.rb +1 -1
- data/lib/{apexcharts/charts/heatmap.rb → apex_charts/charts/heatmap_chart.rb} +2 -2
- data/lib/{apexcharts/charts/line.rb → apex_charts/charts/line_chart.rb} +1 -1
- data/lib/{apexcharts/charts/mixed.rb → apex_charts/charts/mixed_charts.rb} +6 -4
- data/lib/{apexcharts/charts/pie.rb → apex_charts/charts/pie_chart.rb} +1 -1
- data/lib/apex_charts/charts/polar_chart.rb +9 -0
- data/lib/{apexcharts/charts/radar.rb → apex_charts/charts/radar_chart.rb} +2 -2
- data/lib/{apexcharts/charts/radial_bar.rb → apex_charts/charts/radial_bar_chart.rb} +1 -1
- data/lib/{apexcharts/charts/range_bar.rb → apex_charts/charts/range_bar_chart.rb} +1 -1
- data/lib/{apexcharts/charts/scatter.rb → apex_charts/charts/scatter_chart.rb} +1 -1
- data/lib/{apexcharts/charts/syncing.rb → apex_charts/charts/syncing_charts.rb} +1 -1
- data/lib/{apexcharts → apex_charts}/colors.rb +2 -1
- data/lib/apex_charts/config/default_options.rb +16 -0
- data/lib/{apexcharts/config.rb → apex_charts/configuration.rb} +7 -7
- data/lib/{apexcharts → apex_charts}/helper.rb +16 -16
- data/lib/{apexcharts/options/annotations.rb → apex_charts/options/annotations_options.rb} +3 -1
- data/lib/{apexcharts/options/axis.rb → apex_charts/options/axis_options.rb} +3 -1
- data/lib/{apexcharts/options/chart.rb → apex_charts/options/chart_options.rb} +3 -1
- data/lib/{apexcharts/options/data_labels.rb → apex_charts/options/data_labels_options.rb} +3 -1
- data/lib/{apexcharts → apex_charts}/options/div_attributes.rb +3 -1
- data/lib/{apexcharts/options/fill.rb → apex_charts/options/fill_options.rb} +3 -1
- data/lib/{apexcharts/options/grid.rb → apex_charts/options/grid_options.rb} +3 -1
- data/lib/{apexcharts/options/legend.rb → apex_charts/options/legend_options.rb} +3 -1
- data/lib/{apexcharts/options/markers.rb → apex_charts/options/markers_options.rb} +3 -1
- data/lib/{apexcharts/options/no_data.rb → apex_charts/options/no_data_options.rb} +3 -1
- data/lib/{apexcharts → apex_charts}/options/plot_options.rb +3 -1
- data/lib/{apexcharts/options/root.rb → apex_charts/options/root_options.rb} +6 -4
- data/lib/{apexcharts/options/states.rb → apex_charts/options/states_options.rb} +3 -1
- data/lib/{apexcharts/options/stroke.rb → apex_charts/options/stroke_options.rb} +3 -1
- data/lib/{apexcharts/options/theme.rb → apex_charts/options/theme_options.rb} +3 -1
- data/lib/{apexcharts/options/title.rb → apex_charts/options/title_subtitle_options.rb} +4 -2
- data/lib/{apexcharts/options/tooltip.rb → apex_charts/options/tooltip_options.rb} +3 -1
- data/lib/{apexcharts/options/x_axis.rb → apex_charts/options/x_axis_options.rb} +4 -2
- data/lib/{apexcharts/options/y_axis.rb → apex_charts/options/y_axis_options.rb} +4 -2
- data/lib/{apexcharts → apex_charts}/options_builder.rb +37 -34
- data/lib/apex_charts/prefix_with_apex.rb +7 -0
- data/lib/{apexcharts → apex_charts}/prefixer.rb +2 -0
- data/lib/{apexcharts → apex_charts}/renderer.rb +7 -1
- data/lib/apex_charts/series.rb +7 -0
- data/lib/{apexcharts/series/bubble.rb → apex_charts/series/bubble_series.rb} +4 -2
- data/lib/{apexcharts/series/cartesian.rb → apex_charts/series/cartesian_series.rb} +4 -2
- data/lib/{apexcharts/series/polar.rb → apex_charts/series/polar_series.rb} +4 -2
- data/lib/{apexcharts → apex_charts}/support/rails.rb +0 -0
- data/lib/{apexcharts → apex_charts}/support/sinatra.rb +0 -0
- data/lib/{apexcharts → apex_charts}/theme.rb +0 -0
- data/lib/{apexcharts → apex_charts}/utils.rb +0 -0
- data/lib/{apexcharts → apex_charts}/utils/copy.rb +2 -0
- data/lib/{apexcharts → apex_charts}/utils/date_time.rb +2 -0
- data/lib/{apexcharts → apex_charts}/utils/hash.rb +2 -0
- data/lib/{apexcharts → apex_charts}/version.rb +1 -1
- data/lib/apexcharts.rb +3 -3
- data/lib/apexcharts/prefix_with_apex.rb +18 -3
- data/vendor/assets/javascripts/apexcharts.js +11 -3
- metadata +67 -67
- data/lib/apexcharts/charts.rb +0 -19
- data/lib/apexcharts/charts/polar.rb +0 -7
- data/lib/apexcharts/config/default_options.rb +0 -12
- data/lib/apexcharts/options/subtitle.rb +0 -9
- data/lib/apexcharts/series.rb +0 -7
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ApexCharts
|
4
|
+
module Config
|
5
|
+
module DefaultOptions
|
6
|
+
def default_options=(options)
|
7
|
+
@default_options =
|
8
|
+
ApexCharts::OptionsBuilder.new(nil, options).build_general_options
|
9
|
+
end
|
10
|
+
|
11
|
+
def default_options
|
12
|
+
@default_options ||= {}
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'config/default_options'
|
2
4
|
|
3
5
|
module ApexCharts
|
4
6
|
class << self
|
5
|
-
|
6
|
-
@@helper_prefix ||= ENV['APEXCHARTS_PREFIX']
|
7
|
-
end
|
7
|
+
attr_writer :helper_prefix
|
8
8
|
|
9
|
-
def helper_prefix
|
10
|
-
|
9
|
+
def helper_prefix
|
10
|
+
@helper_prefix ||= ENV['APEXCHARTS_PREFIX']
|
11
11
|
end
|
12
12
|
|
13
13
|
def configure
|
@@ -15,11 +15,11 @@ module ApexCharts
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def config
|
18
|
-
|
18
|
+
@config ||= Configuration.new
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
class Configuration
|
23
|
-
include DefaultOptions
|
23
|
+
include ApexCharts::Config::DefaultOptions
|
24
24
|
end
|
25
25
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative '
|
3
|
+
require_relative 'configuration'
|
4
4
|
require_relative 'utils'
|
5
5
|
require_relative 'series'
|
6
6
|
require_relative 'options_builder'
|
@@ -17,7 +17,7 @@ module ApexCharts
|
|
17
17
|
def line_chart(series, options={}, &block)
|
18
18
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
19
19
|
draw_chart(
|
20
|
-
LineChart.new(
|
20
|
+
ApexCharts::Charts::LineChart.new(
|
21
21
|
outer_self, *prepare_series_and_options(series, options), &block
|
22
22
|
)
|
23
23
|
)
|
@@ -26,7 +26,7 @@ module ApexCharts
|
|
26
26
|
def area_chart(series, options={}, &block)
|
27
27
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
28
28
|
draw_chart(
|
29
|
-
AreaChart.new(
|
29
|
+
ApexCharts::Charts::AreaChart.new(
|
30
30
|
outer_self, *prepare_series_and_options(series, options), &block
|
31
31
|
)
|
32
32
|
)
|
@@ -35,7 +35,7 @@ module ApexCharts
|
|
35
35
|
def column_chart(series, options={}, &block)
|
36
36
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
37
37
|
draw_chart(
|
38
|
-
ColumnChart.new(
|
38
|
+
ApexCharts::Charts::ColumnChart.new(
|
39
39
|
outer_self, *prepare_series_and_options(series, options), &block
|
40
40
|
)
|
41
41
|
)
|
@@ -44,7 +44,7 @@ module ApexCharts
|
|
44
44
|
def bar_chart(series, options={}, &block)
|
45
45
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
46
46
|
draw_chart(
|
47
|
-
BarChart.new(
|
47
|
+
ApexCharts::Charts::BarChart.new(
|
48
48
|
outer_self, *prepare_series_and_options(series, options), &block
|
49
49
|
)
|
50
50
|
)
|
@@ -53,7 +53,7 @@ module ApexCharts
|
|
53
53
|
def range_bar_chart(series, options={}, &block)
|
54
54
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
55
55
|
draw_chart(
|
56
|
-
RangeBarChart.new(
|
56
|
+
ApexCharts::Charts::RangeBarChart.new(
|
57
57
|
outer_self, *prepare_series_and_options(series, options), &block
|
58
58
|
)
|
59
59
|
)
|
@@ -62,7 +62,7 @@ module ApexCharts
|
|
62
62
|
def scatter_chart(series, options={}, &block)
|
63
63
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
64
64
|
draw_chart(
|
65
|
-
ScatterChart.new(
|
65
|
+
ApexCharts::Charts::ScatterChart.new(
|
66
66
|
outer_self, *prepare_series_and_options(series, options), &block
|
67
67
|
)
|
68
68
|
)
|
@@ -71,7 +71,7 @@ module ApexCharts
|
|
71
71
|
def candlestick_chart(series, options={}, &block)
|
72
72
|
outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given?
|
73
73
|
draw_chart(
|
74
|
-
CandlestickChart.new(
|
74
|
+
ApexCharts::Charts::CandlestickChart.new(
|
75
75
|
outer_self, *prepare_series_and_options(series, options), &block
|
76
76
|
)
|
77
77
|
)
|
@@ -80,7 +80,7 @@ module ApexCharts
|
|
80
80
|
|
81
81
|
def heatmap_chart(series, options={})
|
82
82
|
draw_chart(
|
83
|
-
HeatmapChart.new(
|
83
|
+
ApexCharts::Charts::HeatmapChart.new(
|
84
84
|
*prepare_series_and_options(series, options)
|
85
85
|
)
|
86
86
|
)
|
@@ -88,7 +88,7 @@ module ApexCharts
|
|
88
88
|
|
89
89
|
def bubble_chart(series, options={})
|
90
90
|
draw_chart(
|
91
|
-
BubbleChart.new(
|
91
|
+
ApexCharts::Charts::BubbleChart.new(
|
92
92
|
*prepare_series_and_options(series, options)
|
93
93
|
)
|
94
94
|
)
|
@@ -96,7 +96,7 @@ module ApexCharts
|
|
96
96
|
|
97
97
|
def radar_chart(series, options={})
|
98
98
|
draw_chart(
|
99
|
-
RadarChart.new(
|
99
|
+
ApexCharts::Charts::RadarChart.new(
|
100
100
|
*prepare_series_and_options(series, options)
|
101
101
|
)
|
102
102
|
)
|
@@ -105,7 +105,7 @@ module ApexCharts
|
|
105
105
|
def mixed_charts(options={}, &block)
|
106
106
|
outer_self = eval('self', block.binding, __FILE__, __LINE__)
|
107
107
|
draw_chart(
|
108
|
-
MixedCharts.new(
|
108
|
+
ApexCharts::Charts::MixedCharts.new(
|
109
109
|
outer_self, deep_copy(options), &block
|
110
110
|
)
|
111
111
|
)
|
@@ -115,7 +115,7 @@ module ApexCharts
|
|
115
115
|
def syncing_charts(options={}, &block)
|
116
116
|
outer_self = eval('self', block.binding, __FILE__, __LINE__)
|
117
117
|
draw_chart(
|
118
|
-
SyncingCharts.new(
|
118
|
+
ApexCharts::Charts::SyncingCharts.new(
|
119
119
|
outer_self, deep_copy(options), &block
|
120
120
|
)
|
121
121
|
)
|
@@ -124,7 +124,7 @@ module ApexCharts
|
|
124
124
|
|
125
125
|
def pie_chart(series, options={})
|
126
126
|
draw_chart(
|
127
|
-
PieChart.new(
|
127
|
+
ApexCharts::Charts::PieChart.new(
|
128
128
|
*prepare_series_and_options(series, options)
|
129
129
|
)
|
130
130
|
)
|
@@ -132,7 +132,7 @@ module ApexCharts
|
|
132
132
|
|
133
133
|
def donut_chart(series, options={})
|
134
134
|
draw_chart(
|
135
|
-
DonutChart.new(
|
135
|
+
ApexCharts::Charts::DonutChart.new(
|
136
136
|
*prepare_series_and_options(series, options)
|
137
137
|
)
|
138
138
|
)
|
@@ -140,7 +140,7 @@ module ApexCharts
|
|
140
140
|
|
141
141
|
def radial_bar_chart(series, options={})
|
142
142
|
draw_chart(
|
143
|
-
RadialBarChart.new(
|
143
|
+
ApexCharts::Charts::RadialBarChart.new(
|
144
144
|
*prepare_series_and_options(series, options)
|
145
145
|
)
|
146
146
|
)
|
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'div_attributes'
|
2
|
-
require_relative '
|
3
|
-
require_relative '
|
4
|
-
require_relative '
|
4
|
+
require_relative 'chart_options'
|
5
|
+
require_relative 'stroke_options'
|
6
|
+
require_relative 'states_options'
|
5
7
|
|
6
|
-
module ApexCharts
|
8
|
+
module ApexCharts::Options
|
7
9
|
class RootOptions < ::SmartKv
|
8
10
|
optional *%i[
|
9
11
|
annotations
|
@@ -1,26 +1,26 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'smart_kv'
|
4
|
-
require_relative 'options/
|
5
|
-
require_relative 'options/
|
6
|
-
require_relative 'options/
|
7
|
-
require_relative 'options/
|
8
|
-
require_relative 'options/
|
9
|
-
require_relative 'options/
|
10
|
-
require_relative 'options/
|
11
|
-
require_relative 'options/
|
4
|
+
require_relative 'options/root_options'
|
5
|
+
require_relative 'options/annotations_options'
|
6
|
+
require_relative 'options/data_labels_options'
|
7
|
+
require_relative 'options/fill_options'
|
8
|
+
require_relative 'options/grid_options'
|
9
|
+
require_relative 'options/legend_options'
|
10
|
+
require_relative 'options/markers_options'
|
11
|
+
require_relative 'options/no_data_options'
|
12
12
|
require_relative 'options/plot_options'
|
13
|
-
require_relative 'options/
|
14
|
-
require_relative 'options/
|
15
|
-
require_relative 'options/
|
16
|
-
require_relative 'options/
|
17
|
-
require_relative 'options/
|
18
|
-
require_relative 'options/
|
13
|
+
require_relative 'options/states_options'
|
14
|
+
require_relative 'options/title_subtitle_options'
|
15
|
+
require_relative 'options/theme_options'
|
16
|
+
require_relative 'options/tooltip_options'
|
17
|
+
require_relative 'options/x_axis_options'
|
18
|
+
require_relative 'options/y_axis_options'
|
19
19
|
|
20
20
|
module ApexCharts
|
21
21
|
class OptionsBuilder
|
22
|
-
include Utils::Hash
|
23
|
-
include Utils::DateTime
|
22
|
+
include ApexCharts::Utils::Hash
|
23
|
+
include ApexCharts::Utils::DateTime
|
24
24
|
|
25
25
|
attr_reader :built
|
26
26
|
|
@@ -35,7 +35,7 @@ module ApexCharts
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def build_options
|
38
|
-
RootOptions.check @options
|
38
|
+
Options::RootOptions.check @options
|
39
39
|
|
40
40
|
build_chart
|
41
41
|
build_div
|
@@ -77,7 +77,7 @@ module ApexCharts
|
|
77
77
|
def build_annotations
|
78
78
|
annotations = @options.delete :annotations
|
79
79
|
@built[:annotations] = (
|
80
|
-
AnnotationsOptions.check annotations.compact if annotations.is_a? Hash
|
80
|
+
Options::AnnotationsOptions.check annotations.compact if annotations.is_a? Hash
|
81
81
|
)
|
82
82
|
end
|
83
83
|
|
@@ -105,7 +105,7 @@ module ApexCharts
|
|
105
105
|
|
106
106
|
return unless chart.is_a? Hash
|
107
107
|
|
108
|
-
@built[:chart].merge! ChartOptions.check(chart.compact)
|
108
|
+
@built[:chart].merge! Options::ChartOptions.check(chart.compact)
|
109
109
|
end
|
110
110
|
|
111
111
|
def build_colors
|
@@ -121,7 +121,7 @@ module ApexCharts
|
|
121
121
|
@built[:dataLabels] = if [true, false].include? data_labels
|
122
122
|
{enabled: data_labels}
|
123
123
|
elsif data_labels.is_a? Hash
|
124
|
-
DataLabelsOptions.check data_labels.compact
|
124
|
+
Options::DataLabelsOptions.check data_labels.compact
|
125
125
|
end
|
126
126
|
end
|
127
127
|
|
@@ -130,7 +130,7 @@ module ApexCharts
|
|
130
130
|
@built[:fill] = if fill.is_a? String
|
131
131
|
{type: fill}
|
132
132
|
elsif fill.is_a? Hash
|
133
|
-
FillOptions.check fill.compact
|
133
|
+
Options::FillOptions.check fill.compact
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
@@ -139,7 +139,7 @@ module ApexCharts
|
|
139
139
|
@built[:grid] = if [true, false].include? grid
|
140
140
|
{show: grid}
|
141
141
|
elsif grid.is_a? Hash
|
142
|
-
GridOptions.check grid.compact
|
142
|
+
Options::GridOptions.check grid.compact
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
@@ -156,7 +156,7 @@ module ApexCharts
|
|
156
156
|
elsif legend.is_a? String
|
157
157
|
{show: true, position: legend}
|
158
158
|
elsif legend.is_a? Hash
|
159
|
-
LegendOptions.check legend.compact
|
159
|
+
Options::LegendOptions.check legend.compact
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
@@ -165,7 +165,7 @@ module ApexCharts
|
|
165
165
|
@built[:markers] = if markers.is_a? String
|
166
166
|
{shape: markers}
|
167
167
|
elsif markers.is_a? Hash
|
168
|
-
MarkersOptions.check markers.compact
|
168
|
+
Options::MarkersOptions.check markers.compact
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
@@ -174,13 +174,16 @@ module ApexCharts
|
|
174
174
|
@built[:noData] = if no_data.is_a? String
|
175
175
|
{text: no_data}
|
176
176
|
elsif no_data.is_a? Hash
|
177
|
-
NoDataOptions.check no_data.compact
|
177
|
+
Options::NoDataOptions.check no_data.compact
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
181
|
def build_plot_options
|
182
182
|
plot_options = @options.delete :plotOptions
|
183
|
-
|
183
|
+
return unless plot_options.is_a? Hash
|
184
|
+
|
185
|
+
@built[:plotOptions] =
|
186
|
+
Options::PlotOptions.check plot_options.compact
|
184
187
|
end
|
185
188
|
|
186
189
|
def build_responsive
|
@@ -197,7 +200,7 @@ module ApexCharts
|
|
197
200
|
}.compact
|
198
201
|
|
199
202
|
states = @options.delete :states
|
200
|
-
@built[:states].merge! StatesOptions.check(states.compact) if states.is_a? Hash
|
203
|
+
@built[:states].merge! Options::StatesOptions.check(states.compact) if states.is_a? Hash
|
201
204
|
|
202
205
|
@built[:states] = nil if @built[:states].empty?
|
203
206
|
end
|
@@ -210,7 +213,7 @@ module ApexCharts
|
|
210
213
|
if [true, false].include? stroke
|
211
214
|
@built[:stroke].merge!(show: stroke)
|
212
215
|
elsif stroke.is_a? Hash
|
213
|
-
@built[:stroke].merge! StrokeOptions.check(stroke.compact)
|
216
|
+
@built[:stroke].merge! Options::StrokeOptions.check(stroke.compact)
|
214
217
|
end
|
215
218
|
|
216
219
|
@built[:stroke] = nil if @built[:stroke].empty?
|
@@ -221,7 +224,7 @@ module ApexCharts
|
|
221
224
|
@built[:subtitle] = if subtitle.is_a? String
|
222
225
|
{text: subtitle}
|
223
226
|
elsif subtitle.is_a? Hash
|
224
|
-
|
227
|
+
Options::TitleSubtitleOptions.check subtitle.compact
|
225
228
|
end
|
226
229
|
end
|
227
230
|
|
@@ -237,7 +240,7 @@ module ApexCharts
|
|
237
240
|
resolve_theme(theme)
|
238
241
|
end
|
239
242
|
elsif theme.is_a? Hash
|
240
|
-
ThemeOptions.check theme.compact
|
243
|
+
Options::ThemeOptions.check theme.compact
|
241
244
|
end
|
242
245
|
end
|
243
246
|
|
@@ -246,7 +249,7 @@ module ApexCharts
|
|
246
249
|
@built[:title] = if title.is_a? String
|
247
250
|
{text: title}
|
248
251
|
elsif title.is_a? Hash
|
249
|
-
|
252
|
+
Options::TitleSubtitleOptions.check title.compact
|
250
253
|
end
|
251
254
|
end
|
252
255
|
|
@@ -255,7 +258,7 @@ module ApexCharts
|
|
255
258
|
@built[:tooltip] = if [true, false].include? tooltip
|
256
259
|
{enabled: tooltip}
|
257
260
|
elsif tooltip.is_a? Hash
|
258
|
-
TooltipOptions.check tooltip.compact
|
261
|
+
Options::TooltipOptions.check tooltip.compact
|
259
262
|
end
|
260
263
|
end
|
261
264
|
|
@@ -272,7 +275,7 @@ module ApexCharts
|
|
272
275
|
if xaxis.is_a? String
|
273
276
|
@built[:xaxis][:title] = {text: xaxis}
|
274
277
|
elsif xaxis.is_a? Hash
|
275
|
-
XAxisOptions.check xaxis
|
278
|
+
Options::XAxisOptions.check xaxis
|
276
279
|
@built[:xaxis].merge! xaxis
|
277
280
|
end
|
278
281
|
|
@@ -292,7 +295,7 @@ module ApexCharts
|
|
292
295
|
if yaxis.is_a? String
|
293
296
|
@built[:yaxis][0][:title] = {text: yaxis}
|
294
297
|
elsif yaxis.is_a? Hash
|
295
|
-
YAxisOptions.check yaxis
|
298
|
+
Options::YAxisOptions.check yaxis
|
296
299
|
@built[:yaxis][0].merge! yaxis
|
297
300
|
end
|
298
301
|
|