我正在使用角度nvd3条形图。而且我正在尝试旋转显示在条形图上的值。这样,当有更多的条形图时,该值就不会与其他条形图值混在一起了。
我尝试
chart: {
type: 'discreteBarChart',
height: 450,
margin : {
top: 20,
right: 20,
bottom: 50,
left: 55
},
x: function(d){return d.label;},
y: function(d){return d.value + (1e-10);},
showValues: true,
valueFormat: function(d){
return d3.format(',.4f')(d);
},
duration: 500,
xAxis: {
axisLabel: 'X Axis'
},
yAxis: {
axisLabel: 'Y Axis',
axisLabelDistance: -10
}
}
};```
[![I want to get the results as shown in below attached screenshot][1]][1]
[1]: https://i.stack.imgur.com/3J5qC.png