This is a Shape primitive. Defines an instance of a Rectangle shape for use in the Shapes or ContourShapes primitives value.
Usage:
// Inside a calculator's map function, this particular definition will draw// red 24x24px squares centered at { x: index, y: value } of each rendered bar... { graphics: { items: [ {tag:'Shapes',key:'rects',//the rectangle is a primitveprimitives: [ {tag:'Rectangle',position: {x:du(d.index()),y:du(d.value()), }size: {height:px(24),width:px(24) } } ],fillStyle: {color:'#f00' } } ] } }...
This is a
Shape
primitive. Defines an instance of a Rectangle shape for use in the Shapes or ContourShapesprimitives
value. Usage: