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();