使hAxis标签相对于React-google-charts中的图居中(React Js)

huangapple go评论63阅读模式
英文:

Make hAxis label center with respect to graph in React-google-charts (React Js)

问题

我需要将hAxis(x轴)上的数据点居中对齐到vAxis(y轴),我尝试使用textPosition,但它不起作用。

在这里,我需要将日期居中对齐到图表。

感谢您为我花费的时间!

英文:

I need to have centered data points in hAxis(x-axis) with respect to vAxis(y-axis), I tried with textPosition and but it doesn't work.
使hAxis标签相对于React-google-charts中的图居中(React Js)

Here, I have to center the dates with respect to the graph.

Thanks for your minute for me!!!

答案1

得分: 0

我已经自己找到了原因。这是因为我们正在使用的日期,对于日期,我们有结构(2023年,05月,09日)YYYY,MM,DD。如果在发送日期类型时此结构发生变化。就会出现此问题。

英文:

I had found the cause by myself. It's because we have date we are using, For the date we have structure (2023, 05, 09) YYYY, MM, DD. If this structure varies while sending the date type. This issue comes.

huangapple
  • 本文由 发表于 2023年5月10日 11:22:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76214676.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定