This commit is contained in:
parent
cfb9f0ab6c
commit
44f1e65d22
|
|
@ -674,7 +674,7 @@ function updateChartCounty() {
|
|||
// 背景条
|
||||
{
|
||||
type: 'bar',
|
||||
barWidth: 10,
|
||||
barWidth: 5,
|
||||
data: names.map(() => maxVal),
|
||||
barGap: '-100%',
|
||||
itemStyle: {
|
||||
|
|
@ -691,8 +691,8 @@ function updateChartCounty() {
|
|||
// 第一个主体条(供水温度)- 左侧柱子
|
||||
{
|
||||
type: 'bar',
|
||||
barWidth: 8, // 减小宽度
|
||||
barGap: '30%', // 设置柱子间距
|
||||
barWidth: 5, // 减小宽度
|
||||
barGap: '60%', // 设置柱子间距
|
||||
data: values1.map((val, index) => ({
|
||||
value: val,
|
||||
itemStyle: {
|
||||
|
|
@ -712,8 +712,8 @@ function updateChartCounty() {
|
|||
// 第二个主体条(回水温度)- 右侧柱子
|
||||
{
|
||||
type: 'bar',
|
||||
barWidth: 8, // 减小宽度
|
||||
barGap: '30%', // 设置柱子间距
|
||||
barWidth: 5, // 减小宽度
|
||||
barGap: '60%', // 设置柱子间距
|
||||
data: values2.map((val, index) => ({
|
||||
value: val,
|
||||
itemStyle: {
|
||||
|
|
@ -734,7 +734,7 @@ function updateChartCounty() {
|
|||
{
|
||||
type: 'pictorialBar',
|
||||
symbol: `image://${lqImg}`,
|
||||
symbolSize: [25, 25], // 减小图标大小
|
||||
symbolSize: [20, 20], // 减小图标大小
|
||||
symbolOffset: [11, -4], // 向左偏移,放在左侧柱子顶部
|
||||
symbolPosition: 'end',
|
||||
data: values1,
|
||||
|
|
@ -746,8 +746,8 @@ function updateChartCounty() {
|
|||
{
|
||||
type: 'pictorialBar',
|
||||
symbol: `image://${lqImg}`,
|
||||
symbolSize: [25, 25], // 减小图标大小
|
||||
symbolOffset: [13, 6], // 向右偏移,放在右侧柱子顶部
|
||||
symbolSize: [20, 20], // 减小图标大小
|
||||
symbolOffset: [13, 4], // 向右偏移,放在右侧柱子顶部
|
||||
symbolPosition: 'end',
|
||||
data: values2,
|
||||
z: 5,
|
||||
|
|
@ -757,7 +757,7 @@ function updateChartCounty() {
|
|||
// 第一个标签(供水温度)- 左侧标签
|
||||
{
|
||||
type: 'bar',
|
||||
barWidth: 8,
|
||||
barWidth: 5,
|
||||
data: values1.map(() => maxVal.toFixed(1)),
|
||||
itemStyle: { color: 'transparent' },
|
||||
label: {
|
||||
|
|
@ -765,7 +765,7 @@ function updateChartCounty() {
|
|||
position: 'right',
|
||||
distance: 40,
|
||||
fontSize: 16, // 减小字体大小
|
||||
offset: [-20, -20], // 添加偏移量
|
||||
offset: [-20, -10], // 添加偏移量
|
||||
align: 'left',
|
||||
color: '#ffffff',
|
||||
formatter: (params) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue