echarts自定义鼠标移上去显示,自定义图例,自定义x轴显示

 提示:记录一下echarts常用配置,以免后期忘记

1.自定义鼠标移上去效果

tooltip: {

            show: true,

            trigger: "axis",

            axisPointer: {

                type: "shadow",//默认自定义效果

            },

            // //自定义鼠标移上去效果

            formatter: (v) => {

                console.log("打印一下====", v);

                const value1 = v[0].data;

                const value2 = v[1].data;

                const value3 = v[2].data;

                return `<div>

                <span>物资数量: ${value1}</span><br />

                <span>用户量: ${value2}</span><br />

                <span>闭环率: ${value3}%</span><br />

            </div>`;

            },

        },

2.自定义图例

代码如下:

 legend: {

            textStyle: { fontSize: 16, color: "#fff" },

            itemWidth: 25,

            itemHeight: 15,

            itemGap: 15,

            right: "5%", //位置

            selectedMode: false,

            data: [

                {

                    name: "物资数量",

                    //icon: "triangle", //官方默认的形状可选择  'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'

                    icon: `image://${tips2}`, //自定义图片图例

                    itemStyle: {

                        color: "#64D8D8",

                    },

                    textStyle: {

                        color: "#A9C0FF",

                    },

                },

                {

                    name: "用户量",

                    // icon: 'rect',

                    icon: `image://${tips3}`,

                    itemStyle: {

                        color: "#FFAE37",

                    },

                    textStyle: {

                        color: "#A9C0FF",

                    },

                },

                {

                    name: "闭环率",

                    // icon: 'rect',

                    icon: `image://${tips1}`,

                    itemStyle: {

                        color: "red",

                    },

                    textStyle: {

                        color: "#A9C0FF",

                    },

                },

            ],

        },

3.自定义X轴样式

 xAxis: {

            type: "category",

            data: xData,

            axisLine: {

                show: true, // 显示/隐藏X轴轴线

                lineStyle: {

                    color: "#CBCDDD", //x线距离

                    shadowColor: "#CBCDDD", //阴影颜色

                    shadowOffsetX: "20", //阴影水平方向上的偏移距离

                },

            },

            splitLine: {

                show: false,

            },

            axisTick: {

                show: false, // 显示/隐藏X轴刻度

            },

            axisLabel: {

                margin: 10, //距离x轴线的距离

                fontSize: 16,

                textStyle: {

                    color: "#89C3DD", //X轴文字颜色

                },

            },

        },

4.Y轴数值刻度自定义 

  yAxis: {

            type: 'value',

            scale: true, //根据数据自适应最大值最小值

            //min: 0,//设置最小值

            // max: 100,//设置最大值

            // interval: 20,//设置间隔

            // nameTextStyle: {

            //   color: '#122167',

            //   fontSize: 12,

            // }

          },

5.监听屏幕大小变化 ,echarts适配

// echarts适配

const echartResize = () => {

    chart.resize(); // 适配窗口大小

};

 // 监听事件

    window.addEventListener("resize", echartResize);

// 解绑事件

    window.removeEventListener("resize", echartResize); 

具体代码:

<template>
    <div class="chart" id="Chart"></div>
</template>

<script setup>
import { onMounted, ref, reactive,onBeforeUnmount } from "vue";
import * as echarts from "echarts";
import tips1 from "@/assets/imgs/tips_line.png";
import tips2 from "@/assets/imgs/tips_green.png";
import tips3 from "@/assets/imgs/tips_orange.png";

//定义一个全局echarts
let chart = ref(null);

//生命周期
onMounted(() => {
    initCharts();
});
// echarts适配
const echartResize = () => {
    chart.resize(); // 适配窗口大小
};
const initCharts = () => {
    var chartDom = document.getElementById("Chart");
    chart = echarts.init(chartDom);
    // 绘制左侧面
    const CubeLeft = echarts.graphic.extendShape({
        shape: {
            x: 0,
            y: 0,
        },
        buildPath: function (ctx, shape) {
            // 会canvas的应该都能看得懂,shape是从custom传入的
            const xAxisPoint = shape.xAxisPoint;
            const c0 = [shape.x, shape.y];
            const c1 = [shape.x - 18, shape.y - 10];
            const c2 = [xAxisPoint[0] - 18, xAxisPoint[1] - 9];
            const c3 = [xAxisPoint[0], xAxisPoint[1]];
            ctx.moveTo(c0[0], c0[1])
                .lineTo(c1[0], c1[1])
                .lineTo(c2[0], c2[1])
                .lineTo(c3[0], c3[1])
                .closePath();
        },
    });
    // 绘制右侧面
    const CubeRight = echarts.graphic.extendShape({
        shape: {
            x: 0,
            y: 0,
        },
        buildPath: function (ctx, shape) {
            const xAxisPoint = shape.xAxisPoint;
            const c1 = [shape.x, shape.y];
            const c2 = [xAxisPoint[0], xAxisPoint[1]];
            const c3 = [xAxisPoint[0] + 18, xAxisPoint[1] - 9];
            const c4 = [shape.x + 18, shape.y - 9];
            ctx.moveTo(c1[0], c1[1])
                .lineTo(c2[0], c2[1])
                .lineTo(c3[0], c3[1])
                .lineTo(c4[0], c4[1])
                .closePath();
        },
    });
    // 绘制顶面
    const CubeTop = echarts.graphic.extendShape({
        shape: {
            x: 0,
            y: 0,
        },
        buildPath: function (ctx, shape) {
            const c1 = [shape.x, shape.y];
            const c2 = [shape.x + 18, shape.y - 9];
            const c3 = [shape.x, shape.y - 18];
            const c4 = [shape.x - 18, shape.y - 10];
            ctx.moveTo(c1[0], c1[1])
                .lineTo(c2[0], c2[1])
                .lineTo(c3[0], c3[1])
                .lineTo(c4[0], c4[1])
                .closePath();
        },
    });
    // 注册三个面图形
    echarts.graphic.registerShape("CubeLeft", CubeLeft);
    echarts.graphic.registerShape("CubeRight", CubeRight);
    echarts.graphic.registerShape("CubeTop", CubeTop);

    // 绘制左侧面
    const CubeLeft1 = echarts.graphic.extendShape({
        shape: {
            x: 0,
            y: 0,
        },
        buildPath: function (ctx, shape) {
            // 会canvas的应该都能看得懂,shape是从custom传入的
            const xAxisPoint = shape.xAxisPoint;
            const c0 = [shape.x, shape.y];
            const c1 = [shape.x + 30, shape.y - 10];
            const c2 = [xAxisPoint[0] + 30, xAxisPoint[1] - 9];
            const c3 = [xAxisPoint[0], xAxisPoint[1]];
            ctx.moveTo(c0[0] + 48, c0[1])
                .lineTo(c1[0], c1[1])
                .lineTo(c2[0], c2[1])
                .lineTo(c3[0] + 48, c3[1])
                .closePath();
        },
    });
    // 绘制右侧面
    const CubeRight1 = echarts.graphic.extendShape({
        shape: {
            x: 0,
            y: 0,
        },
        buildPath: function (ctx, shape) {
            const xAxisPoint = shape.xAxisPoint;
            const c1 = [shape.x, shape.y];
            const c2 = [xAxisPoint[0], xAxisPoint[1]];
            const c3 = [xAxisPoint[0] + 66, xAxisPoint[1] - 9];
            const c4 = [shape.x + 66, shape.y - 9];
            ctx.moveTo(c1[0] + 48, c1[1])
                .lineTo(c2[0] + 48, c2[1])
                .lineTo(c3[0], c3[1])
                .lineTo(c4[0], c4[1])
                .closePath();
        },
    });
    // 绘制顶面
    const CubeTop1 = echarts.graphic.extendShape({
        shape: {
            x: 0,
            y: 0,
        },
        buildPath: function (ctx, shape) {
            const c1 = [shape.x + 48, shape.y];
            const c2 = [shape.x + 66, shape.y - 9];
            const c3 = [shape.x + 48, shape.y - 18];
            const c4 = [shape.x + 30, shape.y - 10];
            ctx.moveTo(c1[0], c1[1])
                .lineTo(c2[0], c2[1])
                .lineTo(c3[0], c3[1])
                .lineTo(c4[0], c4[1])
                .closePath();
        },
    });
    // 注册三个面图形
    echarts.graphic.registerShape("CubeLeft1", CubeLeft1);
    echarts.graphic.registerShape("CubeRight1", CubeRight1);
    echarts.graphic.registerShape("CubeTop1", CubeTop1);

    const xData = ["5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"];
    const VALUE = [2336, 1914, 1685, 1584, 1410, 1042, 844, 1149];
    const VALUE1 = [2326, 1901, 1664, 1354, 1020, 624, 324, 186];
    const option = {
        backgroundColor: "#012366",
        tooltip: {
            show: true,
            trigger: "axis",
            axisPointer: {
                type: "shadow", //默认自定义效果
            },
            // //自定义鼠标移上去效果
            formatter: (v) => {
                console.log("打印一下====", v);
                const value1 = v[0].data;
                const value2 = v[1].data;
                const value3 = v[2].data;
                return `<div>
                <span>物资数量: ${value1}</span><br />
                <span>用户量: ${value2}</span><br />
                <span>闭环率: ${value3}%</span><br />
            </div>`;
            },
        },
        grid: {
            top: "15%",
            bottom: "10%",
            left: "8%",
            right: "10%",
            containLabel: false, //true防止标签溢出  false依据坐标轴来对齐的,可能会有内容溢出
        },
        legend: {
            textStyle: { fontSize: 16, color: "#fff" },
            itemWidth: 25,
            itemHeight: 15,
            itemGap: 15,
            right: "5%", //位置
            selectedMode: false,
            data: [
                {
                    name: "物资数量",
                    //icon: "triangle", //官方默认的形状可选择  'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'
                    icon: `image://${tips2}`, //自定义图片图例
                    itemStyle: {
                        color: "#64D8D8",
                    },
                    textStyle: {
                        color: "#A9C0FF",
                    },
                },
                {
                    name: "用户量",
                    // icon: 'rect',
                    icon: `image://${tips3}`,
                    itemStyle: {
                        color: "#FFAE37",
                    },
                    textStyle: {
                        color: "#A9C0FF",
                    },
                },
                {
                    name: "闭环率",
                    // icon: 'rect',
                    icon: `image://${tips1}`,
                    itemStyle: {
                        color: "red",
                    },
                    textStyle: {
                        color: "#A9C0FF",
                    },
                },
            ],
        },
        xAxis: {
            type: "category",
            data: xData,
            axisLine: {
                show: true, // 显示/隐藏X轴轴线
                lineStyle: {
                    color: "#CBCDDD", //x线距离
                    shadowColor: "#CBCDDD", //阴影颜色
                    shadowOffsetX: "20", //阴影水平方向上的偏移距离
                },
            },
            splitLine: {
                show: false,
            },
            axisTick: {
                show: false, // 显示/隐藏X轴刻度
            },
            axisLabel: {
                margin: 10, //距离x轴线的距离
                fontSize: 16,
                textStyle: {
                    color: "#89C3DD", //X轴文字颜色
                },
            },
        },
        yAxis: [
            {
                type: "value",
                axisLine: {
                    show: true,
                    lineStyle: {
                        color: "#CBCDDD",
                    },
                },
                splitLine: {
                    lineStyle: {
                        color: "#414B82",
                        type: "dashed", //虚线
                    },
                    show: true, // 显示/隐藏
                },
                axisTick: {
                    show: false,
                },
                axisLabel: {
                    fontSize: 16,
                },
            },
            {
                type: "value",
                nameTextStyle: {
                    color: "#ebf8ac",
                },
                position: "right",
                splitLine: {
                    show: false,
                },
                axisTick: {
                    show: false,
                },
                axisLabel: {
                    show: true,
                    fontSize: 16,
                    formatter: "{value} %", //右侧Y轴文字显示
                    textStyle: {
                        color: "#CBCDDD",
                    },
                    margin: 22, //刻度标签与轴线之间的距离。
                },
                boundaryGap: ["20%", "20%"],
            },
        ],
        series: [
            {
                name: "物资数量",
                type: "custom",
                renderItem: (params, api) => {
                    const location = api.coord([api.value(0), api.value(1)]);
                    return {
                        type: "group",
                        children: [
                            {
                                type: "CubeLeft",
                                shape: {
                                    api,
                                    xValue: api.value(0),
                                    yValue: api.value(1),
                                    x: location[0],
                                    y: location[1],
                                    xAxisPoint: api.coord([api.value(0), 0]),
                                },
                                style: {
                                    fill: new echarts.graphic.LinearGradient(
                                        0,
                                        0,
                                        0,
                                        1,
                                        [
                                            {
                                                offset: 0,
                                                color: "#00E2D9",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 0.5,
                                                color: "#047586",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 1,
                                                // color: '#49BEE5',
                                                // color: 'transparent',
                                                color: "#053671",
                                            },
                                        ]
                                    ),
                                },
                            },
                            {
                                type: "CubeRight",
                                shape: {
                                    api,
                                    xValue: api.value(0),
                                    yValue: api.value(1),
                                    x: location[0],
                                    y: location[1],
                                    xAxisPoint: api.coord([api.value(0), 0]),
                                },
                                style: {
                                    fill: new echarts.graphic.LinearGradient(
                                        0,
                                        0,
                                        0,
                                        1,
                                        [
                                            {
                                                offset: 0,
                                                color: "#00E2D9",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 0.5,
                                                color: "#047586",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 1,
                                                // color: '#49BEE5',
                                                // color: 'transparent',
                                                color: "#053671",
                                            },
                                        ]
                                    ),
                                },
                            },
                            {
                                type: "CubeTop",
                                shape: {
                                    api,
                                    xValue: api.value(0),
                                    yValue: api.value(1),
                                    x: location[0],
                                    y: location[1],
                                    xAxisPoint: api.coord([api.value(0), 0]),
                                },
                                style: {
                                    fill: new echarts.graphic.LinearGradient(
                                        0,
                                        0,
                                        0,
                                        1,
                                        [
                                            {
                                                offset: 0,
                                                color: "#04CDD3",
                                            },
                                            {
                                                offset: 1,
                                                color: "#0A99C5",
                                            },
                                        ]
                                    ),
                                },
                            },
                        ],
                    };
                },
                data: VALUE,
            },

            {
                name: "用户量",
                type: "custom",
                renderItem: (params, api) => {
                    const location = api.coord([api.value(0), api.value(1)]);
                    return {
                        type: "group",
                        children: [
                            {
                                type: "CubeLeft1",
                                shape: {
                                    api,
                                    xValue: api.value(0),
                                    yValue: api.value(1),
                                    x: location[0],
                                    y: location[1],
                                    xAxisPoint: api.coord([api.value(0), 0]),
                                },
                                style: {
                                    fill: new echarts.graphic.LinearGradient(
                                        0,
                                        0,
                                        0,
                                        1,
                                        [
                                            {
                                                offset: 0,
                                                color: "#FFAE37",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 0.5,
                                                color: "#DBA65C",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 1,
                                                // color: '#49BEE5',
                                                // color: 'transparent',
                                                color: "#584D5D",
                                            },
                                        ]
                                    ),
                                },
                            },
                            {
                                type: "CubeRight1",
                                shape: {
                                    api,
                                    xValue: api.value(0),
                                    yValue: api.value(1),
                                    x: location[0],
                                    y: location[1],
                                    xAxisPoint: api.coord([api.value(0), 0]),
                                },
                                style: {
                                    fill: new echarts.graphic.LinearGradient(
                                        0,
                                        0,
                                        0,
                                        1,
                                        [
                                            {
                                                offset: 0,
                                                color: "#FFAE37",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 0.5,
                                                color: "#DBA65C",
                                                // color: 'transparent',
                                            },
                                            {
                                                offset: 1,
                                                // color: '#49BEE5',
                                                // color: 'transparent',
                                                color: "#584D5D",
                                            },
                                        ]
                                    ),
                                },
                            },
                            {
                                type: "CubeTop1",
                                shape: {
                                    api,
                                    xValue: api.value(0),
                                    yValue: api.value(1),
                                    x: location[0],
                                    y: location[1],
                                    xAxisPoint: api.coord([api.value(0), 0]),
                                },
                                style: {
                                    fill: new echarts.graphic.LinearGradient(
                                        0,
                                        0,
                                        0,
                                        1,
                                        [
                                            {
                                                offset: 0,
                                                color: "#DD5F6D",
                                            },
                                            {
                                                offset: 1,
                                                color: "#DE5F6E",
                                            },
                                        ]
                                    ),
                                },
                            },
                        ],
                    };
                },
                data: VALUE1,
            },

            {
                name: "闭环率",
                type: "line",
                smooth: false, //是否平滑
                showAllSymbol: true,
                symbol: "circle",
                yAxisIndex: 1,
                symbolSize: 12,
                lineStyle: {
                    normal: {
                        color: "#0091FF",
                        width: 2,
                    },
                },
                zlevel: 1,
                label: {
                    show: false,
                    position: "top",
                    textStyle: {
                        color: "#6c50f3",
                    },
                },
                itemStyle: {
                    color: "#0091FF",
                    borderColor: "#fff",
                    borderWidth: 3,
                },
                areaStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(
                            0,
                            0,
                            0,
                            1,
                            [
                                {
                                    offset: 0,
                                    color: "rgba(2 ,68, 157,0.6)",
                                },
                                {
                                    offset: 1,
                                    color: "rgba(3 ,36 ,117,0.3)",
                                },
                            ],
                            false
                        ),
                        shadowColor: "#0091FF", //折线图下的背景颜色
                        shadowBlur: 6,
                    },
                },
                data: [
                    "18.63",
                    "37.42",
                    "52.19",
                    "64.55",
                    "71.3",
                    "75.47",
                    "78.44",
                    "82.01",
                ],
            },
        ],
    };

    option && chart.setOption(option);
    // 监听事件
    window.addEventListener("resize", echartResize);
};
//销毁
onBeforeUnmount(() => {
    // 解绑事件
    window.removeEventListener("resize", echartResize);
});
</script>

<style scoped>
.chart {
    width: 90%;
    height: 400px;
    margin-top: 20px;
}
</style>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/273404.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

【Git-IDEA】在 IDEA 中使用 Git(clone、pull、push、merge、建立本地分支与远程分支的连接)

【Git-IDEA】在 IDEA 中使用 Git&#xff08;clone、pull、push、merge、建立本地分支与远程分支的连接&#xff09; 1&#xff09;Gitee2&#xff09;配置 Git3&#xff09;初始化本地仓库4&#xff09;连接远程仓库5&#xff09;clone5.1.方式一5.2.方式二 6&#xff09;分支…

C++面试宝典第10题:绘制各种图形

题目 我们需要编写一个图形相关的应用程序,并处理大量图形(Shape)信息,图形有矩形(Rectangle)、正方形(Square)、圆形(Circle)等种类。应用程序需要计算这些图形的面积,并且可能需要在某个设备上进行显示(使用在标准输出上打印信息的方式作为示意)。 (1)请使用面…

网安面试三十道题(持续更新)

91 mof提权 ## 是mysql的提权方式&#xff0c;在Linux下不能用&#xff0c;就是利用了 c:/windows/system32/wbem/mof/目录下的nullevt.mof文件&#xff0c;每分钟都会在一个特定的时间去执行一次的特征 sql语句&#xff1a; ## 通过shell上传这个文件&#xff0c;通过sql语句写…

利用Milvus Cloud和LangChain构建机器人:一种引人入胜且通俗易懂的方法

一、引言 机器人已经深入我们的日常生活&#xff0c;从家庭服务到工业生产&#xff0c;再到医疗和运输等领域。然而&#xff0c;这些机器人往往需要复杂的算法和数据处理技术才能有效地执行任务。在这个过程中&#xff0c;人工智能&#xff08;AI&#xff09;和机器学习&#…

uniapp 手持弹幕全端实现(微信/QQ小程序 + APP)

见下述效果图,本文话少纯干货 代码实现 <template><view class="main"

网络编程第五天

IO多路复用实现TCP服务器和客户端 运行结果&#xff1a; select实现TCP服务器&#xff1a; #include <myhead.h>#define PORT 8888 //1024~49151 #define IP "192.168.170.126" //ifconfig本机IPint deal_cli_connect(int sfd,struct sockaddr_in *pcin…

【产品经理】Axure原型工具教程

笔记为项目总结笔记&#xff0c;若有错误欢迎指出哟~ Axure原型工具教程 Axure简介原型图分类常用操作常用原件常用交互母版常用设备分辨率 Axure简介 Axure是一款专业的原型设计与交互设计软件&#xff0c;可以帮助用户快速创建高保真的原型和交互设计。Axure支持多种常见的交…

添加调试日志,bug消失

参考&#xff1a;就删了个printf&#xff0c;代码崩了&#xff01; 1、运行报错代码 #include "stdio.h" #include "stdlib.h" #include "string.h"void func1() {int arr[10];memset(arr, 1, sizeof(arr)); }void func2() {int index;int* ar…

ArcGIS渔网的多种用法

在ArcGIS中有一个渔网工具&#xff0c;顾名思义&#xff0c;可以用来创建包含由矩形像元所组成网络的要素类。不太起眼&#xff0c;但它的用途却有很多&#xff0c;今天跟大家分享一篇关于渔网的多种用途。 1.马赛克地图制作 2.基于网格的设施密度统计制作马赛克地图 准备材…

怎么使用jupter notebook并配置环境变量

有的时候需要使用Jupyter Notebook运行代码&#xff0c;Jupyter Notebook的主要特点&#xff1a; ① 编程时具有语法高亮、缩进、tab补全的功能。 ② 可直接通过浏览器运行代码&#xff0c;同时在代码块下方展示运行结果。 ③ 以富媒体格式展示计算结果。富媒体格式包括&…

抖店商品卡不出单做不起来?抖店玩法解读+经验分享,建议收藏

我是王路飞。 目前抖店最常见的出单玩法&#xff0c;一个是商品卡&#xff08;自然流量&#xff09;&#xff0c;一个是找达人带货。 新手喜欢商品卡的原因就是“流量免费”&#xff0c;但同样不止一个新手向我反映过&#xff0c;商品卡真的不好出单&#xff0c;还有风险&…

B055-Maven IDEA UML

目录 Maven简介安装与配置Maven常用命令Maven导包导入项目到eclipsepom.xml介绍查找jar包网址eclipse中使用maven命令&#xff1a; eclipse创建maven项目修改jdk版本eclipse创建maven web项目配置阿里云镜像仓库 IDEA简介安装idea创建java项目idea基本配置删除项目idea创建Mave…

十大数据分析工具排行榜出炉

成功的数据分析师不仅要具有一定的资格和教育&#xff0c;还必须精通一些特定的工具。尤其是在数据采集&#xff0c;数据清理&#xff0c;数据仓库&#xff0c;数据分析&#xff0c;以及数据可视化方面。 近几年&#xff0c;数据驱动对IT创新和企业业务发展都有好处&#xff0…

创新科技赋能,易点易动设备管理系统助力企业实现设备管理升级

在当今竞争激烈的商业环境中&#xff0c;企业对设备管理的要求越来越高。高效的设备管理不仅可以提高生产效率&#xff0c;降低成本&#xff0c;还可以确保设备安全和可靠性。然而&#xff0c;传统的手工管理方式已经无法满足企业快速发展的需求。为了解决这一问题&#xff0c;…

浅谈互联网架构演变

更好的阅读体验 \large{\color{red}{更好的阅读体验}} 更好的阅读体验 前言 可以将某个项目或产品的架构体系按照如下方式分层&#xff1a; 业务层面&#xff1a;项目业务体系技术层面&#xff1a; 数据架构&#xff1a;数据持久层策略应用架构&#xff1a;应用层的实现方式 …

阿里云日志表盘配置-图上展示想要的名称

一、背景 目前写出的一些表盘都是_col这种字段展示的&#xff0c;下次来看表盘的时候都不知道是什么意思了&#xff0c;所以想要将_col可视化一些&#xff0c;记录一下在这个阶段学到的知识。主要是阿里云日志在使用 AS起别名的时候会报错。 二、操作和遇到的注意问题点 我写…

基于openGauss5.0.0全密态数据库等值查询小案例

基于openGauss5.0.0全密态数据库等值查询小案例 一、全密态数据库简介二、环境说明三、测试步骤四、使用约束 一、全密态数据库简介 价值体现&#xff1a; 密态数据库意在解决数据全生命周期的隐私保护问题&#xff0c;使得系统无论在何种业务场景和环境下&#xff0c;数据在传…

解决Pycharm pip安装模块太慢问题,pycharm2022没有manage repositories配置镜像源

解决方案 方法清华阿里云中国科技大学华中理工大学 或者直接-i 加镜像 方法 URL写下面任意一个 清华 https://pypi.tuna.tsinghua.edu.cn/simple阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/华中理工大学 http:/…

postman高级用法

背景 在项目开发的过程中&#xff0c;少不了对接口的调用和对自己编写的接口进行自测&#xff0c;或者测试同学用来做接口测试用 问题 请求头&#xff1a;key:authenticationTokenvalue:获取token接口获取的token/external-data/guoyin-iot-platform-external-data-center/man…

如何解决mac无法访问github

确定github能访问的ip地址 点击检测按钮&#xff0c;找到比较快的ip 修改hosts文件&#xff1a;打开终端&#xff0c;输入 open /etc/hosts 后回车&#xff0c;打开mac的文本编辑器 add github.com 140.82.121.4 github.com 199.232.69.194 github.global.ssl.fastly.net …
最新文章