mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
[#1013] Fix stack graph labels with ' in them
This commit is contained in:
parent
27a8ce0052
commit
1a3ca6a445
@ -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: [");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user