JavaScript Figure Reference: pie Traces

A pie trace is an object with the key "type" equal to "pie" (i.e. {"type": "pie"}) and any of the keys listed below.

A data visualized by the sectors of the pie is set in `values`. The sector labels are set in `labels`. The sector colors are set in `marker.colors`

  • type
    Parent: data[type=pie]
    Type: "pie"
  • name
    Parent: data[type=pie]
    Type: string

    Sets the trace name. The trace name appears as the legend item and on hover.

  • title
    Parent: data[type=pie]
    Type: object containing one or more of the keys listed below.
    • font
      Parent: data[type=pie].title
      Type: object containing one or more of the keys listed below.

      Sets the font used for `title`.

      • color
        Parent: data[type=pie].title.font
        Type: color or array of colors
      • family
        Parent: