Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
f71f80b4
T
Tabler
项目概览
Dashboards
/
Tabler
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f71f80b4
编写于
12月 08, 2019
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
editorconfig fixes, charts demo
上级
3f081d6d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
38 addition
and
45 deletion
+38
-45
.editorconfig
.editorconfig
+1
-10
pages/_data/charts.yml
pages/_data/charts.yml
+19
-16
pages/_includes/cards/charts/card.html
pages/_includes/cards/charts/card.html
+0
-10
pages/_includes/layout/homepage.html
pages/_includes/layout/homepage.html
+2
-2
pages/_includes/ui/chart.html
pages/_includes/ui/chart.html
+3
-3
pages/charts.html
pages/charts.html
+13
-4
未找到文件。
.editorconfig
浏览文件 @
f71f80b4
...
...
@@ -10,8 +10,8 @@ indent_style=tab
tab_width=3
[*.html]
indent_style=space
indent_size=3
insert_final_newline=false
[*.md]
indent_style=tab
...
...
@@ -20,12 +20,3 @@ tab_width=3
[*.js.map]
indent_style=tab
indent_size=3
[{*.css,*.scss}]
indent_style=space
indent_size=2
insert_final_newline = true
[{*.yml,*.yaml}]
indent_style=space
indent_size=2
pages/_data/charts.yml
浏览文件 @
f71f80b4
total-sales
:
type
:
donut
demo
:
true
sparkline
:
true
hide-legend
:
true
name
:
Total sales
...
...
@@ -19,6 +20,7 @@ total-sales:
campaigns
:
name
:
Campaigns
demo
:
true
type
:
radialBar
sparkline
:
true
hide-legend
:
true
...
...
@@ -35,6 +37,7 @@ campaigns:
tasks
:
name
:
Tasks
demo
:
true
type
:
line
categories
:
[
'
M'
,
'
T'
,
'
W'
,
'
T'
,
'
F'
,
'
S'
,
'
S'
,
'
M'
,
'
T'
,
'
W'
,
'
T'
,
'
F'
,
'
S'
,
'
S'
,
'
M'
,
'
T'
,
'
W'
]
groups
:
[
1
,
2
,
3
]
...
...
@@ -71,7 +74,7 @@ development-activity:
line
:
name
:
Employment Growth
d
isplay
:
true
d
emo
:
true
type
:
line
show-grid
:
true
categories
:
[
'
2013'
,
'
2014'
,
'
2015'
,
'
2016'
,
'
2017'
,
'
2018'
]
...
...
@@ -88,7 +91,7 @@ line:
line-stroke
:
name
:
Line chart
d
isplay
:
true
d
emo
:
true
type
:
line
stroke-curve
:
straight
hide-legend
:
true
...
...
@@ -107,7 +110,7 @@ line-stroke:
stepline
:
name
:
Stepline
d
isplay
:
true
d
emo
:
true
type
:
line
hide-legend
:
true
stroke-curve
:
stepline
...
...
@@ -119,7 +122,7 @@ stepline:
temperature
:
name
:
Monthly Average Temperature
d
isplay
:
true
d
emo
:
true
type
:
line
show-labels
:
true
show-data-labels
:
true
...
...
@@ -138,7 +141,7 @@ temperature:
area
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
area
hide-legend
:
true
categories
:
[
'
Jan'
,
'
Feb'
,
'
Mar'
,
'
Apr'
,
'
May'
,
'
Jun'
]
...
...
@@ -153,7 +156,7 @@ area:
area-spline
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
area
spline
:
true
hide-legend
:
true
...
...
@@ -169,7 +172,7 @@ area-spline:
area-spline-stacked
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
area
spline
:
true
hide-legend
:
true
...
...
@@ -186,7 +189,7 @@ area-spline-stacked:
spline
:
name
:
Wind speed during two days
d
isplay
:
true
d
emo
:
true
type
:
line
spline
:
true
show-labels
:
true
...
...
@@ -203,7 +206,7 @@ spline:
spline-rotated
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
line
spline
:
true
rotated
:
true
...
...
@@ -220,7 +223,7 @@ spline-rotated:
bar
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
bar
hide-legend
:
true
categories
:
[
'
Jan'
,
'
Feb'
,
'
Mar'
,
'
Apr'
,
'
May'
,
'
Jun'
]
...
...
@@ -234,7 +237,7 @@ bar:
bar-rotated
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
bar
rotated
:
true
hide-legend
:
true
...
...
@@ -250,7 +253,7 @@ bar-rotated:
bar-stacked
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
bar
stacked
:
true
hide-legend
:
true
...
...
@@ -266,7 +269,7 @@ bar-stacked:
pie
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
pie
hide-legend
:
true
show-data-labels
:
true
...
...
@@ -287,7 +290,7 @@ pie:
donut
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
donut
sparkline
:
true
hide-legend
:
true
...
...
@@ -302,7 +305,7 @@ donut:
scatter
:
name
:
Lorem ipsum
d
isplay
:
true
d
emo
:
true
type
:
scatter
hide-legend
:
true
categories
:
[
'
Jan'
,
'
Feb'
,
'
Mar'
,
'
Apr'
,
'
May'
,
'
Jun'
]
...
...
@@ -317,7 +320,7 @@ scatter:
combination
:
name
:
Combination chart
d
isplay
:
true
d
emo
:
true
type
:
bar
types
:
2
:
'
line'
...
...
pages/_includes/cards/charts/card.html
已删除
100644 → 0
浏览文件 @
3f081d6d
{% assign data = site.data.charts[include.chart-id] %}
{% assign height = include.height | default: 10 %}
<div
class=
"card"
>
<div
class=
"card-body"
>
{% if include.title %}
<h3
class=
"card-title"
>
{{ include.title }}
</h3>
{% endif %}
{% include ui/chart.html height=height chart-id=include.chart-id %}
</div>
</div>
pages/_includes/layout/homepage.html
浏览文件 @
f71f80b4
...
...
@@ -43,10 +43,10 @@
<div
class=
"col-lg-6"
>
<div
class=
"row row-deck"
>
<div
class=
"col-md-12"
>
{%
include cards/charts/card.html chart-id="temperature" height=10
%}
{%
comment %}{% include cards/charts/card.html chart-id="temperature" height=10 %}{% endcomment
%}
</div>
<div
class=
"col-md-12"
>
{%
include cards/charts/card.html chart-id="donut" height=10
%}
{%
comment %}{% include cards/charts/card.html chart-id="donut" height=10 %}{% endcomment
%}
</div>
</div>
</div>
...
...
pages/_includes/ui/chart.html
浏览文件 @
f71f80b4
...
...
@@ -105,10 +105,10 @@
{
%
endif
%
}
{
%
if
data
.
series
%
}
colors
:
[
//chart colors
colors
:
[
{
%
for
serie
in
data
.
series
%
}
{{
serie
.
color
|
default
:
'
blue
'
|
tabler_js_color
}}{
%
unless
forloop
.
last
%
},{
%
endunless
%
}{
%
endfor
%
}
],
{{
serie
.
color
|
default
:
'
blue
'
|
tabler_js_color
}}{
%
unless
forloop
.
last
%
},{
%
endunless
%
}{
%
endfor
%
}
],
{
%
endif
%
}
{
%
if
data
.
hide
-
legend
%
}
...
...
pages/charts.html
浏览文件 @
f71f80b4
---
title: Charts
page-title: Charts
menu: charts
---
<div
class=
"row"
>
{% for chart in site.data.charts %}
{% if chart[1].d
isplay
%}
{% assign chart-
name
= chart[0] %}
{% if chart[1].d
emo
%}
{% assign chart-
id
= chart[0] %}
<div
class=
"col-lg-6 col-xl-4"
>
{% include cards/charts/card.html chart-id=chart-name %}
<div
class=
"card"
>
{% if chart[1].name %}
<div
class=
"card-header"
>
<h3
class=
"card-title"
>
{{ chart[1].name }}
</h3>
</div>
{% endif %}
<div
class=
"card-body"
>
{% include ui/chart.html chart-id=chart-id height=15 %}
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录