Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Polar plot direction in Node.js

Hi! I’m trying to change the polar plot direction to clockwise in Node.js but can’t find a way…
I see in the Python solution a “direction” property that can be changed.
Anybody knows how to incorporate this in Node.js?

var plotly = require('plotly')('username', 'apiKey');

plotly.plot(data, {
  layout: {
    polar: {
      angularaxis: {direction: 'clockwise'}

  // ... other graph options

should do the trick.

Works like a charm, thanks!