gerson
2024-08-11 b2b8e5ed16f139597b10452df0c467b6e7cde500
miniprogram/components/chat-components/summary/recordset/recordset.ts
@@ -95,7 +95,21 @@
        tooltip: {
          textStyle: {
            fontSize: BASE_CHART_FONT_SIZE
          }
          },
          position: function(point, params, dom, rect, size){
            let x = point[0],
                y = point[1],
                viewWidth = size.viewSize[0],
                boxWidth = size.contentSize[0],
                posX = 0;
            if(x + boxWidth > viewWidth){
                posX = x - boxWidth;
            }else{
                posX = x;
            }
            return [posX,y];
        },
        },
        legend: {
          top: 19,
@@ -237,7 +251,8 @@
        this.chartInstance = echarts.init(canvas, null, {
          width: width,
          height: height,
          devicePixelRatio: dpr // new
          devicePixelRatio: dpr, // new
          locale:'ZH'
        })
        this.drawChart();