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 set the cross of XAxis and YAxis using AddChart function? #1944

Closed
ffh-zhang opened this issue Jul 9, 2024 · 2 comments · Fixed by #1946
Closed

How to set the cross of XAxis and YAxis using AddChart function? #1944

ffh-zhang opened this issue Jul 9, 2024 · 2 comments · Fixed by #1946
Labels
enhancement New feature or request

Comments

@ffh-zhang
Copy link

The chart generated:
chart_1

The chart I want:
chart_2

@xuri xuri added enhancement New feature or request in progress Working in progress labels Jul 9, 2024
@xuri xuri linked a pull request Jul 11, 2024 that will close this issue
10 tasks
xuri pushed a commit that referenced this issue Jul 11, 2024
…ata type (#1946)

- Introduce new exported ChartTickLabelPositionType enumeration
- Update unit tests
@xuri
Copy link
Member

xuri commented Jul 11, 2024

Thanks for your issue. This library added new field TickLabelPosition in the ChartAxis option to support set label position of the chart, please upgrade to the master branch code by go get -u github.com/xuri/excelize/v2@master, and this feature will be released in the next version. Now you can set the label position of the horizontal axis like this:

&excelize.Chart{
    Type: excelize.Line,
    XAxis: excelize.ChartAxis{
+       TickLabelPosition: excelize.ChartTickLabelLow,
        ...
    },
    ...
}

@xuri xuri removed the in progress Working in progress label Jul 11, 2024
@ffh-zhang
Copy link
Author

Thanks for your prompt response! I have resolved the issue.

zhangyimingdatiancai pushed a commit to zhangyimingdatiancai/excelize that referenced this issue Aug 6, 2024
…Axis data type (qax-os#1946)

- Introduce new exported ChartTickLabelPositionType enumeration
- Update unit tests
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
Status: Features
Development

Successfully merging a pull request may close this issue.

2 participants