'How do I change the style of the inner part enclosed by the lines(polar) chart created with highcharts?
Space within the yellow lines I would also like to fill it up with yellow color: chart image
Solution 1:[1]
Just use area series type instead of line:
chart: {
polar: true
},
series: [{
type: 'area',
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
}]
Live demo: http://jsfiddle.net/BlackLabel/67oxc5pt/
Solution 2:[2]
Radar charts in Python with Plotly
For a filled line in a Radar Chart, update the figure created with px.line_polar with fig.update_traces
import plotly.express as px
import pandas as pd
df = pd.DataFrame(dict(
r=[5, 4, 3, 1, 3],
theta=['Social','Tech','Environmental',
'Economical', 'Cultural']))
fig = px.line_polar(df, r='r', theta='theta', line_close=True)
fig.update_traces(fill='toself')
fig.show()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ppotaczek |
| Solution 2 | Mohammed Shammeer |
