Comments (2)
This isn’t currently technically possible because the stack transform computes extents for each value (y1–y2); the total across the entire stack isn’t accessible. And also stacks are diverging with negative values, so would you want to plot the minimum value too? Or only if it isn’t zero? That feels too niche to me.
You can plot the total value if you use the group or bin transform (instead of stack), but then you lose the per-series value, and also you’d have two tips simultaneously visible.
Plot.lineY(
pulsed_eviction_rate,
Plot.binX(
{ y: "sum", reverse: cumulative === "normal" },
{
x: "date",
interval: "day",
y: "count",
curve: "step",
cumulative: cumulative === "cumulative",
tip: true,
inset: 0
}
)
),
I can’t think of a way to show both the series value and the total value.
from plot.
thanks for your consideration!
from plot.
Related Issues (20)
- The interval option for line and area perhaps should round down rather than center HOT 1
- Save / export stand-alone SVG-file with legend
- Density reducer
- Disabling the stroke channel from the tooltip does not work for Plot.line() HOT 1
- tip: true is not working on vue3 ssr HOT 1
- Download option for embedded plot HOT 3
- Bug: areaY tip/pointer position wrong for stacked data
- remove the dark mode toggle? HOT 2
- The group & bin transform sort option should support descending shorthand
- Stack overlapping, non-aligned intervals? HOT 2
- Position of the axis label with `labelAnchor: right` HOT 5
- Documentation page about axis mark turns empty if an interactive selection is made HOT 2
- tree and gradient
- All tests using jsdom fail with node >= 21
- lineWidth is not working for text inside hover text (tip mark) HOT 2
- Inverted Y axis with zero: true HOT 1
- ensure an axis has at least two ticks
- Interval scale produces wrong ticks and labels
- How to set numeric tick interval?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plot.