1
angle-nvd3のチャートでこの問題が発生しました。それらはlinePlusBarChart
で、うまく動作しますが、補間をcardinal
に変更すると、スクリーンショットに表示されたような行が表示されます。Nvd3チャートのトップラインパッディング
どうすれば解決できますか?
私のチャートオプション:
vm.chartOptions = {
chart: {
type: 'linePlusBarChart',
height: 450,
margin: {
top: 0,
right: 50,
bottom: 50,
left: 50
},
focusEnable: false,
duration: 250,
forceY: [0],
groupSpacing: 0.5,
interpolate: 'cardinal',
xAxis: {
axisLabel: false,
showMaxMin: false,
tickFormat: function(d) {
return d3.time.format('%b %y')(new Date(d));
}
},
y1Axis: {
showMaxMin: false,
tickFormat: function(d) {
if (d > 0) return '$' + d3.format(',f')(d);
}
},
y2Axis: {
showMaxMin: false,
tickFormat: function(d) {
if (d > 0) return d3.format(',f')(d);
}
}
}
};
こんにちは、私は直面しています 同じ問題。だから、どうやってこの問題を解決したのだろう?あらかじめ高校で –
自分自身を見て、以下の答えを見てください。 –
Thanxたくさん。あなたの答えは私が実装したソリューションに似ています –