Closed
Description
If a plot defines a temporal tickFormat
like %W
for a facet, and the dataset is empty, then rendering the Plot will fail with the error:
Error: invalid format: %W
Example:
Plot.barY([], {fy: d => d}).plot({fy: {tickFormat: "%W"}})
For comparison:
Plot.barY([new Date()], {fy: d => d}).plot({fy: {tickFormat: "%W"}})