Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在图表中显示零息债券的价格,随着从 150 天到期到 0 天到期,价格上涨。
但是,当我创建图表时,x 轴上的天数始终显示为上升。有没有办法在不使用接近零的负数的情况下按我的意愿显示图表?
现在的样子图片:
我希望它看起来如何:
通过从后端反转数组来解决它,同时通过以下方式同时反转 xaxis:
options={ 'title':'Orders', 'vAxis': {'title': "Price in percent [%]"}, 'hAxis': { 'title': "Days to maturity [Days]", 'direction': "-1", 'gridlines': { 'count': '6'} }, }