The plotly function is a generic plotting function used to handle multiple types of data; primarily count-based data. The function furthermore allows for swift integration of plotting functionality in js.

        values: [ 24, 7, 0.5 ],
        labels: [ 'English', 'Spanish', 'Other' ],
        type: 'pie'
    layout={{ width: 300 }}

Open interactive preview


  • data: An array of arrays of type data with various tags. These tags mirror the plotly functionality in the R wrapper for the HTML syntax.
  • layout: An array of dimension attributes.

results matching ""

    No results matching ""