Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Circle

This is a Shape primitive. Defines an instance of a Circle shape for use in the Shapes or ContourShapes primitives value. Usage:

//within a map function's return object. This will draw a red circle centered at each rendered
//bar's value and index.
...
 {
     graphics: {
         items: [
             {
                 tag: "Shapes",
                 key: 'circles',
                 //the circle is a primitve
                 primitives: [
                     {
                         tag: 'Circle',
                         center: {
                             x: d.index(),
                             y: d.value(),
                         }
                         radius: 10
                     }
                 ],
                 fillStyle: {
                     color: '#f00'
                 }
             }
         ]
     }
 }
...

Hierarchy

  • Circle

Properties

Properties

center: Point
radius: number
tag: "Circle"

Generated using TypeDoc