Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

EDA - histogram app constraints allow an integer ordinal but back end only allows continuous

Offen
#254 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
r

Rechercherichtung

Start with the histogram xAxisVariable constraints shown in the issue and the backend validation reported by validateHistogramPD. Compare the accepted variable shapes with the Rserve error for an integer ordinal Study year, then verify that the constraint and backend agree and that the histogram rejects or handles the variable consistently.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

production site and dev
GEMS 1
visualisation
histogram
x = Study year

image

Rserve log

2024-03-22 11:37:35.852115 Value is set to `count`. Resulting histogram object will represent counts of unique x-axis bins per group.
Error in validateHistogramPD(.histo, verbose) : 
  The independent axis must be continuous for a histogram.

Variable metadata. (type=integer, shape=ordinal)

image

apps constraints for pass->histogram

{
	"0": {
		"name": "histogram",
		"displayName": "Histogram",
		"description": "Visualize the distribution of a continuous variable",
		"projects": [
			"ClinEpiDB",
			"MicrobiomeDB"
		],
		"maxPanels": 1,
		"dataElementConstraints": [
			{
				"xAxisVariable": {
					"isRequired": true,
					"minNumVars": 1,
					"maxNumVars": 1,
					"allowedTypes": [
						"number",
						"date",
						"integer"
					],
					"description": "Variable must be a number or date."
				},
				"facetVariable": {
					"isRequired": false,
					"minNumVars": 1,
					"maxNumVars": 2,
					"maxNumValues": 10,
					"description": "Variable(s) must have 10 or fewer unique values and be of the same or a parent entity as the Overlay variable."
				},
				"overlayVariable": {
					"isRequired": false,
					"minNumVars": 1,
					"maxNumVars": 1,
					"maxNumValues": 8,
					"description": "Variable must have 8 or fewer unique values and be of the same or a parent entity as the X-axis variable."
				}
			}
		],
		"dataElementDependencyOrder": [
			[
				"xAxisVariable"
			],
			[
				"overlayVariable",
				"facetVariable"
			]
		]
	}
}

Seems that it should also be allowedShapes: [ 'continuous' ], ?

Vorherrschende Sprache
R
Sterne
1
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus VEuPathDB/plot.data

Alle Issues in VEuPathDB/plot.data

Ähnliche Issues

Weitere Issues zu R

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.