Skip to content

v0.9.3

Compare
Choose a tag to compare
@kanitw kanitw released this 27 Jan 20:30
· 6959 commits to master since this release

Syntax

  • Scale
    • remove scale and sort from detail and make sure there is no scale for detail in the output
    • remove points from ordinal scale #924
  • Axis
    • Add axis properties: labels, tickSizeMajor, tickSizeMinor, tickSizeEnd, values
    • rename shortTimeName => shortTimeLabel
    • allow hiding axis by setting axis to false
  • Mark
    • revised rules for bar and area
  • Channel
    • add path channel for line and remove config.sortLineBy
    • support multiple detail fields (as array) #904 -
  • Time Unit
    • Adds additional time units such as yearmonth, yearmonthday, hoursminutes, ...
    • Allow customization of time format.
  • Config
    • add config.scene
    • make config.nullFilter a boolean property
    • config.mark
      • rename config.marks => config.mark
      • add fill, fillOpacity, stroke, and strokeOpacity
      • add rules for config.marks.orient
      • make config.marks.filled applicable for bar and area #886
      • add thickness for tick mark and set to 1 by default #922, #933
    • Support config.stack.offset = ’normalize
    • Add properties for hiding facet’s grid and docs for all cell.grid properties

API

  • Change the main file to vl.js instead of the compiled file.
  • vl.schema.util.merge => vl.schema.util.mergeDeep

Output

  • Data
    • Rename STACKED to STACKED_SCALE to avoid confusion since the data source sums data for scale while the actual stack layout is applied inline.
    • Remove the unnecessary max calculation in STACKED_SCALE since scale would automatically calculate max anyway.
  • Faceting
    • Replace facet transform with aggregate transform for axes group
    • Apply axis.grid of row and column to our customized grid built by a rule mark group instead of passing it to the row’s scale. Also remove the redundant config.cell.gridShow. Fixes #943
    • Apply scale.padding of row and column to our cell padding layout calculation & remove the redundant config.cell.padding. Fixes #917
    • Set ROW and COLUMN’s padding to 0 if Y and X are not mapped respectively. Fixes #822
  • Time Unit
    • Use timestamps internally for temporal data even if the data is being aggregated.
    • When time unit is month, day, hours, minutes, or seconds, vl automatically adds missing points to the domain. Previously the domain was set directly. Now, vl creates a new data source.
  • Optimize order of Vega output (make sure that from comes before properties)
  • Add spec.name as prefix to mark group and scale’s name
  • Auto drop unsupported channel from the output spec
  • Make bin_range for bin_scale #879
  • Determine date, year, second, minute's scale type based on mark type and orientation.
    (For dimension channel of bar or tick mark, use ordinal scale. Otherwise, use linear scale.) #912
  • Add offset for vertical dot plot with tick
  • Use xc and yc for ticks so we don’t have to add offset

Bug Fixes

  • Ensure that transform in axes group are arrays + refactor
  • Support stacked charts with both detail and color #878
  • Correctly calculate total width/height and offset for trellis plot #880
  • Fix broken legend color + add stroke transparent #916
  • Apply mark config to legend as well #913
  • Make size.value works with tick and bar mark – fixes #931
  • avoid outputting both bandWidth and range #953