-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5.0.0 #1561
Conversation
Thanks for awesome work! The new code structure makes things far easier, gradient colors (!!!), repackaging. Tons of good stuff! My biggest concern is that it is very hard to review - Chrome takes a few minutes just to load the page, and there are too many minor changes that get in the way (e.g. example schema bumps). I wish there were a few separate pull requests - e.g. a few for the functional changes, and one that actually migrates everything to v5, but does not make any functional code changes other than related to the actual version. But this is just a nitpick :) Thanks for awesome work! |
P.S. Would it be possible, as part of v5, to introduce an alias to |
There are a number of earlier PRs with targeted updates. Please see the closed PRs. This PR consists almost exclusively of documentation updates and serves as the transition to v5.0.0, as you suggested. (I include the notes and change log for all of v5.0.0 above for convenient reference, but this PR does not include all of those changes.) For earlier PRs there is also a huge commit backlog due to migrating all the sub-modules into the current monorepo, but that is a one-time issue. Your "p.s." above is more fitting for a new issue than a PR comment, but I'll answer it here :) The short version is that |
@jheer my apologies, I got confused by the changes in the Oh the irony... Kibana just began the work of updating to Vega 4... What do you think is the ETA on 5, assuming we use the latest released Vega-Lite? |
@@ -14,44 +14,44 @@ | |||
"license": "BSD-3-Clause", | |||
"author": "UW Interactive Data Lab (http://idl.cs.washington.edu)", | |||
"main": "build/vega-node.js", | |||
"module": "index", | |||
"module": "build/vega-core.mjs", | |||
"unpkg": "build/vega.min.js", | |||
"jsdelivr": "build/vega.min.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a types
property here or does depending on vega-typings suffice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not the right person to answer; however, I do note that vega-util has an explicit types
property in its package.json
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make sure to test it before the final release. Do you plan to have an rc release before the final release?
Vega v5.0.0 Release Candidate 1
Breaking Specification Changes:
strokeWidth
property now corresponds to a scale that maps data values to stroke widths. It no longer corresponds to the stroke width of the legend border. However, thelegend.strokeWidth
config property still corresponds to the legend border thickness.bin-linear
scale type has been removed. This is unlikely to affect many (if any) direct users of Vega. However, versions of Vega-Lite prior to v3 will not work with Vega v5 as a result.vlSingle
,vlSingleDomain
,vlMulti
,vlMultiDomain
,vlInterval
, andvlIntervalDomain
.Breaking API Changes:
vg2pdf
command for rendering PDF output!)vega-lib
module; use thevega
module instead.Other Notable Changes:
vega/vega
) to streamline development.symbol
marks now include anangle
channel for symbol rotation.symlog
) scale type.log
,pow
,sqrt
, andsymlog
scales. In addition, the scaleinterpolate
property can now be used with any scale that supports a scheme-valued range, allowing customized color interpolation for continuous, ordinal, or discretizing scales.sequential
scale type has been deprecated, but remains for backwards-compatilibility. Use thelinear
scale type instead.run
method still works much as before, but internally simply callsrunAsync
and returns immediately. If no asynchronous processing is performed (for example, no external datasets are requested or in the process of loading), the dataflow evaluation will complete beforerun
returns. However, in general callers have no guarantee that dataflow evaluation is complete when therun
method returns. We recommend usingview.runAsync
whenever possible; invokethen
on the returned Promise to perform actions once dataflow evaluation is finished.async
functions and theawait
keyword. Some users migrating to Vega 5.0 from an earlier version may discover incompatibilities with older browsers. If backwards compatibility is essential, we recommend using a transpiler framework such as Babel.Detailed Changes:
docs
vega
flush-axis-labels
andlegend-continuous
test specifications to use labelSeparation.linear
rather thansequential
scale type.vega-cli
vg2pdf
command for generating PDF output.vega-dataflow
request
from pending load tracker.preload
method for initial data loading.responseType
from format to loader options.vega-encode
bin-linear
scale support. (Use newbins
parameter instead.)utcInterval
method. (Use updatedtimeInterval
method instead.)scheme
property. (Fix Ordinal scale can interpolate scheme, but not range #995)bins
property to guide tick/legend generation.minstep
parameter to AxisTicks and LegendEntries transforms.vega-expression
vega-functions
panSymlog
andzoomSymlog
expression functions.intersect
expression function. This function is not yet part of the official expression language, but is exposed for integration and testing with Vega-Lite. Theintersect
function has the signatureintersect(box, options, group)
, where:box
is a rectangular brush region defined as[[x1, y1], [x2, y2]]
options
is an optional object withmarktype
ormarkname
properties (strings or arrays) for limiting the intersection tests to specific marks.group
is an optional scenegraph group item that serves as the root of the search. If not provided, the full scenegraph is used.gradient
function to handle zero span domains, add test cases. (Sequential scale does not show any color when the domain has only one value. #1479)vega-loader
response
option to direct fetch response processing.responseType
property toformat
read methods.sanitize
method to copyrel
loader option to the output result. The scenegraph handler will copy this over as an HTMLrel
attribute of a generateda
element. (Specify rel in href links #1542)vega-parser
strokeWidth
scale support for legends, remove legendstrokeWidth
property. Similar tostrokeDash
, the config-levelstrokeWidth
property is still supported. However, the spec-level property now refers to an input scale, not the legend group boundary.load
transform for dynamic data directly within generated transform pipelines.labelSeparation
property for axes and legends. (Specify a minimum distance between labels for overlap determination. #1507)tickMinStep
to axis and legend parsers.vega-runtime
preload
for initial dataset loading.vega-selections
vega-scale
bin-linear
scale type.symlog
scale type.vega-scenegraph
angle
encoding. (#1557)arrow
,triangle
,wedge
,stroke
rotatedPoints
method toBounds
.text
marks.vega-schema
strokeWidth
scale support for legends, remove legendstrokeWidth
property.labelSeparation
property to schema. (Specify a minimum distance between labels for overlap determination. #1507)tickMinStep
to axis and legend schema.vega-transforms
load
transform to use async evaluation.load
transform to support explicit values as well as url.vega-util
panSymlog
andzoomSymlog
methods.clampRange
,extent
,flush
,inrange
, andspan
array methods.quarter
andutcquarter
Date methods.vega-view
render
method has been removed. As before, (re-)rendering is automatically invoked when the dataflow is evaluated.Dataflow.runAsync
instead ofrun
.initialize
parameter when the renderer is reset. (Tooltip handler duplicates controls rendered in custom controls container #1575)vega-view-transforms
Overlap
transform to pre-filter all labels with null bounds.Overlap
transform to support separation parameter. (Specify a minimum distance between labels for overlap determination. #1507)