-
Notifications
You must be signed in to change notification settings - Fork 1
Description
我发现柱状图中有许多样本的table.json文件的信息是错误的,比如下面的样本,我无法找到y_data是如何转换成柱状图中各个bar的数值的,完全对应不上。请问table.json文件的正确解析方式是什么?如何将其转换成csv格式的表格
{
"title": "Annual GDP Growth Rate",
"x_data": [
"2016",
"2017",
"2018",
"2019",
"2020",
"2021",
"2022"
],
"y_data": [
[
23.456790123456788,
20.16460905349794,
17.28395061728395,
14.403292181069958,
11.522633744855966,
7.818930041152263,
5.349794238683128
],
[
22.382671480144403,
19.494584837545126,
17.328519855595665,
14.801444043321297,
11.91335740072202,
8.303249097472923,
5.776173285198555
],
[
23.27586206896552,
19.827586206896548,
17.67241379310345,
14.655172413793101,
11.63793103448276,
7.758620689655173,
5.172413793103448
],
[
22.10884353741497,
19.387755102040817,
17.346938775510203,
14.625850340136054,
12.244897959183675,
8.503401360544217,
5.782312925170068
],
[
21.794871794871796,
19.55128205128205,
17.30769230769231,
14.743589743589745,
12.179487179487179,
8.653846153846155,
5.769230769230769
],
[
22.779922779922778,
19.691119691119688,
17.374517374517374,
14.671814671814671,
11.96911196911197,
8.108108108108107,
5.405405405405404
],
[
22.02797202797203,
19.58041958041958,
17.482517482517483,
14.685314685314687,
12.237762237762238,
8.391608391608392,
5.594405594405595
],
[
22.592592592592595,
19.62962962962963,
17.407407407407412,
14.814814814814817,
11.851851851851853,
8.14814814814815,
5.555555555555556
]
],
"x_label": "Year",
"y_label": "percentage",
"legend": [
"Singapore",
"Malaysia",
"Indonesia",
"Thailand",
"Vietnam",
"Philippines",
"Cambodia",
"Laos"
]
}