Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xuri
excelize
提交
fbc3d1cd
excelize
项目概览
xuri
/
excelize
通知
13
Star
2
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
excelize
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fbc3d1cd
编写于
5月 25, 2017
作者:
xurime
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- Worksheet conditional formatting support added, relate issue #56;
- gofmted with -s
上级
dea57dd0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
23 deletion
+24
-23
chart.go
chart.go
+2
-2
xmlWorksheet.go
xmlWorksheet.go
+22
-21
未找到文件。
chart.go
浏览文件 @
fbc3d1cd
...
@@ -390,12 +390,12 @@ func (f *File) drawBarChart(formatSet *formatChart) *cPlotArea {
...
@@ -390,12 +390,12 @@ func (f *File) drawBarChart(formatSet *formatChart) *cPlotArea {
},
},
}
}
charts
:=
map
[
string
]
*
cPlotArea
{
charts
:=
map
[
string
]
*
cPlotArea
{
"bar"
:
&
cPlotArea
{
"bar"
:
{
BarChart
:
&
c
,
BarChart
:
&
c
,
CatAx
:
f
.
drawPlotAreaCatAx
(),
CatAx
:
f
.
drawPlotAreaCatAx
(),
ValAx
:
f
.
drawPlotAreaValAx
(),
ValAx
:
f
.
drawPlotAreaValAx
(),
},
},
"bar3D"
:
&
cPlotArea
{
"bar3D"
:
{
Bar3DChart
:
&
c
,
Bar3DChart
:
&
c
,
CatAx
:
f
.
drawPlotAreaCatAx
(),
CatAx
:
f
.
drawPlotAreaCatAx
(),
ValAx
:
f
.
drawPlotAreaValAx
(),
ValAx
:
f
.
drawPlotAreaValAx
(),
...
...
xmlWorksheet.go
浏览文件 @
fbc3d1cd
...
@@ -6,27 +6,27 @@ import "encoding/xml"
...
@@ -6,27 +6,27 @@ import "encoding/xml"
// http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
// http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
// not checked it for completeness - it does as much as I need.
// not checked it for completeness - it does as much as I need.
type
xlsxWorksheet
struct
{
type
xlsxWorksheet
struct
{
XMLName
xml
.
Name
`xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
XMLName
xml
.
Name
`xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
SheetPr
*
xlsxSheetPr
`xml:"sheetPr"`
SheetPr
*
xlsxSheetPr
`xml:"sheetPr"`
Dimension
xlsxDimension
`xml:"dimension"`
Dimension
xlsxDimension
`xml:"dimension"`
SheetViews
xlsxSheetViews
`xml:"sheetViews,omitempty"`
SheetViews
xlsxSheetViews
`xml:"sheetViews,omitempty"`
SheetFormatPr
*
xlsxSheetFormatPr
`xml:"sheetFormatPr"`
SheetFormatPr
*
xlsxSheetFormatPr
`xml:"sheetFormatPr"`
Cols
*
xlsxCols
`xml:"cols,omitempty"`
Cols
*
xlsxCols
`xml:"cols,omitempty"`
SheetData
xlsxSheetData
`xml:"sheetData"`
SheetData
xlsxSheetData
`xml:"sheetData"`
SheetProtection
*
xlsxSheetProtection
`xml:"sheetProtection"`
SheetProtection
*
xlsxSheetProtection
`xml:"sheetProtection"`
MergeCells
*
xlsxMergeCells
`xml:"mergeCells,omitempty"`
MergeCells
*
xlsxMergeCells
`xml:"mergeCells,omitempty"`
ConditionalFormatting
*
xlsxConditionalFormatting
`xml:"conditionalFormatting"`
ConditionalFormatting
[]
*
xlsxConditionalFormatting
`xml:"conditionalFormatting"`
DataValidations
*
xlsxDataValidations
`xml:"dataValidations"`
DataValidations
*
xlsxDataValidations
`xml:"dataValidations"`
Hyperlinks
*
xlsxHyperlinks
`xml:"hyperlinks"`
Hyperlinks
*
xlsxHyperlinks
`xml:"hyperlinks"`
PrintOptions
*
xlsxPrintOptions
`xml:"printOptions"`
PrintOptions
*
xlsxPrintOptions
`xml:"printOptions"`
PageMargins
*
xlsxPageMargins
`xml:"pageMargins"`
PageMargins
*
xlsxPageMargins
`xml:"pageMargins"`
PageSetUp
*
xlsxPageSetUp
`xml:"pageSetup"`
PageSetUp
*
xlsxPageSetUp
`xml:"pageSetup"`
HeaderFooter
*
xlsxHeaderFooter
`xml:"headerFooter"`
HeaderFooter
*
xlsxHeaderFooter
`xml:"headerFooter"`
Drawing
*
xlsxDrawing
`xml:"drawing"`
Drawing
*
xlsxDrawing
`xml:"drawing"`
LegacyDrawing
*
xlsxLegacyDrawing
`xml:"legacyDrawing"`
LegacyDrawing
*
xlsxLegacyDrawing
`xml:"legacyDrawing"`
Picture
*
xlsxPicture
`xml:"picture"`
Picture
*
xlsxPicture
`xml:"picture"`
TableParts
*
xlsxTableParts
`xml:"tableParts"`
TableParts
*
xlsxTableParts
`xml:"tableParts"`
ExtLst
*
xlsxExtLst
`xml:"extLst"`
ExtLst
*
xlsxExtLst
`xml:"extLst"`
}
}
// xlsxDrawing change r:id to rid in the namespace.
// xlsxDrawing change r:id to rid in the namespace.
...
@@ -348,6 +348,7 @@ type xlsxSheetProtection struct {
...
@@ -348,6 +348,7 @@ type xlsxSheetProtection struct {
// condition is true. This collection expresses conditional formatting rules
// condition is true. This collection expresses conditional formatting rules
// applied to a particular cell or range.
// applied to a particular cell or range.
type
xlsxConditionalFormatting
struct
{
type
xlsxConditionalFormatting
struct
{
SQRef
string
`xml:"sqref,attr,omitempty"`
CfRule
string
`xml:",innerxml"`
CfRule
string
`xml:",innerxml"`
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录