Skip to content

Commit 29353fe

Browse files
authored
Merge pull request #190 from Codeinwp/v219
Fixed display error with hex color.
2 parents 7794a8a + c3ad1c9 commit 29353fe

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

classes/Visualizer/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class Visualizer_Plugin {
2929

3030
const NAME = 'visualizer';
31-
const VERSION = '2.1.8';
31+
const VERSION = '2.1.9';
3232

3333
// custom post types
3434
const CPT_VISUALIZER = 'visualizer';

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+
}

css/media.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Version: 2.1.8
2+
Version: 2.1.9
33
*/
44
#visualizer-library-view {
55
padding: 30px 10px 10px 30px;

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Visualizer: Charts and Graphs Lite
55
Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
66
Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
7-
Version: 2.1.8
7+
Version: 2.1.9
88
Author: Themeisle
99
Author URI: http://themeisle.com
1010
License: GPL v2.0 or later

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"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "visualizer",
3-
"version": "2.1.8",
3+
"version": "2.1.9",
44
"description": "Visualizer Lite",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)