1:坐标定位画一个框区分流向效果
let dataLists = [
{
name: '111',
symbol: "",
symbolSize: [40, 20],
label: {
color: '#53B5EA',
position: 'bottom',
},
value: [240, 0],
x: 200,
y: 500,
fixed: true,
category: 1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{
offset: 0,
color: '#ffb402',
},
{
offset: 1,
color: '#ffdc84',
},
]),
},
},
},
{
name: '222',
symbol: "",
symbolSize: [40, 20],
label: {
color: '#53B5EA',
position: 'bottom',
},
value: [105, 50],
x: 200,
y: 500,
fixed: true,
category: 1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{
offset: 0,
color: '#ffb402',
},
{
offset: 1,
color: '#ffdc84',
},
]),
},
},
},
{
name: '333',
symbol: "",
symbolSize: [40, 20],
label: {
color: '#53B5EA',
position: 'bottom',
},
value: [105, 110],
x: 200,
y: 500,
fixed: true,
category: 1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{
offset: 0,
color: '#ffb402',
},
{
offset: 1,
color: '#ffdc84',
},
]),
},
},
},
{
name: "444", symbol: "", value: [105, 180], symbolSize: [10, 10] },
{
name: "555", symbol: "", value: [40, 180], symbolSize: [10, 10] },
{
name: "666", symbol: "", value: [170, 180], symbolSize: [10, 10] },
{
name: '888',
symbol: "",
symbolSize: [40, 20],
label: {
color: '#53B5EA',
position: 'bottom',
},
value: [40, 330],
x: 200,
y: 500,
fixed: true,
category: 1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{
offset: 0,
color: '#ffb402',
},
{
offset: 1,
color: '#ffdc84',
},
]),
},
},
},
{
name: '777',
deviceType: "ZONGHE",
symbol: "",
symbolSize: [40, 20],
label: {
color: '#53B5EA',
position: 'bottom',
},
value: [40, 230],
x: 200,
y: 500,
fixed: true,
category: 1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{
offset: 0,
color: '#ffb402',
},
{
offset: 1,
color: '#ffdc84',
},
]),
},
},
},
{
name: '999',
deviceType: "CAIJI",
symbol: "",
symbolSize: [40, 20],
label: {
color: '#53B5EA',
position: 'bottom',
},
value: [170, 230],
x: 170,
y: 230,
fixed: true,
category: 1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{
offset: 0,
color: '#ffb402',
},
{
offset: 1,
color: '#ffdc84',
},
]),
},
},
},
{
name: "1010", symbol: "", value: [170, 270], symbolSize: [10, 10] },
{
name: "1111", symbol: "", value: [110, 270]