Skip to content

Commit

Permalink
docs: demo走查 (#1975)
Browse files Browse the repository at this point in the history
* docs: demo走查

* docs: 添加图例
  • Loading branch information
lxfu1 authored Nov 21, 2020
1 parent e3824c9 commit ed623a2
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 37 deletions.
10 changes: 5 additions & 5 deletions examples/bullet/basic/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const bulletPlot = new Bullet('container', {
targetField: 'target',
xField: 'title',
color: {
range: '#5B8FF9',
measure: '#5B8FF9',
target: '#5B8FF9',
range: '#f0fbff',
measure: '#1890ff',
target: '#43a5ff',
},
xAxis: {
line: null,
Expand All @@ -32,12 +32,12 @@ const bulletPlot = new Bullet('container', {
{
value: '实际值',
name: '实际值',
marker: { symbol: 'square', style: { fill: '#5B8FF9', r: 5 } },
marker: { symbol: 'square', style: { fill: '#1890ff', r: 5 } },
},
{
value: '目标值',
name: '目标值',
marker: { symbol: 'line', style: { stroke: '#5B8FF9', r: 5 } },
marker: { symbol: 'line', style: { stroke: '#43a5ff', r: 5 } },
},
],
},
Expand Down
16 changes: 8 additions & 8 deletions examples/bullet/basic/demo/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const bulletPlot = new Bullet('container', {
targetField: 'target',
xField: 'title',
color: {
range: ['#FFB1AC', '#FFDBA2', '#B4EBBF'],
measure: '#5B8FF9',
target: '#5B8FF9',
range: ['#FFbcb8', '#FFe0b0', '#bfeec8'],
measure: '#1890ff',
target: '#39a3f4',
},
xAxis: {
line: null,
Expand All @@ -35,27 +35,27 @@ const bulletPlot = new Bullet('container', {
{
value: '差',
name: '差',
marker: { symbol: 'square', style: { fill: '#FFB1AC', r: 5 } },
marker: { symbol: 'square', style: { fill: '#FFbcb8', r: 5 } },
},
{
value: '良',
name: '良',
marker: { symbol: 'square', style: { fill: '#FFDBA2', r: 5 } },
marker: { symbol: 'square', style: { fill: '#FFe0b0', r: 5 } },
},
{
value: '优',
name: '优',
marker: { symbol: 'square', style: { fill: '#B4EBBF', r: 5 } },
marker: { symbol: 'square', style: { fill: '#bfeec8', r: 5 } },
},
{
value: '实际值',
name: '实际值',
marker: { symbol: 'square', style: { fill: '#5B8FF9', r: 5 } },
marker: { symbol: 'square', style: { fill: '#1890ff', r: 5 } },
},
{
value: '目标值',
name: '目标值',
marker: { symbol: 'line', style: { stroke: '#5B8FF9', r: 5 } },
marker: { symbol: 'line', style: { stroke: '#39a3f4', r: 5 } },
},
],
},
Expand Down
16 changes: 8 additions & 8 deletions examples/bullet/basic/demo/grouped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const bulletPlot = new Bullet('container', {
targetField: 'target',
xField: 'title',
color: {
range: ['#FFB1AC', '#FFDBA2', '#B4EBBF'],
measure: '#5B8FF9',
target: '#5B8FF9',
range: ['#FFbcb8', '#FFe0b0', '#bfeec8'],
measure: '#1890ff',
target: '#39a3f4',
},
label: {
measure: {
Expand All @@ -58,27 +58,27 @@ const bulletPlot = new Bullet('container', {
{
value: '差',
name: '差',
marker: { symbol: 'square', style: { fill: '#FFB1AC', r: 5 } },
marker: { symbol: 'square', style: { fill: '#FFbcb8', r: 5 } },
},
{
value: '良',
name: '良',
marker: { symbol: 'square', style: { fill: '#FFDBA2', r: 5 } },
marker: { symbol: 'square', style: { fill: '#FFe0b0', r: 5 } },
},
{
value: '优',
name: '优',
marker: { symbol: 'square', style: { fill: '#B4EBBF', r: 5 } },
marker: { symbol: 'square', style: { fill: '#bfeec8', r: 5 } },
},
{
value: '实际值',
name: '实际值',
marker: { symbol: 'square', style: { fill: '#5B8FF9', r: 5 } },
marker: { symbol: 'square', style: { fill: '#1890ff', r: 5 } },
},
{
value: '目标值',
name: '目标值',
marker: { symbol: 'line', style: { stroke: '#5B8FF9', r: 5 } },
marker: { symbol: 'line', style: { stroke: '#39a3f4', r: 5 } },
},
],
},
Expand Down
10 changes: 5 additions & 5 deletions examples/bullet/basic/demo/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const bulletPlot = new Bullet('container', {
targetField: 'target',
xField: 'title',
color: {
range: '#5B8FF9',
measure: '#5B8FF9',
target: '#5B8FF9',
range: '#f0fbff',
measure: '#1890ff',
target: '#43a5ff',
},
xAxis: {
line: null,
Expand All @@ -42,12 +42,12 @@ const bulletPlot = new Bullet('container', {
{
value: '实际值',
name: '实际值',
marker: { symbol: 'square', style: { fill: '#5B8FF9', r: 5 } },
marker: { symbol: 'square', style: { fill: '#1890ff', r: 5 } },
},
{
value: '目标值',
name: '目标值',
marker: { symbol: 'line', style: { stroke: '#5B8FF9', r: 5 } },
marker: { symbol: 'line', style: { stroke: '#43a5ff', r: 5 } },
},
],
},
Expand Down
16 changes: 8 additions & 8 deletions examples/bullet/basic/demo/stacked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const bulletPlot = new Bullet('container', {
targetField: 'target',
xField: 'title',
color: {
range: ['#FFB1AC', '#FFDBA2', '#B4EBBF'],
measure: ['#5B8FF9', '#5AD8A6'],
target: '#5B8FF9',
range: ['#FFbcb8', '#FFe0b0', '#bfeec8'],
measure: '#1890ff',
target: '#39a3f4',
},
label: {
measure: {
Expand All @@ -44,17 +44,17 @@ const bulletPlot = new Bullet('container', {
{
value: '差',
name: '差',
marker: { symbol: 'square', style: { fill: '#FFB1AC', r: 5 } },
marker: { symbol: 'square', style: { fill: '#FFbcb8', r: 5 } },
},
{
value: '良',
name: '良',
marker: { symbol: 'square', style: { fill: '#FFDBA2', r: 5 } },
marker: { symbol: 'square', style: { fill: '#FFe0b0', r: 5 } },
},
{
value: '优',
name: '优',
marker: { symbol: 'square', style: { fill: '#B4EBBF', r: 5 } },
marker: { symbol: 'square', style: { fill: '#bfeec8', r: 5 } },
},
{
value: '第一季度',
Expand All @@ -64,12 +64,12 @@ const bulletPlot = new Bullet('container', {
{
value: '第二季度',
name: '第二季度',
marker: { symbol: 'square', style: { fill: ' #5AD8A6', r: 5 } },
marker: { symbol: 'square', style: { fill: ' #1890ff', r: 5 } },
},
{
value: '目标值',
name: '目标值',
marker: { symbol: 'line', style: { stroke: '#5B8FF9', r: 5 } },
marker: { symbol: 'line', style: { stroke: '#39a3f4', r: 5 } },
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions examples/general/state/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"zh": "自定义设置状态样式",
"en": "Custom state style"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*wmldRZZj9lIAAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*7hXwSaRxeYwAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "set-state.ts",
"title": {
"zh": "设置状态",
"en": "Set state"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*y8zjS5DZib8AAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*Bd2ITJ6tjIEAAAAAAAAAAAAAARQnAQ"
}
]
}
5 changes: 4 additions & 1 deletion examples/heatmap/density/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/heatmap.json')
xField: 'g',
yField: 'l',
colorField: 'tmp',
color: '#F51D27-#FA541C-#FF8C12-#FFC838-#FAFFA8-#80FF73-#12CCCC-#1890FF-#6E32C2',
color: '#c6e5ff-#9ec9ff-#7cabff-#5b8ff9-#3474db-#005cbe-#00419f-#00287e',
legend: {
position: 'bottom',
},
annotations: [
{
type: 'image',
Expand Down

0 comments on commit ed623a2

Please sign in to comment.