You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/18 07:57:25 UTC

[GitHub] TomasDSD opened a new issue #9251: Problems with Echart Radar

TomasDSD opened a new issue #9251: Problems with Echart Radar
URL: https://github.com/apache/incubator-echarts/issues/9251
 
 
   Hello everyone, 
   
   I'm using Echarts Demo in order to produce a specific Radar Chart (with a json code), but i have several problems :
   
   - I want to add the "%" to all numbers (but not add the "%" in each values, maybe using "formatter")
   - I want to define the width and heigth of all text, avoiding the text leaves the screen
   - I want to define for all number for not showing decimals (I already use parseInt(), but i need a global configuration)
   
   Sorry, i'm not developper :)
   
   Can you help me please ? Thanks you !
   
   I use this link : https://ecomfe.github.io/echarts-examples/public/editor.html?c=radar, and i copy past the following code : 
   
   `option = {
       "tooltip": {},
       "legend": {
           "top": 0,
           "center": 0,
           "data": [
               "Initial",
               "Final"
           ]
       },
       "radar": {
           "indicator": [
               {
                   "max": 100,
                   "chapitre": "1",
                   "color": "#548235",
                   "niveau": "1",
                   "text": "text1text1text1text1text1text1text1text1"
               },
               {
                   "max": 100,
                   "chapitre": "2",
                   "color": "#00b067",
                   "niveau": "2",
                   "text": "text2text2text2text2text2text2text2text2"
               },
               {
                   "max": 100,
                   "chapitre": "3",
                   "color": "#9fbf65",
                   "niveau": "3",
                   "text": "text3"
               },
               {
                   "max": 100,
                   "chapitre": "4",
                   "color": "#0076d7",
                   "niveau": "4",
                   "text": "text4"
               },
               {
                   "max": 100,
                   "chapitre": "5",
                   "color": "#eb5740",
                   "niveau": "5",
                   "text": "text5text5text5text5text5text5text5text5"
               },
               {
                   "max": 100,
                   "chapitre": "6",
                   "color": "#cb0000",
                   "niveau": "6",
                   "text": "text6text6text6text6text6"
               }
           ]
       },
       "series": [
           {
               "type": "radar",
               "data": [
                   {
                       "name": "Initial",
                       "value": [
                          "0.00",
                          "50.83",
                          "54.31",
                          "60.83",
                          "57.33",
                          "43.33"
                       ],
                       "label": {
                           "normal": {
                               "show": true
                           }
                       },
                       "areaStyle": {
                           "normal": {
                           "opacity": 0.3,
                            
                           }
                       },
                        "lineStyle": {
                         "normal": {
                            "type": "dashed"
                           }
                       }
                   },
                   {
                       "name": "Final",
                       "symbol": "rect",
                       "symbolSize": 3,
                       "value": [
                           "0.00",
                           "53.75",
                           "58.89",
                           "54.00",
                           "60.00",
                           "65.00"
                       ],
                       
                       "label": {
                           "normal": {
                               "show": true,
                           }
                       },
                       "areaStyle": null
                       
                   }
                   
               ]
           }
       ]
   };`
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org