HTTP/2 200
date: Wed, 23 Jul 2025 16:19:08 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/lobehub/lobe-charts.git
etag: W/"92219b2134b2b4742ad8921ac69310ed"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=dlIhFN2p%2BHXQsoKDXSAWq06NwKioSm0BHQXIvVxn%2FN9zgAQ01wzbA01aHlK4%2BsT%2F5w0cUtkhQKW2I9BKK3ew18X5Ph%2BHCn4a2wZkX3iZvcFUb1gsVPsYNhM8kNorS0AblL7OlgFJ9XlDedjp4e7MTPvc%2F7VRr4%2Bog6OohsORqKrfdWQvdZj6uVVBIm4Kitg37a79tTnCQpy6myv1YjtLMJOh7u%2BcOtt0r2wx7Jtls4mmLmeC7EZDm1PQ8%2F5Qm2adCYkEUb%2FHyqJr1KeoSyo5Og%3D%3D--p3kAld1EOY8xq20X--JiXWucP4K0coSVzcewhy6A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1326917207.1753287547; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 16:19:07 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 16:19:07 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8918:39062F:E7F7B0:1123244:68810B7B
🐛 fix: Fix Chart in React 19 · lobehub/lobe-charts@c248945 · GitHub
File tree Expand file tree Collapse file tree 11 files changed +5
-18
lines changed Expand file tree Collapse file tree 11 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ export default () => {
78
78
value : 900 ,
79
79
} ,
80
80
autoMinValue : false ,
81
- barCategoryGap : 10 ,
82
81
connectNulls : false ,
83
82
enableLegendSlider : false ,
84
83
intervalType : {
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const AreaChart = forwardRef<HTMLDivElement, AreaChartProps>((props, ref) => {
84
84
xAxisLabel,
85
85
yAxisLabel,
86
86
width = '100%' ,
87
- height = '20rem' ,
87
+ height = 280 ,
88
88
style,
89
89
customCategories,
90
90
...rest
@@ -188,7 +188,6 @@ const AreaChart = forwardRef<HTMLDivElement, AreaChartProps>((props, ref) => {
188
188
dataKey = { index }
189
189
dy = { rotateLabelX ?. verticalShift }
190
190
fill = ""
191
- height = { rotateLabelX ?. xAxisHeight }
192
191
hide = { ! showXAxis }
193
192
interval = { startEndOnly ? 'preserveStartEnd' : intervalType }
194
193
minTickGap = { tickGap }
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ export default () => {
41
41
< h4 > Number of species threatened with extinction (2021)</ h4 >
42
42
< BarChart
43
43
categories = { [ 'Number of threatened species' ] }
44
- className = "mt-6"
45
44
data = { data }
46
45
index = "name"
47
46
valueFormatter = { valueFormatter }
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export default () => {
55
55
} ,
56
56
maxValue : 1000 ,
57
57
minValue : 0 ,
58
- relative : false ,
59
58
showAnimation : false ,
60
59
showGridLines : true ,
61
60
showLegend : true ,
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const BarChart = forwardRef<HTMLDivElement, BarChartProps>((props, ref) => {
76
76
yAxisLabel,
77
77
className,
78
78
width = '100%' ,
79
- height = '20rem' ,
79
+ height = 280 ,
80
80
style,
81
81
...rest
82
82
} = props ;
@@ -183,7 +183,6 @@ const BarChart = forwardRef<HTMLDivElement, BarChartProps>((props, ref) => {
183
183
domain = { yAxisDomain as AxisDomain }
184
184
dy = { rotateLabelX ?. verticalShift }
185
185
fill = ""
186
- height = { rotateLabelX ?. xAxisHeight }
187
186
hide = { ! showXAxis }
188
187
minTickGap = { tickGap }
189
188
stroke = ""
@@ -215,7 +214,6 @@ const BarChart = forwardRef<HTMLDivElement, BarChartProps>((props, ref) => {
215
214
dataKey = { index }
216
215
dy = { rotateLabelX ?. verticalShift }
217
216
fill = ""
218
- height = { rotateLabelX ?. xAxisHeight }
219
217
hide = { ! showXAxis }
220
218
interval = { startEndOnly ? 'preserveStartEnd' : intervalType }
221
219
minTickGap = { tickGap }
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ export default () => {
16
16
const props : FunnelChartProps | any = useControls (
17
17
{
18
18
barGap : '20%' ,
19
- enableLegendSlider : false ,
20
19
evolutionGradient : true ,
21
20
gradient : false ,
22
21
showArrow : true ,
23
22
showGridLines : true ,
24
- showLegend : true ,
25
23
showTooltip : true ,
26
24
showXAxis : true ,
27
25
showYAxis : true ,
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ const FunnelChart = forwardRef<HTMLDivElement, FunnelChartProps>((props, ref) =>
115
115
barGap = '20%' ,
116
116
loading,
117
117
width = '100%' ,
118
- height = '20rem' ,
118
+ height = 280 ,
119
119
className,
120
120
style,
121
121
yAxisWidth,
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ export default () => {
78
78
value : 900 ,
79
79
} ,
80
80
autoMinValue : false ,
81
- barCategoryGap : 10 ,
82
81
connectNulls : false ,
83
82
enableLegendSlider : false ,
84
83
intervalType : {
@@ -91,7 +90,6 @@ export default () => {
91
90
showTooltip : true ,
92
91
showXAxis : true ,
93
92
showYAxis : true ,
94
- stack : false ,
95
93
startEndOnly : false ,
96
94
tickGap : {
97
95
step : 1 ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const LineChart = forwardRef<HTMLDivElement, LineChartProps>((props, ref) => {
78
78
xAxisLabel,
79
79
yAxisLabel,
80
80
width = '100%' ,
81
- height = '20rem' ,
81
+ height = 280 ,
82
82
style,
83
83
customCategories,
84
84
loading,
@@ -184,7 +184,6 @@ const LineChart = forwardRef<HTMLDivElement, LineChartProps>((props, ref) => {
184
184
dataKey = { index }
185
185
dy = { rotateLabelX ?. verticalShift }
186
186
fill = ""
187
- height = { rotateLabelX ?. xAxisHeight }
188
187
hide = { ! showXAxis }
189
188
interval = { startEndOnly ? 'preserveStartEnd' : intervalType }
190
189
minTickGap = { tickGap }
Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ export default () => {
160
160
showTooltip : true ,
161
161
showXAxis : true ,
162
162
showYAxis : true ,
163
- stack : false ,
164
163
startEndOnly : false ,
165
164
tickGap : {
166
165
step : 1 ,
You can’t perform that action at this time.
0 commit comments