plotly / plotly/react-plotly.js
Can't react a 3d chart with react-plotly
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 4
説明
I am using "react-plotly.js": "^2.3.0", and plotly.js 1.45.3.
I am trying to recreate this graph in reactjs version 16.8.
But all the charts are 2d and i can't even see anything in the screen. (No errors there).
import React from 'react';
import Plot from 'react-plotly.js';
import graphData from '../../public/resources/3d-graph.json';
> class Graphs extends React.Component {
> render(){
> return(
> <Plot
> data={[
> {
> type: 'surface',
> x: graphData.x,
> y: graphData.y,
> z: graphData.z
> }
> ]}
> layout={
> {
> width: 800,
> height: 600,
> margin: {
> l: 50,
> r: 50,
> b: 80,
> t: 90,
> pad: 4
> },
> title: graphData.masterGraph.title,
> annotations: [{
> text: graphData.masterGraph.model,
> font: {
> size: 14,
> color: '#444444',
> },
> showarrow: false,
> align: 'center',
> x: 0.5,
> y: 1.1,
> xref: 'paper',
> yref: 'paper',
> }],
> scene: {
> xaxis: {
> title: graphData.masterGraph.xAxis,
> titlefont: {
> family: 'Courier New, monospace',
> size: 12,
> color: '#444444'
> }
> },
> yaxis: {
> title: graphData.masterGraph.yAxis,
> titlefont: {
> family: 'Courier New, monospace',
> size: 12,
> color: '#444444'
> }
> },
> zaxis: {
> title: graphData.masterGraph.zAxis,
> titlefont: {
> family: 'Courier New, monospace',
> size: 12,
> color: '#444444'
> }
> }
> }
> }
> }
> />
> )
> }
> }
>
> export default Graphs
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、react-plotly.js 2.3.0、plotly.js 1.45.3、React 16.8、およびインポートした3d-graph.jsonデータを使用して Graphs コンポーネントを再現します。surface trace と scene layout がどのように処理されるかを確認し、その後、3Dチャートがエラーなしで表示されることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100