Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
590c8348
T
tabler
项目概览
知鸟1号
/
tabler
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
590c8348
编写于
6月 15, 2019
作者:
C
chomik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Homepage charts
上级
ed6285ff
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
33 addition
and
14 deletion
+33
-14
pages/_data/charts.yml
pages/_data/charts.yml
+3
-3
pages/_includes/cards/charts/card.html
pages/_includes/cards/charts/card.html
+17
-0
pages/charts.html
pages/charts.html
+3
-11
pages/index.html
pages/index.html
+10
-0
未找到文件。
pages/_data/charts.yml
浏览文件 @
590c8348
...
...
@@ -32,7 +32,7 @@ development-activity:
color
:
blue
data
:
[
0
,
5
,
1
,
2
,
7
,
5
,
6
,
8
,
24
,
7
,
12
,
5
,
6
,
3
,
2
,
2
,
6
,
30
,
10
,
10
,
15
,
14
,
47
,
65
,
55
]
employment
:
line
:
name
:
Employment Growth
display
:
true
type
:
line
...
...
@@ -49,7 +49,7 @@ employment:
color
:
green
data
:
[
17
,
18
,
21
,
20
,
30
,
29
]
line-
chart-
stroke
:
line-stroke
:
name
:
Line chart
display
:
true
type
:
line
...
...
@@ -67,7 +67,7 @@ line-chart-stroke:
color
:
green
data
:
[
7
,
10
,
11
,
18
,
18
,
18
,
24
]
stepline
-chart
:
stepline
:
name
:
Stepline
display
:
true
type
:
line
...
...
pages/_includes/cards/charts/card.html
0 → 100644
浏览文件 @
590c8348
{% if include.data %}
{% assign data = include.data %}
{% else %}
{% assign data = site.data.charts[include.name] %}
{% endif %}
{% assign key = 'chart-' | append: include.name %}
<div
class=
"card"
>
{% unless include.hide-title %}
<div
class=
"card-header"
>
<h3
class=
"card-title"
>
{{ include.title | default: data.name }}
</h3>
</div>
{% endunless %}
<div
class=
"card-body"
>
<div
id=
"{{ key }}"
style=
"height: 16rem"
></div>
</div>
</div>
{% include js/charts.html id=key chart-id=include.name %}
pages/charts.html
浏览文件 @
590c8348
...
...
@@ -6,18 +6,10 @@ menu: charts
<div
class=
"row row-cards"
>
{% for chart in site.data.charts %}
{% if chart[1].display %}
{% assign
data
= chart[0] %}
{% assign
key = 'chart-' | append: data
%}
{% assign
chart-name
= chart[0] %}
{% assign
chart-data = chart[1]
%}
<div
class=
"col-lg-6 col-xl-4"
>
<div
class=
"card"
>
<div
class=
"card-header"
>
<h3
class=
"card-title"
>
{{ chart[1].name }}
</h3>
</div>
<div
class=
"card-body"
>
<div
id=
"{{ key }}"
style=
"height: 16rem"
></div>
</div>
</div>
{% include js/charts.html id=key chart-id=data %}
{% include cards/charts/card.html name=chart-name data=chart-data %}
</div>
{% endif %}
{% endfor %}
...
...
pages/index.html
浏览文件 @
590c8348
...
...
@@ -108,6 +108,16 @@ menu: level-1.level-2.level-3.level-4
{% include cards/small-stats-3.html number=621 title="Products" percentage=-1 %}
</div>
<div
class=
"col-4"
>
{% include cards/charts/card.html name="line" title="A" %}
</div>
<div
class=
"col-4"
>
{% include cards/charts/card.html name="stepline" title="B" %}
</div>
<div
class=
"col-4"
>
{% include cards/charts/card.html name="temperature" title="C" %}
</div>
{% comment %}
<div
class=
"col-lg-6"
>
{% comment %}{% include cards/development-activity.html %}{% endcomment %}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录