sxmpasch commented on issue #9251: Problems with Echart Radar
URL: 
https://github.com/apache/incubator-echarts/issues/9251#issuecomment-430974430
 
 
   you could use one of the typical word wrapping algorithms by yourself. For 
this, you could add one  of these specific javascript libraries - or if this is 
too complicated - define a simple algorithm on your own:
   Add this code to the radar.name { } area (w is the desired with in letters):
   `
           formatter: function (value, indicator) {
               w=30;
               t=value.split(' ');
                        l=0;
                        o='';
               for (var tw of t) {
                                if (l+tw.length >= w) {
                                        o += (l?'\n':'')+tw+' ';
                                        l=tw.length+1;
                                } else {
                                  o += tw+' '
                                  l += tw.length+1;
                                }
               }
               return o;
           }
   `

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to