Skip to content

fix(appkit-ui): chart and DataTable correctness, layout and API fixes - #753

Closed
NikolaP454 wants to merge 151 commits into
databricks:mainfrom
NikolaP454:chart-and-datatable-fixes
Closed

NikolaP454 wants to merge 151 commits into
databricks:mainfrom
NikolaP454:chart-and-datatable-fixes

Conversation

@NikolaP454

Copy link
Copy Markdown

Summary

Correctness, layout and API fixes for the @databricks/appkit-ui charts and DataTable. Most of these were cases where a chart silently drew the wrong thing (an empty chart, nulls drawn as 0, a typo'd yKey drawn as a zero line, dates a day early west of UTC) instead of rendering the data or saying what was wrong.

Charts: correctness (all users)

  • The x axis type comes from the xKey values, not the column name; new xType override. A column named like period or created_time no longer gives an empty chart.
  • An xKey, yKey or yAxisKey that is not in the rows shows an error state instead of a flat zero line.
  • DATE strings and Arrow DATE columns are read as the viewer's calendar day; zone-less timestamps as wall-clock times. JS Date values are treated as time.
  • Category values are never rewritten or re-sorted (numeric-looking categories kept their order and text).
  • An Arrow Table passed as data renders on every chart type. Arrow rows keep DECIMAL scale and DATE/TIMESTAMP types when they reach a transformer or DataTable.
  • options is deep-merged into the built option (and may be a function); an explicit empty series: [] still replaces the built series.
  • The option is replaced on update, so removed series, legend entries and axes disappear, while the reader's zoom range and hidden legend entries are kept.
  • stacked stacks vertical bars; stacked tooltips show a total of the stacked series only.
  • onDataClick returns the source row and the original x value (it returned an empty name or an epoch on date axes).
  • Pie, donut and radar show an error for negative values and the empty state for all-zero data. The heatmap sorts its axes, sums repeated cells and validates its keys.
  • Charts get an accessible name by default; colors accepts var(--token) theme values.

Charts: layout

  • Labels, legends and titles fit the space they have: truncation to available width, overlap hiding or every-nth thinning on category, time and value axes, staggered reference-line labels, room reserved for value labels and titles, bounded legend width.
  • Pie/donut legend placement by size, clamped donut hole, centerLabel sized to the hole. Radar rim per metric when scales differ, fewer rings on small charts.
  • className heights are honoured, and a chart keeps its minimum height.
  • Tick and label number formatting keeps small values and drops float noise.

Charts: new props

defaults="v3" (opt-in for behaviour-changing defaults: gaps for missing values with connectNulls, orientation picked from the data, straight lines, compact ticks with full-value tooltips, 300 px default height, pie legend with share), seriesKey for long rows, referenceLines, zoom, showValues, per-series series type with a second y axis (combo charts), sparkline, radar max and metrics, heatmap columnKey/rowKey/valueKey aliases, xType.

DataTable

  • New data and columns props, so it works without a query. Non-identifier column keys are kept.
  • Cells are formatted by column type, never by column name. Numbers no longer go through the chart's compact formatter (10021 showed as "10K", null as "0"). Boolean cells read "true"/"false" text and 0/1.
  • Headers align with the column type; sort direction and aria-sort are shown; defaultSort; number columns that arrive as text sort by value.
  • New toolbar (search across columns), onRowClick, onSelectionChange (cleared when data is replaced), maxHeight, per-column truncate, and columns sized to content. Headers stay on an empty result; the page is kept when an inline transform re-runs. Query parameters are optional.

Breaking changes

Two commits carry a BREAKING CHANGE footer, so the breaking-change check needs the allow-breaking-change label if you accept them:

  • LineChart and AreaChart no longer accept orientation. It rendered bars; use BarChart for horizontal bars.
  • transformer is typed (rows: ChartRow[]) => ChartRow[]. Arrow results reach it as plain rows, not an Arrow Table, so one transformer works for both formats.

Other behaviour changes outside defaults="v3": the x-axis type rule, error states for unknown keys, options deep merge, and DataTable cell formatting.

Bundle size

@databricks/appkit-ui grows: tarball 500 KB (+104 KB), ./react entry 66 KB gzipped (+15 KB, +29.0%). The bundle-size check will report it over budget. @databricks/appkit is unchanged (±1 KB).

Test plan

Run locally on Node 24 (CI pins 22):

  • pnpm run check (oxlint + oxfmt): pass
  • pnpm run typecheck: pass
  • pnpm test: 357 files passed, 1 skipped; 6808 tests passed, 1 skipped
  • pnpm build, pnpm --filter=dev-playground typecheck:database, tsx tools/verify-database-bundle.ts: pass
  • pnpm run generate:types and pnpm run sync:template: no drift
  • pnpm run knip, pnpm run check:licenses, tsx tools/check-template-deps.ts, tsx tools/check-template-lock-registry.ts: pass
  • commitlint --from main: pass
  • tsx tools/bundle-size.ts --compare: appkit-ui over budget (see above)

Each fix has a unit test that fails without it.

Review: security pass found no issues (tooltip HTML formatters escape data, no prototype pollution through options merge); adversarial and code-review findings were fixed in the last 17 fix: commits.

Not run locally: Playwright integration tests, template deploy-shape smoke tests, and the prerelease template artifact job.

This pull request and its description were written by Isaac.

NikolaP454 and others added 30 commits December 1, 2026 20:40
…defaults

Adds the ChartDefaults type and a `defaults` prop on every chart. Later commits gate
defaults that change how a correct chart looks behind `defaults="v3"`; bug fixes apply
without it.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Time-axis mode was decided from every column and from column names, so a measure named
avg_response_time, an unused previous_period column or any extra DATE column put a
category chart on a time axis and drew nothing. Date fields are now detected from their
values only, and the axis type comes from the resolved xKey column (Arrow temporal types
count as time). A new xType prop (time, category or value) overrides the inference; value
plots x on a numeric axis.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…irst row

Fixed by C1: the axis type comes from all xKey values. YYYY-MM strings are categories
under month and period alike, epoch numbers get the same axis under ts and timestamp, and
a null in the first row no longer turns a date column into categories. Epoch numbers stay
categories (pass xType="time" to plot them as dates).

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Fixed by C1: date columns are detected from values, not names, so rows of customer,
monthly_spend and uptime_pct put customer on x instead of uptime_pct.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
With only one of xKey and yKey given, the other was auto-detected and could be the same
column, which drew a y = x diagonal. A key the caller gave is now excluded when the other
axis is detected, in both the JSON and Arrow paths.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
… in the rows

A key that was not in the data drew a flat zero series with no error or warning.
BaseChart now checks the given keys against the Arrow schema or the row keys, renders an
error state in the chart box that names the unknown keys and lists the available ones,
and logs it with console.error. The check is a generic helper (unknownKeysMessage) so
other charts can reuse it.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…d connectNulls

Null, undefined and empty-string measures were drawn as 0 in every chart type, so a line
dropped to 0 on missing days and a heatmap labelled a missing cell 0. With defaults="v3"
they now stay null through the JSON and Arrow paths (ArrowClient.extractChartData gains
an optional keepNulls), so lines get a gap, bars get no bar and heatmaps an empty cell
that no longer pulls the color scale to 0. A connectNulls prop (default false) on line
and area charts draws across gaps. Without v3 the old behaviour is unchanged.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Scatter handled missing values four ways: a null y was drawn at 0, a null x dropped the
point, an empty-string y became 0 and a text y dropped the point. Scatter now keeps nulls
through normalization and drops any point whose x or y is missing or not a number.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
A heatmap value that is not a number ("high", true, "1,234.5") became 0 and pulled the
color scale's minimum to 0. Such cells are now left empty, excluded from min and max, and
a single console.warn names the value field and the first bad value.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…dates without a time

"2026-01-01" was parsed as UTC midnight and rendered in local time, so viewers west of
UTC saw every point a day early and the tooltip read 2025-12-31 16:00:00. A DATE string
(YYYY-MM-DD, no time) is now built as local midnight, so it is the same calendar day for
every viewer, and impossible dates such as 2026-02-31 are rejected. When every x value is
a DATE, the tooltip header shows the date without a time. Tested with
TZ=America/Los_Angeles.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…ATE values

One parser applied three timezone rules: DATE strings as UTC, zone-less timestamps (the
Spark default) in the viewer's zone through engine-dependent Date.parse, and Z timestamps
as absolute instants, so a DATE column and a DATE_TRUNC column disagreed for a US viewer.
Zone-less timestamps (space or T separator, optional fractional seconds) are now parsed
explicitly as wall-clock times in the viewer's zone, matching DATE values from C6; only
values with Z or an offset are absolute. Tested with TZ=America/Los_Angeles.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
… as time

Horizontal bars with a date xKey put epoch milliseconds on the category axis, and JS Date
objects in rows became "Wed Dec 31 ..." category strings. Date objects are now time
values (a time axis, sorted), and when time values sit on a category axis (horizontal
bars) the labels and the tooltip header are formatted as YYYY-MM-DD, with HH:mm when the
data has a time of day.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Category values that looked like numbers or dates were rewritten and re-sorted: "007",
"010", "003" became 3, 7, 10, years were sorted ascending whatever the row order (until
an Other row switched sorting off), and dates used as pie slice names or radar metrics
showed as epoch milliseconds, so selected="007" matched nothing. Only a numeric axis
(xType="value") is sorted now; category values keep their text and row order. Pie, donut
and radar normalize x as categories unless xType is given.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…values

Long rows (date, category, value), the shape SQL returns, could not be plotted: passed as
they were they drew a sawtooth and a tooltip with the same name repeated. A seriesKey
prop now pivots long rows during normalization: yKey is the single value column and each
distinct seriesKey value becomes a series in first-appearance order; a missing
combination is 0, or a gap with defaults="v3". Works for JSON and Arrow data. Bar, line
and area charts without seriesKey now console.warn when an x value repeats, pointing at
seriesKey. seriesKey is also checked by the unknown-key error state.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…row loading

An Arrow Table passed as data failed with "Failed to render chart" on every chart but the
heatmap: field detection read Arrow type ids that were only initialized when a query
result was fetched as Arrow. The type id sets now initialize on first use from the fixed
Arrow Type ids (ARROW_TYPE_IDS, checked against apache-arrow in a test), so detection and
extraction work on a Table the app built itself.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
transformer was typed <T>(data: T) => T, so it could not reshape rows without casts. It
is now ChartTransformer, (rows: ChartRow[]) => ChartRow[], on chart props, ChartWrapper
and useChartData. Arrow results are passed to it as plain rows, so one transformer works
for both formats. Renaming DataTable's transform prop to match is left to the DataTable
changes.

BREAKING CHANGE: chart transformer is now (rows: ChartRow[]) => ChartRow[]; Arrow results reach it
  as plain rows, not an Arrow Table.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…rows

Arrow results went through ArrowClient.detectFieldsFromArrow, which had its own rules
(string columns named date/time/period counted as dates, metadata dates were ranked
differently, first-row checks differed), so the same query could chart differently
depending on whether format="auto" picked Arrow (it does when parameters include
startDate and endDate, or a limit above 500). Charts now use one detectFields function
for both: an Arrow column's declared type is used when known, and otherwise the same
value rules apply; names only rank candidates. Choosing the format from the actual result
size needs the analytics server to report it before the client picks a format, so that
part is not in this change; ArrowClient.detectFieldsFromArrow is kept for API
compatibility.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
options was spread one level deep, so xAxis/yAxis/series/grid/legend/tooltip replaced the
built objects: a label-rotation tweak turned the category axis into a value axis and a
markLine series entry removed every series. Objects are now deep-merged, with series,
axes, grid, dataZoom and visualMap merged entry by entry (an object patch applies to
every entry). options can also be a function (built) => next.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Fixed by the C4 deep merge: options={{ radar: {...} }} without an indicator list used to
replace the built radar object, blank the chart and throw a TypeError. The test mounts a
radar with a partial radar option and checks the indicators survive.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…disappear

ECharts was updated in merge mode, so series, legend entries and axes that a new option
no longer had stayed on the chart (three lines remained after yKey went from three keys
to one). BaseChart now passes notMerge so every update replaces the option.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
stacked only reached horizontal bars and areas; vertical bar series had no stack, so
stacked bars drew side by side. Bar series now get the same stack as areas.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
orientation="horizontal" on a LineChart or AreaChart rendered a bar chart. The prop is
removed from the line and area types, and BaseChart ignores orientation for every chart
type except bar.

BREAKING CHANGE: LineChart and AreaChart no longer accept orientation; use BarChart for horizontal
  bars.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…t props

symbolSize works on LineChart and AreaChart but was missing from their types, so typed
code could not set it. In the other direction, every chart accepted every other chart
prop at runtime and ignored it (min and max on a radar). The line and area types now have
symbolSize, and in development each chart warns once about props its chart type ignores.
The per-chart prop lists are type-checked against the prop interfaces so they cannot
drift.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
The wrapper and the chart both set an inline height: 100%, so className="h-[400px]" had
no effect and a chart in a parent without a definite height was 160 px. For everyone:
when className has a height utility (h-*, size-*, with variants), no inline height is
set. With defaults="v3", the fill-parent minimum is 300 px instead of 160 px. Loading and
waiting states keep the className so they hold the same box.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…ent the rule

A BarChart with categories and no orientation is horizontal, while the types and docs
said the default is vertical. The prop docs now state the real rule. With defaults="v3",
a BarChart without orientation is vertical for dates, numbers (such as years) and up to 7
labels of at most 10 characters, and horizontal otherwise. Without v3 the current rule is
unchanged.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Covered by the C12 orientation rule: a numeric x such as a year, with orientation unset,
used to render horizontal with the oldest year at the bottom. With defaults="v3" numbers
are vertical.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Horizontal bars drew the first row at the bottom, so ORDER BY value DESC showed the
smallest bar on top. With defaults="v3" the category axis is inverted so the first row is
the top bar. Option builders now receive a v3 flag in their context.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
The options suite still asserted that vertical bars ignore stacked, the bug C8 fixed.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Labels were cut at a fixed length whatever the space (10 characters on a vertical x axis,
15 on horizontal bars, 10 and 12 on heatmaps), so twelve product lines all read "Consumer
E..." and with five categories only three labels were drawn. BaseChart now measures its
width with a ResizeObserver (rounded to 10 px). With a width, vertical category labels
are all drawn and truncated with an ellipsis to their slot, rotating when slots get
narrow; horizontal-bar and heatmap row labels get 30% of the width (60 to 220 px).
Tooltips still show the full label. Without a measured width (server render, no
ResizeObserver) the old character cut stays.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Axis names sat at the end of the axis and were clipped ("Categ", "Quart"), the y name was
cut at 160 px, and a title overlapped it. With defaults="v3" bar, line and area charts
draw no axis names (the card title carries them); scatter keeps both names, centred below
and beside the axes. Without v3 nothing changes.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
NikolaP454 and others added 28 commits December 2, 2026 13:15
showValues labels used the one-decimal compact tick format, so labels rounded differently
from the data: 1,249,000 and 1,250,000 read "1.2M" and "1.3M", 0.25 read "0.3". v3 value
labels now use their own formatter: compact with three significant digits ("1.25M",
"82.8K", "0.25", "0.012"), passed to the builders as valueLabelFormatter. A user
valueFormatter still wins, and ticks keep the one-decimal format. The label's right margin
on horizontal bars is sized from the same formatter.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
The stacked tooltip's Total added the series values as floats and passed the raw sum to
valueFormatter, so a percent formatter printed "Total: 1.4000000000000001%" (0.1 + 0.2 +
1.1). The sum is now cut to 12 significant digits before it is formatted. Each series line
was already right.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Corner radius was set per series ([4,4,0,0] vertical, [0,4,4,0] horizontal), so every
segment of a stack was rounded (notches of background at each joint), negative bars were
rounded at the zero line with a square far end, and a thin outermost segment (a 1 on a stack
of 70) was clamped to a flat strip over the rounded corners of the segment below it. The
radius is now decided per data item by roundBarEnds: unstacked bars keep the series radius
and a negative value gets the opposite end; in a stack only the outermost positive and
outermost negative segment are rounded, at their outer end, and the series radius is 0, so
a zero or null segment hands the rounding to the one below and a thin top segment sits on
square corners. A series borderRadius passed through options removes the per-item radii.
Known limit: hiding the top series from the legend leaves the new top segment square.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
A bar cut off by a fixed axis max kept its rounded end at the clip edge, so 64, 76 and 88
under yAxis.max 60 all looked like complete bars of exactly 60 with no sign that they
continue (the same on horizontal bars with xAxis.max, and on 0.106.0). mergeChartOptions now
runs squareClippedBars over the merged option: for a numeric min or max on the value axis,
the bar (or the stack segment whose running end crosses the bound) gets a square end through
a per-item radius of 0. Axes without a fixed bound are untouched.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
The first fix ended the value axis at the line plus 8% headroom, which gave ticks such as
"118.8" and "432" on the review renders. The bound is now rounded outwards with niceCeil
(1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8 x 10^k), so a line at 110 over data of 98 gives an axis
to 120 and a goal of 400 gives 500.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
hideOverlap compares the axis-aligned boxes of 45 degree labels, which still overlap when
the labels are parallel, so 100 categories at 600 px (and 24 hourly heatmap columns at
400 px) stayed a dense band. Rotated labels now use an explicit interval: every nth label,
n = ceil(18 px / slot width), from the pitch a 45 degree label needs. hideOverlap stays as
a backstop.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
On a 280 px horizontal bar chart hideOverlap left one tick ("$2,000,000") of an axis that
printed full numbers. With a measured width the horizontal value axis now sets splitNumber
from the width of the widest formatted value (7 px a character plus 16, at least 2), so
the labels that remain are spread over the axis. Wide charts keep ECharts' default.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…label

hideOverlap did not thin the row labels of a horizontal bar chart (30 rows in 360 px
still overprinted). With a measured height, rows closer than 16 px now set an explicit
interval, every nth label with n = ceil(16 px / row pitch), the plot being the height minus
about 56 px of margins. Charts whose rows have room keep every label.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Title width, height and overflow "break" were not applied the way the first fix assumed:
the wrapped text printed its lines over each other. A centerLabel that does not fit at
11 px is now broken at spaces by wrapCenterText into lines that fit 70% of the hole
diameter (about 6.6 px a character), as many 14 px lines as fit, with "..." on the last line
when text is left over. The title style no longer carries a box.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Regenerated by docs:build.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
`appkit docs Table` printed the Tables topic and `appkit docs Table Badge`
dropped the first word, because the topic lookup ran before the API index.
An exact API name now skips the topic lookup.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Updates replaced the whole chart option, so a zoomed range and a hidden
legend entry reset on every rebuild (inline formatters, resizes, data
refreshes). The option is now replaced per component: series, axes,
legend and zoom are replaced so removed entries still leave the chart,
and the zoom range and legend selection the reader set are carried over.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Transformers and DataTable got Arrow rows from row.toJSON(): DECIMAL
arrived as its unscaled integer and DATE and TIMESTAMP as epoch
milliseconds. Arrow rows now use the same shapes as JSON rows: DECIMAL
scaled, DATE as YYYY-MM-DD and TIMESTAMP as an ISO 8601 instant.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
With keepNulls off, the Arrow x column was extracted with nulls already
turned into 0, so a null x was labelled "0". The x column now keeps its
nulls; y values still follow keepNulls.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Arrow DATE values are numbers, so the date-only check on the x column
never matched: viewers west of UTC saw the previous day plus a time.
DATE is now detected from the Arrow field type, and each day is read as
its local midnight, as DATE strings are.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Reference-line bounds were rounded by magnitude in both directions, so a
positive min moved inwards: a line at 7.9 under data from 8.0 gave an
axis min of 8 and the line was clipped. The min now rounds down and the
max rounds up.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
A height class (md:h-96, h-full) made chartSizeStyle return no minimum,
so a chart whose height came from a breakpoint or a parent with no
height could collapse to 0 px. The minimum height now always applies.
No inline height is set for a class height, since an inline 100% would
beat a breakpoint class.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
The last shown line was truncated twice, so a cut centre label ended in
a doubled ellipsis, and a word longer than a line overflowed the hole.
Each line is now cut once, and a cut line ends in a single "...".

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
The stacked tooltip summed every series, so a line on the right axis of
a combo chart was added to the stack total. The total now sums the
series that stack; the other series are still listed.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
A column formatted as boolean showed the text "false" as true, because
any non-empty string is truthy. Boolean cells now read "true"/"false"
text (any case) and 1/0, as well as real booleans.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
A double was shown with its full shortest text, so 12.333333333333334
appeared with float noise. Numbers now show 15 significant digits, which
is what a double holds. DECIMAL text is still shown as written.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Rows are selected by position, so after a new data set the selection
named other rows, and onSelectionChange reported rows from the old
selection. Replacing the data now clears the selection. The prop
documents that a new data array clears it.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
…olumn

The seriesKey pivot stored x under the x column's name, so a series with
that name overwrote every x value. The pivot now keys x under a reserved
name and builds its rows without a prototype, so a "__proto__" series is
a column. The x column name is restored on the result.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
A patch of `series: []` merged entry by entry, so the built series were
kept because the merge ran to the longer list. An explicit empty list now
replaces the built list.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Number columns sorted as text when their values were numeric strings
(DECIMAL arrives as "12.50"), so "100" came before "9.25". Number columns
now compare by value, and empty cells sort last.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Chart test titles began with "second scan:" or carried review IDs such as
(S2-01), (C17) or (BAR-P2). The titles now describe the behaviour under
test.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
Regenerated by docs:build after the DataTable onSelectionChange doc change.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Nikola Petrovski <nikolapetrovski@protonmail.com>
@NikolaP454

Copy link
Copy Markdown
Author

Superseded by #754 (same commits, opened from a branch in this repo so CI can run).

@NikolaP454 NikolaP454 closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant