User:Pietrasagh/graphen
Module for Vega 5
- Differences of vega 2 and vega 5](#differences-vega-2-i-vega-5)
- Significant differences in syntax](#significant-differences-in-encoding)
- Marks and Visual Encoding](#marks-and-visual-encoding)
- Signals and Event Processing](#signals-and-event-processing)
- View Layout](#view-layout)
- Axes and Legends](#axes-and-legends)
- Scales](#scales)
- Data Transforms](#data-transforms)
- Geo Data](#geo-data)
- What's easier, what's harder](#what's-easier-what's-harder)
- Significant differences in syntax](#significant-differences-in-encoding)
- Make-scheme-of-what-is](#make-scheme-of-what-is).
- Current status](#current-status)
- Constants](#constants)
- Auxiliary functions](#auxiliary-functions)
- Main functions](#main-functions)
- What can be discarded or changed](#what-can-be-discarded-or-changed)
- Track all bagaroud errors in vega 2](#trace-all-workaroud-errors-in-vega-2)
- Current status](#current-status)
- New module](#new-module)
- Errors reported in Graph|Chart:talk](#errors-reported-in-graphcharttalk)
- Make-order](#make-order).
- Preprocessing input data](#preprocessing-input-data)
- At can change the approach to the data and take as entered and then transform -> ...
- Maybe better vega lite as base for module?.
Differences vega 2 and vega 5
editSignificant differences in syntax
editMarks and Visual Encoding
editsdsds
- data - allowed types are
boolean,
date,number or
string,` default ``auto maybe try as default way? properties
-encode
.template
removed, usesignal
for textsband
interpolation something there blah blah blah, check for bar graphsfacet
removedtransform
not allowed, all must be indata
but this can now be nested inmarks
facet
not allowed- new
shape
works like path but better - new
z-index
meaning order - axies must have 'orient' and 'scale' argument
Signals and Event Processing
editstreams
->on
,type
->events
,expr
->update
.eventItem
,eventGroup
,eventX
, andeventY
->item
,group
,x
andy
, new[x,y]
.
View Layout
editviewport
removed, instead use CSSwidth/height/overflow
.- new
autosize
.
Axes and Legends
edittype
->orient
,{type: "x"}
->{"orient": "bottom"}
,{type: "y"}
-ends 1,{"orient": "left"}
."ticks"
(which did not work...) ->"tickCount"
.interactive
in legends: give in automation some highlighting or what?axis-layer
->axis-zindex
.- messed up with ticks and grid - check
- in
domain
field
->fields
.
Scales
editordnal
divided intoordinal
,band
,point
.- colors can have palettes ag names
category10
,category20
ni mo!
Data Transforms
editGenerally mixed up and minefield....
output
removed, useas
but need to readformula-field
->as
3.pie
stack
bin
nolayout_mid
aggregate
no longer hassummarize
.bin
:min&max
extend-[min, max]
,div
->divide
.filter-test
->expr
.sort
deletedstack-sortby
->sort
.
Geo Data
editprojections
are now top-levelgeo
->geopoint
.geopath
->geoshape
faster rendering.
What's easier, what's harder
editMake a diagram of what is
editCurrent state
editConstants
editlocal baseMapDirectory = "Module:Diagrams/" -- stuck to local wiki local persistentGrey = "#54595d" local shapes = {...} local dashes = {...} - see if they are predefined
auxiliary functions
editlocal function numericArray(csv) local function stringArray(text) local function isTable(t) local function copy(x) (...)
main functions
editlocal function p.map() local function p.chart() local function wrappery()