Procházet zdrojové kódy

Merge branch 'need_pool323' into debug

shanbinzhang před 2 měsíci
rodič
revize
2367f8a046
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/hooks/chart/useChartRender.ts

+ 2 - 1
src/hooks/chart/useChartRender.ts

@@ -2353,13 +2353,14 @@ const setAxisPlotAreas = (axis: number, axisType: any = null) => {
       'middle': 0,
       'bottom': -10
     }
+    let text =  _.text.replace(/\n|\r\n/g, '<br/>');
 
     return {
       from: fromMarkerValue,
       to: toMarkerValue,
       color: _.color,
       label: {
-        text: _.text || "",
+        text,
         verticalAlign: _.textPosition,
         y: positionMapValue[_.textPosition],
         style: {