Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make a double Y axis chart by using excelize? #518

Closed
JackChanw opened this issue Nov 15, 2019 · 5 comments
Closed

How to make a double Y axis chart by using excelize? #518

JackChanw opened this issue Nov 15, 2019 · 5 comments
Labels
enhancement New feature or request
Projects

Comments

@JackChanw
Copy link

No description provided.

@JackChanw
Copy link
Author

all the charts are single Y-axis, but i need to draw a double Y-axis chart, it is difficult by using current excelize, do you have some ideas?

@xuri xuri added the enhancement New feature or request label Jan 14, 2020
@zhouyao1124
Copy link

您好 请问这个问题您是否进行了处理?我看到您在584说会在518进行讨论,但是我在这两个问题中都没有找到答案

@xuri
Copy link
Member

xuri commented Nov 19, 2020

Sorry, it's still no progress, maybe taken a while to implement this feature.

@k-kurikuri
Copy link

Hi, contributors.

I would like to use a chart with a secondary axis, is there any progress on this feature?

@xuri xuri added the in progress Working in progress label Jul 7, 2023
@xuri xuri added this to Features in v2.8.0 Jul 7, 2023
@xuri xuri closed this as completed in f5fe6d3 Jul 7, 2023
@xuri
Copy link
Member

xuri commented Jul 7, 2023

Sorry for the late reply. I have added support for creating chart with a secondary series axis, please upgrade to the master branch code, and this feature will be released in the next version. Now you can specifies the series vertical axis as the secondary axis like this:

err := f.AddChart("Sheet1", "D1", &excelize.Chart{
    Type:   excelize.Col,
    Series: []excelize.ChartSeries{
        // ...
    },
    Title: excelize.ChartTitle{Name: "Chart Title"},
}, &excelize.Chart{
    Type:   excelize.Line,
    Series: []excelize.ChartSeries{
        // ...
    },
    YAxis: excelize.ChartAxis{
+        Secondary: true,
    },
})

@xuri xuri removed the in progress Working in progress label Jul 7, 2023
xuri added a commit to JDavidVR/excelize that referenced this issue Jul 11, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
v2.8.0
Features
Development

No branches or pull requests

4 participants