You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plotly: a theme's line interpolation overrides an explicit interpolate: "linear" #149
With a theme that sets its own line interpolation (Cartoon: monotone, De Stijl: step), a Line Chart whose chartProperties ask for interpolate: "linear" is drawn curved or stepped on Plotly. Other curves are kept, and Vega-Lite keeps all three.
The Line Chart template always sets line.shape ('linear' when no curve is asked for), so the theme can't tell an explicit linear from no choice. Connected Scatter avoids this with _preserveLineShape. Perhaps the Line Chart template could set that flag when chartProperties.interpolate is given, or leave line.shape unset when it isn't.
Why it matters to me
I let people pick a curve (straight, smooth, steps) for lab results over time, and a theme on top of that. Straight matters there: it doesn't suggest values between readings that were never measured.
Fixed by #152, released in 1.0.1: the Plotly theme now fills in a line shape only when the chart didn't choose one, and the Line Chart template sets line.shape only when chartProperties.interpolate is given. Re-checked against current dev with the reproduction above: interpolate: "linear" stays linear under cartoon and de-stijl, monotone gives spline and step-after gives hv under every theme, and with no interpolate the house's own curve applies. Thanks for the clear report!
Activity
Chenglong-MS commentedon Oct 21, 2026
Fixing it here: #152
Glad you catch it!
Chenglong-MS commentedon Nov 15, 2026
Fixed by #152, released in 1.0.1: the Plotly theme now fills in a line shape only when the chart didn't choose one, and the Line Chart template sets
line.shapeonly whenchartProperties.interpolateis given. Re-checked against currentdevwith the reproduction above:interpolate: "linear"stayslinearundercartoonandde-stijl,monotonegivessplineandstep-aftergiveshvunder every theme, and with nointerpolatethe house's own curve applies. Thanks for the clear report!build: take flint-chart 1.1.0, which keeps a straight Plotly line und…