axlsx图表中的辅助轴 [英] Secondary Axis in axlsx charts

查看:243
本文介绍了axlsx图表中的辅助轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理xlsx报告生成,因为我使用 axlsx gem。我在线和条形图中查找显示次要 Y轴(图表中的第二个系列)的选项。有什么办法吗?

I am working on the xlsx report generation, and for that I am using axlsx gem. I looking for the option to show secondary Y-axis (for 2nd series in charts) in line and bar charts. Is there any way to do so?

提前感谢。

推荐答案

p>我对axlsx不太熟悉,一般来说不太了解图表,但是从我在文档中读到的东西可能有'轴'可供选择。 valAxis,catAxis和serAxis。如果我假设你想要深度到你的图表,使用serAxis。

I'm not well versed in axlsx much less charting in general, but from what I've read on the documentation there are thee possible 'axes' to choose from. valAxis, catAxis and serAxis. If I'm to assume you want depth to your chart, use serAxis.

http://rubydoc.info/github/randym/axlsx/Axlsx/SerAxis

这篇关于axlsx图表中的辅助轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆