Skip to content

Commit 0599d94

Browse files
incandescentxxcicepear-jzx
authored andcommitted
replace json image to code block
1 parent 6d4f43c commit 0599d94

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,28 @@ public static void main(String[] args) {
100100
String jsonStr = engine.renderJsonOption(lineChart);
101101
}
102102
```
103-
<img src="assets/imgs/renderJsonOption.png" alt="Json Representation" style="width:95%;" />
103+
104+
The output JSON object will be like the following,
105+
106+
```json
107+
{
108+
"xAxis": [
109+
{
110+
"type": "category",
111+
"data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
112+
"boundaryGap": false
113+
}
114+
],
115+
"yAxis": [{ "type": "value" }],
116+
"series": [
117+
{
118+
"type": "line",
119+
"data": [820, 932, 901, 934, 1290, 1330, 1320],
120+
"areaStyle": {}
121+
}
122+
]
123+
}
124+
```
104125

105126
### Integrate with Spring Web Application
106127

0 commit comments

Comments
 (0)