plotly / plotly/plotly.js

add histograms on splom diagonals

Abierto
#6,991 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

feature P3
Lenguaje dominante
JavaScript
Estrellas
18.3k
Forks
2k
Merge medio
2 d 12 h
PR fusionados (30 d)
28

Descripción

Several other implementations of splom allow for a different plot type on the diagonal - which makes sense because the diagonal subplots are always just diagonal lines of points. What we really want is a simple view of the distribution of that one dimension in each diagonal subplot. For my current purposes the best view would be a histogram, and I suspect implementing only that would be a well-received improvement, but eventually box and violin could also be nice additions.

We anticipated this feature with a comment in #2555 and with a comment in the attributes for splom:

https://github.com/plotly/plotly.js/blob/f0fef6fe8c1c37786dcc9789bb60576073d2d0b7/src/traces/splom/attributes.js#L143-L158

That comment I think is right, trace.diagonal.type sets the trace type for all of the diagonal subplots, then we add more attributes into trace.diagonal that mirror the attributes available to histogram (and the other trace types if we add those). For histograms, trace.diagonal.marker.color should be inherited from trace.marker.color (and maybe similar with marker.line.width and marker.line.width?)

In addition, each dimension should be able to override everything about its own diagonal subplot, so trace.dimensions[i].diagonal should accept all the same options as trace.diagonal.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con el comentario y los atributos referenciados en src/traces/splom/attributes.js y, a continuación, sigue cómo se configuran los subplots diagonales de splom. Define la compatibilidad con histogramas mediante trace.diagonal, incluido el color de marcador heredado, y las anulaciones por dimensión mediante trace.dimensions[i].diagonal. La tarea estará terminada cuando los subplots diagonales puedan mostrar histogramas con esas rutas de configuración funcionando.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
data-visualization
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.