diff --git a/developerCheatSheet.md b/developerCheatSheet.md index f538096b..b5857304 100644 --- a/developerCheatSheet.md +++ b/developerCheatSheet.md @@ -91,7 +91,7 @@ The title appears above the chart. It can be configured as: "titlefont": { "family": "Droid Sans, Droid Serif, sans-serif", "size": 20, - "color": "black" + "color": "black" } } diff --git a/src/HeatMap/components/HeatMapPlayground.ts b/src/HeatMap/components/HeatMapPlayground.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/src/PieChart/components/PiePlayground.ts b/src/PieChart/components/PiePlayground.ts index ae67f54a..89e95154 100644 --- a/src/PieChart/components/PiePlayground.ts +++ b/src/PieChart/components/PiePlayground.ts @@ -127,10 +127,11 @@ export class PiePlayground extends Component { return null; } + + public static convertJSToJSON(value: string) { + const properJSON = value.replace(/(['"])?([a-z0-9A-Z_]+)(['"])?:/g, `"$2": `).replace(/'/g, `"`); + + return JSON.stringify(JSON.parse(properJSON), null, 2); + } } diff --git a/src/components/SeriesPlayground.ts b/src/components/SeriesPlayground.ts index 694b5107..54beee74 100644 --- a/src/components/SeriesPlayground.ts +++ b/src/components/SeriesPlayground.ts @@ -165,12 +165,8 @@ export class SeriesPlayground extends Component