From db741938f38d9241923fa000a0fb1dbd33881486 Mon Sep 17 00:00:00 2001 From: Adrian Setyadi Date: Sat, 24 Aug 2019 06:23:49 +0700 Subject: [PATCH] Fix cannot specify xtype or ytype as root options xtype and ytype already read on options builder but not allowed as root options. --- CHANGELOG.md | 1 + lib/apexcharts/options/root.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac09ba0..a7244e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. ### Fixed - HTML+ERB wrong and ambiguous instruction +- Cannot specify xtype or ytype as root options ## [0.1.5] - 2019-07-20 diff --git a/lib/apexcharts/options/root.rb b/lib/apexcharts/options/root.rb index 1a265b3..267fe54 100644 --- a/lib/apexcharts/options/root.rb +++ b/lib/apexcharts/options/root.rb @@ -31,8 +31,10 @@ class RootOptions < ::SmartKv var xaxis xtitle + xtype yaxis ytitle + ytype ], *DivAttributes.optional_keys, *ChartOptions.optional_keys,