Allow plotting on secondary y-axis

Offen
#1,272 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
38/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
rust, sql

Rechercherichtung

Start by finding the SQLPage graph component and how its query results are converted into plot series and axis options; the issue does not name files or tests. Then trace how component metadata such as ytitle is read and how series fields are interpreted. Done means supporting a secondary y-axis titled by ytitle2, with yaxis selecting the axis for each series; decide how to handle a series assigned to both axes.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Using SQL page for my reporting on DuckDB

I would like to create compact graphs that show data series that have different scales of numbers on different axis.

What I would like is something like this on the data:

SELECT 'graph' as component, 'Small Number' AS ytitle, 'Large Numbers' AS ytitle2;

SELECT 'foo' AS series, 1 AS x, 10 as y, 1 as yaxis 
UNION ALL
SELECT 'foo' AS series, 1 AS x, 20 as y, 1 as yaxis 
UNION ALL
SELECT 'bar' AS series, 1 AS x, 100000 as y, 2 as yaxis 
UNION ALL
SELECT 'bar' AS series, 1 AS x, 200000 as y, 2 as yaxis 

What I would now expect to happen is that the right side of the plot contains a secondary y-axis with 'Large Numbers' as the title and where the series 'bar' is plotted on that axis and series 'foo' is plotted on the first axis (titled: 'small number')

It can be an error to plot the same series on different y-axis - though that does not really have to be the case (the other choice is equally valid)

Vorherrschende Sprache
Rust
Sterne
2.6k
Forks
175
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
43

Entwicklungsumgebung

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 sqlpage/SQLPage

Alle Issues in sqlpage/SQLPage

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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