Google Charts yaxis 值越高显示越低

发布于 2024-12-17 20:34:43 字数 381 浏览 3 评论 0原文

我正在寻找一种使用谷歌图表来显示不同时间排名的方法。

(这与此处是同一问题,但这次使用 Google 图表Highcharts 的)

有没有一种方法以“用户友好的方式”显示排名,我的意思是:排名第一的排名位于图表的顶部,最后的排名位于底部。

我希望使用折线图

I am looking for a way to display rankings across time, using Google Charts.

(this is the same question as here, but this time using Google Charts instead of Highcharts)

Is there a way to display rankings in a "user-friendly way", by which I mean: with the #1 ranking being at the top of the chart, and the last ranking being at the bottom.

I wish to use the line charts.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷遇一生 2024-12-24 20:34:43

好的,我找到了选项:

vAxis:{direction:-1}将反转y轴

hAxis:{direction:-1}将反转x轴

chart.draw(data, {vAxis: {direction: -1}, width: 400, height: 240, title: 'Rank'});

Ok, I found the option:

vAxis: {direction: -1} will reverse the y Axis

hAxis: {direction: -1} will reverse the x Axis

chart.draw(data, {vAxis: {direction: -1}, width: 400, height: 240, title: 'Rank'});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文