Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add examples new images #5907

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions site/examples/algorithm/sort/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"zh": "冒泡排序",
"en": "Bubble Sort"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*b5Q8R6DHJZMAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*lSdRQZt-_BsAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "selection-sort.ts",
"title": {
"zh": "选择排序",
"en": "Selection Sort"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*vLkWQLJInTIAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*STlaRaqEa6MAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "insertion-sort.ts",
"title": {
"zh": "插入排序",
"en": "Insertion Sort"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EYwETpVBlA0AAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*MbFLR46PNEcAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
10 changes: 5 additions & 5 deletions site/examples/analysis/bin/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"zh": "直方图",
"en": "Histogram"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*sE4kQYzbhS8AAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*WJFaSp1JLHQAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "binx-color.ts",
"title": {
"zh": "颜色分类直方图",
"en": "Histogram with Color"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*sk8XRJTkuwYAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*l6NBRburGGcAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "bin-color.ts",
Expand All @@ -34,23 +34,23 @@
"zh": "透明度分箱",
"en": "Bin Opacity Channel"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*T_YISqIQuasAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*REZQSLd63dYAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "bin-size.ts",
"title": {
"zh": "大小分箱",
"en": "Bin Size Channel"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*CWRPSrX4bEcAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*OTA1TLuF-l4AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "poisson.ts",
"title": {
"zh": "泊松分布",
"en": "Poisson distribution"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JGWJSYvn8okAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1YpETqJXr9QAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
4 changes: 2 additions & 2 deletions site/examples/analysis/group/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"zh": "聚合条形图",
"en": "Aggregated Bar Chart"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*BhULSZiZisIAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ZMTCT50nmwcAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "bar-aggregated-stacked.ts",
Expand All @@ -50,7 +50,7 @@
"zh": "一维聚合堆叠条形图",
"en": "Aggregated Stacked Bar Chart, 1D"
},
"screenshot": "https://mdn.alipayobjects.com/mdn/huamei_qa8qxu/afts/img/A*6CbxQ6P9bFcAAAAAAAAAAAAADmJ7AQ"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*dWoBQ7aVlcQAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "bar-multi-measure.ts",
Expand Down
10 changes: 5 additions & 5 deletions site/examples/analysis/regression/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,39 @@
"zh": "线性回归线",
"en": "Linear Regression"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*svhHQLE2hFcAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*px9zQYKi5FsAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "quadratic-regression.ts",
"title": {
"zh": "二项式回归线",
"en": "Quadratic Regression"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_XyFSaCzQWIAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4C26SqNkoG8AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "exponential-regression.ts",
"title": {
"zh": "指数回归线",
"en": "Exponential Regression"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*0X4NR4DrVw4AAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*tPkpRqqP7rsAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "logarithmic-regression.ts",
"title": {
"zh": "对数回归线",
"en": "Logarithmic Regression"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*V0TJS6Npo2QAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*onhxRaj8iP0AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "polynomial-regression.ts",
"title": {
"zh": "多项式回归线",
"en": "Polynomial Regression"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*PyI3SqUwQSoAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*SXUpRZiOlbIAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
12 changes: 6 additions & 6 deletions site/examples/animation/general/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@
"zh": "PathIn",
"en": "PathIn"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1668167705967/pathIn.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*uq_2SL14wgQAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "fade.ts",
"title": {
"zh": "FadeIn",
"en": "FadeIn"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1667976930984/fadeIn.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*lW80R5AYDfEAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "scale-x.ts",
"title": {
"zh": "ScaleInX",
"en": "ScaleInX"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1667976930984/scaleInX.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4j9URodi54MAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "scale-y.ts",
"title": {
"zh": "ScaleInY",
"en": "ScaleInY"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1667976930984/scaleInY.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*u5QxT7pZD68AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "wave-in.ts",
"title": {
"zh": "WaveIn",
"en": "WaveIn"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1667976930984/waveIn.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*xL5hQ5TCR4cAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "zoom-in.ts",
"title": {
"zh": "ZoomIn",
"en": "ZoomIn"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1667976930984/zoomIn.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*OE0wRJhaM3cAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
8 changes: 4 additions & 4 deletions site/examples/animation/group/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@
"zh": "折线图动画",
"en": "Line with Animation"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1668858139680/line-animation.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*dxClRrq57JMAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "interval.ts",
"title": {
"zh": "柱形图动画",
"en": "Column with Animation"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1668858139680/interval-animation.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*3xCLRLNfv7EAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "interval-polar.ts",
"title": {
"zh": "玫瑰图动画",
"en": "Animation in Polar"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1668858320153/interval-polar-animation.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*dG5TQ6IDBN0AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "area.ts",
"title": {
"zh": "面积图动画",
"en": "Area with Animation"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1668858139680/area-animation.gif"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*sh4JSao3tVgAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "point.ts",
Expand Down
4 changes: 2 additions & 2 deletions site/examples/annotation/connector/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"zh": "链接线标记的瀑布图",
"end": "Interval, Connector Annotation"
},
"screenshot": "https://mdn.alipayobjects.com/mdn/huamei_qa8qxu/afts/img/A*-a9EQpzBTDMAAAAAAAAAAAAADmJ7AQ"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*9BOSQozPCx4AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "revenue-flow-waterfall.ts",
"title": {
"zh": "线标记的瀑布图",
"en": "Revenue Flow Waterfall Chart"
},
"screenshot": "https://mdn.alipayobjects.com/mdn/huamei_qa8qxu/afts/img/A*fG4DT7XWNzUAAAAAAAAAAAAADmJ7AQ"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*qRAFQqfcyygAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
8 changes: 4 additions & 4 deletions site/examples/annotation/line/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"zh": "平均值线标注的直方图",
"en": "Histogram, Annotation Mean Value with LineX"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*kuFOR5JKe3gAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*VJVAT7Rkx9MAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "interval-mean-line.ts",
"title": {
"zh": "平均值线标注的柱状图",
"en": "Interval, Annotation Mean Value with LineY"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*kmcqRo4tfmcAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*BG5UTbE7gycAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "interval-threshold.ts",
"title": {
"zh": "突出超出阈值的柱状图",
"en": "Interval, Highlight Values beyond a Threshold"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*xZ7dTLAW1uEAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*-seGQa_dPyoAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "point-line.ts",
Expand Down Expand Up @@ -58,7 +58,7 @@
"zh": "异动趋势图",
"en": "Anomaly Trend Line, Area Annotation"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*nyVFQb9QBBkAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*DdeURpZKfwAAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
4 changes: 2 additions & 2 deletions site/examples/annotation/range/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"zh": "区域标记的散点图",
"en": "Point, Range Annotation"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*55rRTr9NWXsAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*w1BBRYvJf_UAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "line-range.ts",
"title": {
"zh": "区间标注的折线图",
"en": "Line, Range Annotation"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*dmYgTY3kxDoAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*OCgJSIpz7KMAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
1 change: 1 addition & 0 deletions site/examples/annotation/shape/demo/interval-point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
autoFit: true,
paddingRight: 30,
});

chart.coordinate({ transform: [{ type: 'transpose' }] });
Expand Down
6 changes: 3 additions & 3 deletions site/examples/annotation/shape/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"zh": "点标记的条形图",
"en": "Interval, Point Annotation"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*wvDFSJTsnrwAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ypE2SbuV6kwAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "line-badge.ts",
"title": {
"zh": "徽章标记的折线图",
"en": "Line, Badge Annotation"
},
"screenshot": "https://mdn.alipayobjects.com/mdn/huamei_qa8qxu/afts/img/A*pgeoRLW4bEcAAAAAAAAAAAAADmJ7AQ"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*INjOS7ExVzYAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "watermark.ts",
"title": {
"zh": "徽章水印",
"en": "Watermark"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*aIpTRZ-_b9wAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*LA11Rqfk2Y4AAAAAAAAAAAAADmJ7AQ/original"
}
]
}
2 changes: 1 addition & 1 deletion site/examples/component/axis/demo/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function medal(ranking) {
text,
fill: 'gray',
textAlign: 'center',
transform: `translate(0, 25)`,
transform: `translate(0, 35)`,
},
});

Expand Down
8 changes: 4 additions & 4 deletions site/examples/component/axis/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
"zh": "x 和 y 方向坐标轴",
"en": "AxisX and AxisY"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*CtPmSYjKyKAAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*84x4RKr1uA8AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "axis-polar.ts",
"title": {
"zh": "极坐标下坐标轴",
"en": "Axis Polar"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*5KPvQoiA0XMAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*s_KgSKR6XeIAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "axis-multi.ts",
"title": {
"zh": "多坐标轴",
"en": "Multi Axis"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*aQv5Q7WKx3UAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*aeDQQqTlA1sAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "axis.ts",
"title": {
"zh": "自定义坐标轴标签",
"en": "Axis"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_nL3RJIScmcAAAAAAAAAAAAADmJ7AQ/original"
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*NEbsT6qCFSEAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
Loading
Loading