Getting Aw Snap Error for following code snippet
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript, react
研究方向
重現所提供的 React 直方圖程式碼片段,並在專案支援的環境中確認「Aw Snap」故障。payload 未指定原始檔案或測試,因此首先定位渲染入口以及現有的直方圖或錯誤處理測試;完成的標準是找出觸發原因,並新增一項不再導致當機的回歸檢查。
由索引模型根據 Issue 內容生成。
描述
import React from 'react'
import Plot from 'react-plotly.js';
export default function Histogram() {
const data = [{
"type": "histogram",
"x": [0, 21000000, 0, 200, 0, 0, 0, 600000],
"xbins": {
"size": 1
}
}]
const style = {
"width": "600px",
"height": "330px"
}
const layout = {
"margin": {
"t": 30
},
"xaxis": {
"showline": true,
"mirror": true,
"linewidth": 2,
"tickangle": 45,
"automargin": true,
"title": {
"standoff": 20,
"text": "feature_na e",
}
},
"yaxis": {
"showline": true,
"mirror": true,
"linewidth": 2,
"tickangle": 0,
"automargin": true,
"title": {
"standoff": 20,
"text": "Frequency",
}
}
}
const renderPlot = () => {
try {
return (
<Plot
data={data}
style={style}
layout={layout}
onError={(error) => console.log('Error message: ', error)}
/>
)
} catch (ex) {
console.log(ex)
return (<p>No Plot</p>)
}
}
return (
<div>
{renderPlot()}
</div>
);
}
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 138
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/react-plotly.js 的其他 Issue
-
P3 plotly-internal size: 1 task
難度 3/5 1-2 天 新手友好度 45/100
plotly/react-plotly.js#386 ·
-
難度 4/5 3-5 天 新手友好度 48/100
plotly/react-plotly.js#358 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
plotly/react-plotly.js#354 ·
-
難度 3/5 1-2 天 新手友好度 30/100
plotly/react-plotly.js#353 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
plotly/react-plotly.js#352 · 1 則留言 ·
查看 plotly/react-plotly.js 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
riverqueue/river#1576 ·
維護者通常 1 天內回覆
-
documentation good first issue
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
good first issue help wanted
難度 1/5 1 小時以內 新手友好度 88/100
modrollstudio/Modroll-Studio-Website#80 · 1 則留言 ·
維護者通常 1 天內回覆
-
good first issue help wanted
難度 2/5 1-3 小時 新手友好度 85/100
mafzalkalwardev/mailforge#21 ·
-
good first issue help wanted
難度 1/5 1 小時以內 新手友好度 82/100