How to set the cross of XAxis and YAxis using AddChart function?
ffh-zhang opened this issue · comments
ffh-zhang commented
xuri commented
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,
...
},
...
}
ffh-zhang commented
Thanks for your prompt response! I have resolved the issue.