【发布时间】:2018-02-22 09:37:01
【问题描述】:
我是 plotly 的新手,正在研究条形图示例。我想要做的是让条形图从右到左运行。这是我的 jsfiddle 的链接。
https://jsfiddle.net/ksaluja/w0cx3sw1/1/
目前它是从右到左的默认方式。谢谢!
index.html
<div id="tester" style="width:600px;height:250px;"></div>
scripts.js
var data = [{
type: 'bar',
x: [20, 14, 23],
y: ['giraffes', 'orangutans', 'monkeys'],
orientation: 'h'
}];
Plotly.newPlot('tester', data);
【问题讨论】: