Absolute spacing between facets
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- javascript
- Área
- data-visualization
Línea de trabajo
Comienza con la documentación sobre facet scales y discrete scales enlazada en el issue y, a continuación, compara el ejemplo vertical-bars usando fy.padding con diferentes alturas. Define cómo debería comportarse un espacio de tamaño fijo cuando cambien las dimensiones de las facetas y verifica que el caso de uso con x-axis repetido conserve el espacio solicitado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Status Quo
Currently the spacing between facets needs to be set via the implied band scale’s padding option. [1] However, that option only allows adjusting the spacing relative to the band width (or height). [2]
Motivation
For my use case, I’d like to reserve some space between the facets to repeat the x axis between them. Since I know the amount of space the tick labels will need, I’d like to instruct Plot to leave a gap of a certain fixed size.
Problem
With the current API I need to guess the amount of space Plot will use for a single facet and find a fraction that will leave an appropriate amount of space. If Plot decides that a facet should be larger (in the examples below I forced bigger facets), then my space is at risk of being too small or too large.
Examples
The examples are based on [3].
Appropriate spacing
Plot.plot({
fy: {
padding: .15
},
marks: [
Plot.barY(brands, {
x: "name",
y: "value",
fy: (d, i) => i % 3,
}),
Plot.axisX({
facetAnchor: null,
})
],
})
Excessive spacing
Plot.plot({
fy: {
padding: .15
},
marks: [
Plot.barY(brands, {
x: "name",
y: "value",
fy: (d, i) => i % 3,
}),
Plot.axisX({
facetAnchor: null,
})
],
height: 1000,
})
[1] https://observablehq.com/plot/features/facets#facet-scales
[2] https://observablehq.com/plot/features/scales#discrete-scales
[3] https://observablehq.com/@observablehq/plot-vertical-bars-rotated-labels
- Lenguaje dominante
- HTML
- Estrellas
- 5.4k
- Forks
- 246
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de observablehq/plot
-
[Types] Wrong recursion in Mark’s _tip_ optionQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
observablehq/plot#2459 · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
observablehq/plot#2453 ·
-
Inconsistent type definition of _scale_._transform_Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
observablehq/plot#2451 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
observablehq/plot#2447 · 2 comentarios ·
-
Channel documentation with a section describing zQuizá libre de nuevo @LeonxLJX la tomó hace 37 días y no hay ningún pull request abierto. Abiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
observablehq/plot#1533 · 3 comentarios · 1 reacción ·
Todos los issues de observablehq/plot
Issues similares
-
Tracking: Submit errors aren't tracked in the transaction flowPosiblemente ocupada @oceans404 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
stellar/laboratory#2212 ·
Los mantenedores suelen responder en 4 días
-
[Bug]: `graphify export svg` writes a graph.svg that is not well-formed XML when a label contains a control characterPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Graphify-Labs/graphify#4241 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Netflo]: Data volume unites for netflow Top-N Dashboard are shown in bytes it should be in MB,GBAbiertoIntegration:netflow needs:triage Team:Integration-Experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
elastic/integrations#21920 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ai-discovered area: data explorer
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100