Преглед на файлове

Merge branch 'need_pool323'

shanbinzhang преди 1 седмица
родител
ревизия
a75cd56e2d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/hooks/chart/render.js

+ 2 - 1
src/hooks/chart/render.js

@@ -268,13 +268,14 @@ function setAxisPlotAreas(axis,axisType) {
             '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: {