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
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
class StrokeOptions < Schema
|
6
|
-
define do
|
7
|
-
optional(:colors) { array? & each { str? } }
|
8
|
-
optional(:curve) {
|
9
|
-
included_in?(%w[smooth straight stepline]) |
|
10
|
-
(array? & each {
|
11
|
-
included_in? %w[smooth straight stepline]
|
12
|
-
})
|
13
|
-
}
|
14
|
-
optional(:dashArray) { int? | float? | (array? & each { int? | float? }) }
|
15
|
-
optional(:lineCap) { included_in? %w[butt square round] }
|
16
|
-
optional(:show) { bool? }
|
17
|
-
optional(:width) { int? | float? | (array? & each { int? | float? }) }
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
class ThemeOptions < Schema
|
6
|
-
define do
|
7
|
-
optional(:mode).value(included_in?: %w[light dark])
|
8
|
-
optional(:monochrome).hash do
|
9
|
-
optional(:enabled) { bool? }
|
10
|
-
optional(:color) { str? }
|
11
|
-
optional(:shadeTo).value(included_in?: %w[light dark])
|
12
|
-
optional(:shadeIntensity) { int? | float? }
|
13
|
-
end
|
14
|
-
optional(:palette) { str? }
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
class TitleSubtitleOptions < Schema
|
6
|
-
define do
|
7
|
-
optional(:align) { included_in? %w[left center right] }
|
8
|
-
optional(:floating) { bool? }
|
9
|
-
optional(:margin) { int? | float? }
|
10
|
-
optional(:offsetX) { int? | float? }
|
11
|
-
optional(:offsetY) { int? | float? }
|
12
|
-
optional(:style).hash do
|
13
|
-
optional(:color) { str? }
|
14
|
-
optional(:fontFamily) { str? }
|
15
|
-
optional(:fontSize) { str? }
|
16
|
-
optional(:fontWeight) { str? | int? | float? }
|
17
|
-
end
|
18
|
-
optional(:text) { str? }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
class TooltipOptions < Schema
|
6
|
-
define do
|
7
|
-
optional(:custom)
|
8
|
-
optional(:enabled)
|
9
|
-
optional(:enabledOnSeries)
|
10
|
-
optional(:fillSeriesColor)
|
11
|
-
optional(:fixed)
|
12
|
-
optional(:followCursor)
|
13
|
-
optional(:intersect)
|
14
|
-
optional(:inverseOrder)
|
15
|
-
optional(:items)
|
16
|
-
optional(:marker)
|
17
|
-
optional(:onDatasetHover)
|
18
|
-
optional(:shared)
|
19
|
-
optional(:style)
|
20
|
-
optional(:theme)
|
21
|
-
optional(:x)
|
22
|
-
optional(:y)
|
23
|
-
optional(:z)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
class XAxisOptions < Schema
|
6
|
-
define do
|
7
|
-
optional(:axisBorder)
|
8
|
-
optional(:axisTicks)
|
9
|
-
optional(:categories)
|
10
|
-
optional(:overwriteCategories)
|
11
|
-
optional(:crosshairs)
|
12
|
-
optional(:floating)
|
13
|
-
optional(:decimalsInFloat)
|
14
|
-
optional(:labels)
|
15
|
-
optional(:max)
|
16
|
-
optional(:min)
|
17
|
-
optional(:position)
|
18
|
-
optional(:range)
|
19
|
-
optional(:tickAmount)
|
20
|
-
optional(:tickPlacement)
|
21
|
-
optional(:title)
|
22
|
-
optional(:tooltip)
|
23
|
-
optional(:type)
|
24
|
-
optional(:offsetX)
|
25
|
-
optional(:offsetY)
|
26
|
-
optional(:sorted)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ApexCharts::Options
|
4
|
-
module DrySchema
|
5
|
-
class YAxisOptions < Schema
|
6
|
-
define do
|
7
|
-
optional(:axisBorder)
|
8
|
-
optional(:axisTicks)
|
9
|
-
optional(:crosshairs)
|
10
|
-
optional(:decimalsInFloat)
|
11
|
-
optional(:floating)
|
12
|
-
optional(:forceNiceScale)
|
13
|
-
optional(:labels)
|
14
|
-
optional(:logarithmic)
|
15
|
-
optional(:max)
|
16
|
-
optional(:min)
|
17
|
-
optional(:opposite)
|
18
|
-
optional(:reversed)
|
19
|
-
optional(:seriesName)
|
20
|
-
optional(:show)
|
21
|
-
optional(:showAlways)
|
22
|
-
optional(:showForNullSeries)
|
23
|
-
optional(:tickAmount)
|
24
|
-
optional(:title)
|
25
|
-
optional(:tooltip)
|
26
|
-
optional(:type)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|