数据由云HIS提供
配置项如下
var data = [
{
name: '异龙镇',
// value: 0,
children: [
{
name: '城东社区',
// value: 2
children: [
{
name: '内科20',
value: 20,
},
{
name: '外科10',
value: 10,
},
{
name: '妇科12',
value: 12,
},
],
},
{ name: '云泉社区', value: 1 },
{ name: '卫家营社区', value: 1 },
{ name: '陶村', value: 1 },
{ name: '大水村', value: 1 },
{ name: '大瑞城村', value: 1 },
{ name: '杨广城村', value: 1 },
{ name: '鸭子坝村', value: 1 },
{ name: '他腊坝村', value: 1 },
{ name: '孙家营村', value: 1 },
{ name: '松村', value: 1 },
{ name: '六谷冲村', value: 1 },
{ name: '李家寨村', value: 1 },
{ name: '阿希者村', value: 1 },
{ name: '冒合村', value: 1 },
{ name: '高家湾村', value: 1 },
{ name: '豆地湾村', value: 1 },
{ name: '小水村', value: 1 },
{ name: '大西山村', value: 1 },
{ name: '弥太柏村', value: 1 },
{ name: '马鞍山村', value: 1 },
{ name: '六家山村', value: 1 },
{ name: '银柱塘村', value: 1 },
{ name: '上普租村', value: 1 },
{ name: '大塘村', value: 1 },
],
},
{
name: '宝秀镇',
// value: 0,
children: [
{ name: '宝秀', value: 1 },
{ name: '郑营', value: 1 },
{ name: '张向寨', value: 1 },
{ name: '吴营', value: 1 },
{ name: '许刘营', value: 1 },
{ name: '兰梓营', value: 1 },
{ name: '凤山', value: 1 },
{ name: '茴水', value: 1 },
{ name: '小官山', value: 1 },
{ name: '石灰塘', value: 1 },
{ name: '立新', value: 1 },
{ name: '新寨', value: 1 },
{ name: '斐尼', value: 1 },
{ name: '哥白孔', value: 1 },
{ name: '朱洼子', value: 1 },
{ name: '定兴寨', value: 1 },
{ name: '亚花寨', value: 1 },
{ name: '杨新寨', value: 1 },
{ name: '棉花冲', value: 1 },
{ name: '朝阳', value: 1 },
],
},
{
name: '坝心镇',
// value: 0,
children: [
{ name: '白浪', value: 1 },
{ name: '新海资', value: 1 },
{ name: '老街', value: 1 },
{ name: '新河村', value: 1 },
{ name: '底莫', value: 1 },
{ name: '王家冲', value: 1 },
{ name: '坝心', value: 1 },
{ name: '新街', value: 1 },
{ name: '芦子沟', value: 1 },
{ name: '海东', value: 1 },
{ name: '黑尼', value: 1 },
{
name: '邑北孔',
// value: 1
// value: 2
children: [
{
name: '内科20',
value: 7,
},
{
name: '外科10',
value: 3,
},
{
name: '妇科12',
value: 5,
},
],
},
],
},
{
name: '龙朋镇',
// value: 0,
children: [
{ name: '龙朋', value: 1 },
{ name: '甸中', value: 1 },
{ name: '三家', value: 1 },
{ name: '清水塘', value: 1 },
{ name: '咩哺', value: 1 },
{ name: '旧寨', value: 1 },
{ name: '小路南', value: 1 },
{ name: '六街', value: 1 },
{ name: '桃园', value: 1 },
{ name: '巴窝', value: 1 },
{ name: '己冲', value: 1 },
{ name: '鲁土格', value: 1 },
],
},
{
name: '龙武镇',
// value: 0,
children: [
{ name: '龙武', value: 1 },
{ name: '方丈', value: 1 },
{ name: '育英', value: 1 },
{ name: '大练庄', value: 1 },
{ name: '法乌', value: 1 },
{ name: '柏木租', value: 1 },
{ name: '他乌德', value: 1 },
{ name: '昌明', value: 1 },
{ name: '石岩头', value: 1 },
{ name: '脚白亩', value: 1 },
{ name: '旧沙', value: 1 },
{ name: '龙车', value: 1 },
{ name: '坡头甸', value: 1 },
{ name: '宜其达', value: 1 },
],
},
{
name: '哨冲镇',
// value: 0,
children: [
{ name: '哨冲', value: 1 },
{ name: '水瓜冲', value: 1 },
{ name: '邑堵', value: 1 },
{ name: '撒妈扎', value: 1 },
{ name: '他达', value: 1 },
{
name: '落水洞',
// value: 1
children: [
{
name: '卫生室1',
value: 2,
},
{
name: '卫生室2',
// value: 10,
// value: 2
children: [
{
name: '内科20',
value: 2,
},
{
name: '外科10',
value: 3,
},
{
name: '妇科12',
value: 4,
},
],
},
],
},
{ name: '他克亩', value: 1 },
{ name: '多白者', value: 1 },
],
},
{
name: '牛街镇',
// value: 0,
children: [
{ name: '老旭甸', value: 1 },
{ name: '邑黑吉', value: 1 },
{ name: '他腊 ', value: 1 },
{ name: '那刀 ', value: 1 },
{ name: '迭亩龙', value: 1 },
{ name: '牛街 ', value: 1 },
{ name: '尼腊 ', value: 1 },
{ name: '弥勒 ', value: 1 },
{ name: '者孔 ', value: 1 },
{ name: '扯直 ', value: 1 },
{ name: '甲已己', value: 1 },
],
},
{
name: '新城乡',
// value: 0,
children: [
{ name: '盘指挥', value: 1 },
{ name: '下新寨', value: 1 },
{ name: '新城 ', value: 1 },
{ name: '马扒岭', value: 1 },
],
},
{
name: '大桥乡',
// value: 0,
children: [
{ name: '大桥 ', value: 1 },
{ name: '团山 ', value: 1 },
{ name: '小寨 ', value: 1 },
{ name: '白尼莫', value: 1 },
{ name: '三树底', value: 1 },
{ name: '斐龙 ', value: 1 },
{ name: '牛达 ', value: 1 },
{ name: '六美尼', value: 1 },
{ name: '他克苴', value: 1 },
],
},
];
option = {
title: {
text: '石屏县医疗卫生机构',
subtext: '数据由云HIS提供',
textStyle: {
fontSize: 14,
align: 'center',
},
subtextStyle: {
align: 'center',
},
sublink: 'http://www.yunhis.com',
},
series: {
type: 'sunburst',
data: data,
radius: [0, '95%'],
sort: undefined,
emphasis: {
focus: 'ancestor',
},
levels: [
{},
{
r0: '15%',
r: '35%',
itemStyle: {
borderWidth: 2,
},
label: {
// rotate: 'tangential'
},
},
{
r0: '35%',
r: '70%',
label: {
align: 'right',
},
},
{
r0: '70%',
r: '72%',
label: {
position: 'outside',
padding: 3,
silent: false,
},
itemStyle: {
borderWidth: 3,
},
},
],
},
};