ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Echarts 设置柱状图固定背景

    Aug 17, 202214 min read
    option = {
      yAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
      },
      xAxis: {
        type: 'value'
      },
      series: [
        {
          data: [120, 200, 150, 80, 70, 110, 130],
          type: 'bar',
          itemStyle:{
            borderRadius:20,
          },
          showBackground: true,
          backgroundStyle: {
            color: 'red',
            borderRadius:20,
          }
        }
      ]
    };
    

    查看效果

    相关文章

    RUN apk add --no-cache gcc musl-dev

    在Alpine Linux和Docker镜像中,使用轻量级、安全的`musl`库替代`glibc`可以减小镜像大小并提高安全性和可靠性。

    Go 使用第三方库实现消息队列功能

    在Golang中,可以使用如RabbitMQ、NSQ和Kafka等第三方库实现消息队列功能,并通过相应的Go语言库进行交互。

    supabase 的免费额度说明

    Supabase provides 2 free projects with features including up to 500MB database storage, 1GB file storage, 2GB bandwidth, 50MB file uploads, Social OAuth integration, 50,000 monthly active users, 500K Edge Function invocations, 1-day log retention, and community support.

    Vue3 Tree shaking 原理

    Vue3利用ES6模块的静态编译特性进行Tree shaking,通过判断模块和变量的使用情况删除未引用代码,从而减少程序体积和执行时间,优化未来架构。

    Dart 委托模式的案例Demo

    在Dart中,委托模式通过接口和具体解析器的实现,允许日志处理器灵活地处理不同格式的日志,提高了代码的扩展性和维护性。