Skip to content

Commit cd98efb

Browse files
Charts display error "'[object Object]' is not a valid hex color" after resize.
1 parent 7794a8a commit cd98efb

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

css/library.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ input:checked + .visualizer-slider:before {
283283
padding-top: 20px;
284284
padding-bottom: 20px;
285285
}
286-
.visualizer-chart-title{
287286

288-
text-align: center;
289-
font-weight: bold;
287+
.visualizer-chart-title {
290288
padding-bottom: 5px;
291-
}
289+
font-weight: bold;
290+
text-align: center;
291+
}

js/render.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,17 @@
139139

140140
if(settings.hAxis){
141141
if(settings.hAxis.textStyle && settings.hAxis.textStyle !== ''){
142-
settings.hAxis.textStyle = {color: settings.hAxis.textStyle};
142+
if(typeof(settings.hAxis.textStyle) === "string") {
143+
settings.hAxis.textStyle = {color: settings.hAxis.textStyle};
144+
}
143145
}
144146
}
145147

146148
if(settings.vAxis){
147149
if(settings.vAxis.textStyle && settings.vAxis.textStyle !== ''){
148-
settings.vAxis.textStyle = {color: settings.vAxis.textStyle};
150+
if(typeof(settings.vAxis.textStyle) === "string") {
151+
settings.vAxis.textStyle = {color: settings.vAxis.textStyle};
152+
}
149153
}
150154
}
151155

languages/visualizer.pot

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the GPL v2.0 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Visualizer: Charts and Graphs Lite 2.1.7\n"
5+
"Project-Id-Version: Visualizer: Charts and Graphs Lite 2.1.8\n"
66
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
7-
"POT-Creation-Date: 2017-06-19 10:36:34+00:00\n"
7+
"POT-Creation-Date: 2017-07-07 08:28:42+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -153,10 +153,6 @@ msgstr ""
153153
msgid "No charts found"
154154
msgstr ""
155155

156-
#: classes/Visualizer/Render/Library.php:163
157-
msgid "No Title"
158-
msgstr ""
159-
160156
#: classes/Visualizer/Render/Library.php:189
161157
#: classes/Visualizer/Render/Templates.php:68
162158
msgid "Delete"

0 commit comments

Comments
 (0)