我正在使用react-google-charts
这是我的图表代码
<Chart
chartType="Bar"
loader={<div>Loading Chart</div>}
data={[
["", "Credit", "Debit"],
[
"AVERAGE",
avg_credit,
avg_debit,
],
[
"30 Days",
sum_values[0].CREDIT,
sum_values[0].DEBIT,
],
[
"60 Days",
sum_values[1].CREDIT,
sum_values[1].DEBIT,
],
[
"90 Days",
sum_values[2].CREDIT,
sum_values[2].DEBIT,
],
]}
options={{
legend: { position: "none" },
hAxis: {
baselineColor: "none",
ticks: [],
},
}}
/>
我在此处添加了hAxis选项,因为我想完全删除Y轴(它是条形图,它在编号,它是水平穿过图表的网格线),但是它们似乎没有任何作用,我该怎么做呢?谢谢