mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 19:55:24 +00:00
add tooltips for list charts
This commit is contained in:
parent
1c1c1fb7aa
commit
b095bf5b4c
@ -1,16 +0,0 @@
|
|||||||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License. -->
|
|
||||||
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path id="a" d="m10.472352 7.28232367c.3431062-.36783247.904419-.36783247 1.2592596-.00644059.3578153.36442148.3578153.95850784.0002156 1.28561559l-3.10532264 3.16826253c-.17025689.1734002-.39845625.2702388-.62654793.2702388-.24380864 0-.45151514-.0919745-.62697852-.2706782l-3.09835734-3.16693764c-.36405333-.352236-.36405333-.94614513-.01248284-1.28566765.34310619-.36783247.90441901-.36783247 1.25901327-.0066912l2.48658215 2.52737493z"/></svg>
|
|
Before Width: | Height: | Size: 1.3 KiB |
@ -1,17 +0,0 @@
|
|||||||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License. -->
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
||||||
<path d="M6.984 9.984h10.031l-5.016 5.016z"></path>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 922 B |
@ -1,18 +0,0 @@
|
|||||||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License. -->
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
||||||
<title>keyboard_control</title>
|
|
||||||
<path d="M12 9.984q0.797 0 1.406 0.609t0.609 1.406-0.609 1.406-1.406 0.609-1.406-0.609-0.609-1.406 0.609-1.406 1.406-0.609zM18 9.984q0.797 0 1.406 0.609t0.609 1.406-0.609 1.406-1.406 0.609-1.406-0.609-0.609-1.406 0.609-1.406 1.406-0.609zM6 9.984q0.797 0 1.406 0.609t0.609 1.406-0.609 1.406-1.406 0.609-1.406-0.609-0.609-1.406 0.609-1.406 1.406-0.609z"></path>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.2 KiB |
@ -1,18 +0,0 @@
|
|||||||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License. -->
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
||||||
<title>library_add</title>
|
|
||||||
<path d="M18.984 11.016v-2.016h-3.984v-3.984h-2.016v3.984h-3.984v2.016h3.984v3.984h2.016v-3.984h3.984zM20.016 2.016q0.797 0 1.383 0.586t0.586 1.383v12q0 0.797-0.586 1.406t-1.383 0.609h-12q-0.797 0-1.406-0.609t-0.609-1.406v-12q0-0.797 0.609-1.383t1.406-0.586h12zM3.984 6v14.016h14.016v1.969h-14.016q-0.797 0-1.383-0.586t-0.586-1.383v-14.016h1.969z"></path>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.2 KiB |
@ -165,7 +165,7 @@ span.collapse {
|
|||||||
|
|
||||||
.menu-control {
|
.menu-control {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 8px;
|
top: 7px;
|
||||||
left: 200px;
|
left: 200px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s linear;
|
transition: all 0.2s linear;
|
||||||
|
@ -311,7 +311,7 @@ const msg = {
|
|||||||
keywordsOfContentLogTips:
|
keywordsOfContentLogTips:
|
||||||
"Current storage of SkyWalking OAP server does not support this.",
|
"Current storage of SkyWalking OAP server does not support this.",
|
||||||
setEvent: "Set Event",
|
setEvent: "Set Event",
|
||||||
viewAttributes: "View Attributes",
|
viewAttributes: "View",
|
||||||
serviceEvents: "Service Events",
|
serviceEvents: "Service Events",
|
||||||
select: "Select",
|
select: "Select",
|
||||||
eventID: "Event ID",
|
eventID: "Event ID",
|
||||||
|
@ -310,7 +310,7 @@ const msg = {
|
|||||||
"只有core/default/searchableLogsTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
|
"只有core/default/searchableLogsTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
|
||||||
keywordsOfContentLogTips: "SkyWalking OAP服务器的当前存储不支持此操作",
|
keywordsOfContentLogTips: "SkyWalking OAP服务器的当前存储不支持此操作",
|
||||||
setEvent: "设置事件",
|
setEvent: "设置事件",
|
||||||
viewAttributes: "实例属性",
|
viewAttributes: "查看",
|
||||||
serviceEvents: "服务事件",
|
serviceEvents: "服务事件",
|
||||||
select: "选择",
|
select: "选择",
|
||||||
eventID: "事件ID",
|
eventID: "事件ID",
|
||||||
|
@ -139,5 +139,5 @@ pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-icon.menu-icons {
|
.el-icon.menu-icons {
|
||||||
margin-right: 8px !important;
|
margin-top: -3px !important;
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,7 @@ export interface LineConfig extends AreaConfig {
|
|||||||
step?: boolean;
|
step?: boolean;
|
||||||
showXAxis?: boolean;
|
showXAxis?: boolean;
|
||||||
showYAxis?: boolean;
|
showYAxis?: boolean;
|
||||||
|
smallTips?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AreaConfig {
|
export interface AreaConfig {
|
||||||
|
@ -320,7 +320,7 @@ export default defineComponent({
|
|||||||
.vue-grid-item:not(.vue-grid-placeholder) {
|
.vue-grid-item:not(.vue-grid-placeholder) {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0px 1px 4px 0px #00000029;
|
box-shadow: 0px 1px 4px 0px #00000029;
|
||||||
border-radius: 5px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-layout {
|
.tab-layout {
|
||||||
|
@ -53,7 +53,12 @@ limitations under the License. -->
|
|||||||
v-if="config.metricTypes[index] === 'readMetricsValues'"
|
v-if="config.metricTypes[index] === 'readMetricsValues'"
|
||||||
:data="{ [metric]: scope.row[metric] }"
|
:data="{ [metric]: scope.row[metric] }"
|
||||||
:intervalTime="intervalTime"
|
:intervalTime="intervalTime"
|
||||||
:config="{ showXAxis: false, showYAxis: false }"
|
:config="{
|
||||||
|
showXAxis: false,
|
||||||
|
showYAxis: false,
|
||||||
|
smallTips: true,
|
||||||
|
showSymbol: true,
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
v-else
|
v-else
|
||||||
@ -204,7 +209,7 @@ watch(
|
|||||||
@import "./style.scss";
|
@import "./style.scss";
|
||||||
|
|
||||||
.chart {
|
.chart {
|
||||||
height: 39px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputs {
|
.inputs {
|
||||||
|
@ -53,7 +53,12 @@ limitations under the License. -->
|
|||||||
v-if="config.metricTypes[index] === 'readMetricsValues'"
|
v-if="config.metricTypes[index] === 'readMetricsValues'"
|
||||||
:data="metric ? { [metric]: scope.row[metric] } : {}"
|
:data="metric ? { [metric]: scope.row[metric] } : {}"
|
||||||
:intervalTime="intervalTime"
|
:intervalTime="intervalTime"
|
||||||
:config="{ showXAxis: false, showYAxis: false }"
|
:config="{
|
||||||
|
showXAxis: false,
|
||||||
|
showYAxis: false,
|
||||||
|
smallTips: true,
|
||||||
|
showSymbol: true,
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
v-else
|
v-else
|
||||||
@ -255,7 +260,7 @@ watch(
|
|||||||
@import "./style.scss";
|
@import "./style.scss";
|
||||||
|
|
||||||
.chart {
|
.chart {
|
||||||
height: 40px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputs {
|
.inputs {
|
||||||
|
@ -39,6 +39,7 @@ const props = defineProps({
|
|||||||
opacity: 0.4,
|
opacity: 0.4,
|
||||||
showXAxis: true,
|
showXAxis: true,
|
||||||
showYAxis: true,
|
showYAxis: true,
|
||||||
|
smallTips: false,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -79,7 +80,7 @@ function getOption() {
|
|||||||
name: i,
|
name: i,
|
||||||
type: "line",
|
type: "line",
|
||||||
symbol: "circle",
|
symbol: "circle",
|
||||||
symbolSize: 8,
|
symbolSize: 6,
|
||||||
showSymbol: props.config.showSymbol,
|
showSymbol: props.config.showSymbol,
|
||||||
step: props.config.step,
|
step: props.config.step,
|
||||||
smooth: props.config.smooth,
|
smooth: props.config.smooth,
|
||||||
@ -141,20 +142,31 @@ function getOption() {
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return {
|
const tooltip = {
|
||||||
color,
|
|
||||||
tooltip: {
|
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
zlevel: 1000,
|
|
||||||
z: 60,
|
|
||||||
backgroundColor: "rgb(50,50,50)",
|
backgroundColor: "rgb(50,50,50)",
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontSize: 13,
|
fontSize: 12,
|
||||||
color: "#ccc",
|
color: "#ccc",
|
||||||
},
|
},
|
||||||
enterable: true,
|
enterable: true,
|
||||||
extraCssText: "max-height: 300px; overflow: auto; border: none",
|
extraCssText: "max-height: 300px; overflow: auto; border: none;",
|
||||||
|
};
|
||||||
|
const tips = {
|
||||||
|
formatter(params: any) {
|
||||||
|
return `${params[0].value[1]}`;
|
||||||
},
|
},
|
||||||
|
extraCssText: `height: 20px; padding:0 2px;`,
|
||||||
|
trigger: "axis",
|
||||||
|
textStyle: {
|
||||||
|
fontSize: 12,
|
||||||
|
color: "#333",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
color,
|
||||||
|
tooltip: props.config.smallTips ? tips : tooltip,
|
||||||
legend: {
|
legend: {
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
show: keys.length === 1 ? false : true,
|
show: keys.length === 1 ? false : true,
|
||||||
|
@ -65,7 +65,12 @@ limitations under the License. -->
|
|||||||
v-if="config.metricTypes[index] === 'readMetricsValues'"
|
v-if="config.metricTypes[index] === 'readMetricsValues'"
|
||||||
:data="{ [metric]: scope.row[metric] }"
|
:data="{ [metric]: scope.row[metric] }"
|
||||||
:intervalTime="intervalTime"
|
:intervalTime="intervalTime"
|
||||||
:config="{ showXAxis: false, showYAxis: false }"
|
:config="{
|
||||||
|
showXAxis: false,
|
||||||
|
showYAxis: false,
|
||||||
|
smallTips: true,
|
||||||
|
showSymbol: true,
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
v-else
|
v-else
|
||||||
@ -288,7 +293,7 @@ watch(
|
|||||||
@import "./style.scss";
|
@import "./style.scss";
|
||||||
|
|
||||||
.chart {
|
.chart {
|
||||||
height: 39px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputs {
|
.inputs {
|
||||||
|
@ -86,7 +86,7 @@ export default defineComponent({
|
|||||||
.vue-grid-item:not(.vue-grid-placeholder) {
|
.vue-grid-item:not(.vue-grid-placeholder) {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0px 1px 4px 0px #00000029;
|
box-shadow: 0px 1px 4px 0px #00000029;
|
||||||
border-radius: 5px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-grid-item.active {
|
.vue-grid-item.active {
|
||||||
|
Loading…
Reference in New Issue
Block a user