Problems with Echart Radar
See original GitHub issueHello 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
}
]
}
]
};`
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top GitHub Comments
It WORK ! BIG THANKS @sxmpasch
hey @TomasDSD could you help me on this one? i am stuck on the same issue.