企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 中国地区分布图 ![](https://img.kancloud.cn/18/6a/186a4cd349917a9fe11d4432c3152e35_1088x1014.png) ~~~[api] post:index/t.distribution <<< success { "succeed": 1 "msg": "提示信息", "data": { "data": [{ "name":"数据说明", "value":"数据值" }], "value_inRange":"颜色数组", "value_left":"数值柱左右位置 left right", "value_min":"最小数值", "value_max":"最大数值", "value_text":"数值文本数组", "title":"图表标题", "subtext":"副标题", "sublink":"副标题链接" "left": "标题显示位置 left / right" "loop": "下一个循环标识(若卡片加载完则不需要填写)", } } <<< error { "succeed": 0, "msg": "提示信息" } ~~~ ~~~ $data = []; //>y轴数据 $x = []; $x[] = ['name'=>'新疆维吾尔自治区','value'=>4822023]; $x[] = ['name'=>'西藏自治区','value'=>731449]; $x[] = ['name'=>'内蒙古自治区','value'=>6553255]; $x[] = ['name'=>'青海省','value'=>2949131]; $x[] = ['name'=>'四川省','value'=>38041430]; $x[] = ['name'=>'黑龙江省','value'=>5187582]; $x[] = ['name'=>'甘肃省','value'=>3590347]; $x[] = ['name'=>'云南省','value'=>917092]; $x[] = ['name'=>'广西壮族自治区','value'=>632323]; $x[] = ['name'=>'湖南省','value'=>19317568]; $x[] = ['name'=>'陕西省','value'=>9919945]; $x[] = ['name'=>'广东省','value'=>1392313]; $x[] = ['name'=>'吉林省','value'=>1595728]; $x[] = ['name'=>'河北省','value'=>12875255]; $x[] = ['name'=>'湖北省','value'=>6537334]; $x[] = ['name'=>'贵州省','value'=>3074186]; $x[] = ['name'=>'山东省','value'=>2885905]; $x[] = ['name'=>'江西省','value'=>4380415]; $x[] = ['name'=>'河南省','value'=>4601893]; $x[] = ['name'=>'辽宁省','value'=>1329192]; $x[] = ['name'=>'山西省','value'=>5884563]; $x[] = ['name'=>'安徽省','value'=>6646144]; $x[] = ['name'=>'福建省','value'=>9883360]; $x[] = ['name'=>'浙江省','value'=>5379139]; $x[] = ['name'=>'江苏省','value'=>2984926]; $x[] = ['name'=>'重庆市','value'=>6021988]; $x[] = ['name'=>'宁夏回族自治区','value'=>1005141]; $x[] = ['name'=>'海南省','value'=>1855525]; $x[] = ['name'=>'台湾省','value'=>2758931]; $x[] = ['name'=>'北京市','value'=>1320718]; $x[] = ['name'=>'天津市','value'=>8864590]; $x[] = ['name'=>'上海市','value'=>2085538]; $x[] = ['name'=>'香港特别行政区','value'=>19570261]; $x[] = ['name'=>'澳门特别行政区','value'=>9752073]; $x[] = ['name'=>'山西省','value'=>5884563]; $x[] = ['name'=>'辽宁省','value'=>1329192]; $data['data'] = $x; //>数量值 $data['value_inRange'] = ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']; //>分布颜色 $data['value_left'] = 'right'; //left ,center $data['value_min'] = 0; $data['value_max'] = 10000000; $data['value_text'] = ['最高','最低']; //>标题 $data['title'] = '中国分布图'; //>标题 $data['subtext'] = '副标题'; //>标题 $data['sublink'] = 'https://echarts.apache.org'; //>标题 $data['left'] = 'left'; //center ,right $json['data'] = $data; ~~~