mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-07-06 06:48:12 +00:00
update
This commit is contained in:
@@ -14,3 +14,17 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { LegendOptions } from "@/types/dashboard";
|
||||
|
||||
export default function useLegendProcess() {
|
||||
function showEchartsLegend(keys: string[], legend?: LegendOptions) {
|
||||
if (keys.length === 1) {
|
||||
return false;
|
||||
}
|
||||
if (legend && legend.asTable) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return { showEchartsLegend };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user