plotly / plotly/react-plotly.js

There are no properties to use when using typeScript.

Open
#247 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
138
Avg merge
3d 2h
Merged PRs (30d)
4

Description

When using histogram charts, there are xbins properties but no ybins properties.

data={[
          {
            type: 'histogram',
            text: chartText,
            histfunc: 'sum',
            x,
            y,
            ybins: {
              start: y[y.length - 6],
              end: y[y.length - 1],
              size: 1
            }
          }
        ]}

ybins

data={[
          {
            type: 'histogram',
            text: chartText,
            histfunc: 'sum',
            x,
            y,
            ybins: {
              start: y[y.length - 6],
              end: y[y.length - 1],
              size: 1
            }
          } as Data
        ]} 

I defined the as data and solved it temporarily.

Plotdata type ybins and PlotDatum type label etc There are a few missing attributes.

(Below is an image of a problem with the label attribute.)

plotly onClick
plotly onClick3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the TypeScript declarations for PlotData, PlotDatum, and Data, then compare the histogram properties and label usage shown in the issue. The work is done when ybins, label, and the other reported attributes are represented accurately and the examples type-check without casts; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.