This is a Shape primitive. Defines an instance of a Polygon shape for use in the Shapes or ContourShapesprimitives value.
Usage:
//within a map function's return object. This will draw a red triangle rect at each rendered//bar's value and index.... { graphics: { items: [ {tag:"Shapes",key:'tris',//the polygon is a primitveprimitives: [ {tag:'Polygon',points: [//top {x:du(d.index()),y:op(du(d.value()), '-', px(4)) },//right {x:op(du(d.index()), '+', px(4)),y:du(d.value()) },//left {x:op(du(d.index()), '-', px(4)),y:du(d.value()) } ] } ],fillStyle: {color:'#f00' } } ] } }...
This is a
Shape
primitive. Defines an instance of aPolygon
shape for use in theShapes
orContourShapes
primitives
value. Usage: