Skip to content

Commit

Permalink
add example for apache/echarts#11951
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Feb 25, 2020
1 parent fbcabf8 commit 3d9e50f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
17 changes: 17 additions & 0 deletions public/data/bar-background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(220, 220, 220, 0.8)'
}
}]
};
5 changes: 5 additions & 0 deletions public/data/meta/bar-background.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Bar with Background
titleCN: 带背景色的柱状图
category: bar
---
5 changes: 5 additions & 0 deletions public/data/meta/bar-markline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Bar with Marklines
titleCN: 柱状图的标记线
category: bar
---
10 changes: 9 additions & 1 deletion public/javascripts/chart-list-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,20 @@ var EXAMPLES = [
"title": "Rainfall and Evaporation",
"difficulty": 10
},
{
"category": [
"bar"
],
"id": "bar-background",
"title": "Bar Chart with Background",
"difficulty": 10
},
{
"category": [
"bar"
],
"id": "bar-markline",
"title": "Bar Chart Marklines",
"title": "Bar Chart with Marklines",
"difficulty": 10
},
{
Expand Down

0 comments on commit 3d9e50f

Please sign in to comment.