From 1a3ca6a445d95cc3abdbcac4522039da3671e489 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Mon, 29 Apr 2019 20:50:58 +0300 Subject: [PATCH] [#1013] Fix stack graph labels with ' in them --- .../plan/utilities/html/graphs/stack/StackGraph.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/graphs/stack/StackGraph.java b/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/graphs/stack/StackGraph.java index e9fd131fb..30954b31a 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/graphs/stack/StackGraph.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/utilities/html/graphs/stack/StackGraph.java @@ -39,7 +39,7 @@ public class StackGraph implements HighChart { int length = this.labels.length; int i = 0; for (String label : this.labels) { - labelBuilder.append("'").append(label).append("'"); + labelBuilder.append('"').append(label).append('"'); if (i < length - 1) { labelBuilder.append(","); @@ -51,9 +51,9 @@ public class StackGraph implements HighChart { } private String toSeries(StackDataSet dataSet) { - StringBuilder dataSetBuilder = new StringBuilder("{name: \""); + StringBuilder dataSetBuilder = new StringBuilder("{name: '"); - dataSetBuilder.append(dataSet.getName()).append("\",") + dataSetBuilder.append(dataSet.getName()).append("',") .append("color:").append(dataSet.getColor()) .append(",data: [");