Skip to content

Commit

Permalink
docs: remove theme:'classic' in spec and api
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Aug 31, 2023
1 parent a64cd06 commit 33c7162
Show file tree
Hide file tree
Showing 100 changed files with 4 additions and 108 deletions.
1 change: 0 additions & 1 deletion site/docs/api/facetCircle.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const data = M.flatMap((month) =>

const chart = new Chart({
container: 'container',
theme: 'classic',
width: 480,
height: 480,
});
Expand Down
1 change: 0 additions & 1 deletion site/docs/api/facetRect.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
width: 928,
height: 270,
paddingBottom: 50,
Expand Down
1 change: 0 additions & 1 deletion site/docs/api/geoView.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ fetch('https://assets.antv.antgroup.com/g2/countries-50m.json')
};
const chart = new Chart({
container: 'container',
theme: 'classic',
autoFit: true,
});
const layer = chart.spaceLayer();
Expand Down
1 change: 0 additions & 1 deletion site/docs/api/repeatMatrix.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
width: 300,
height: 720,
paddingLeft: 50,
Expand Down
1 change: 0 additions & 1 deletion site/docs/api/spaceFlex.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
width: 900,
});

Expand Down
1 change: 0 additions & 1 deletion site/docs/api/spaceLayer.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

const scaleColor = (node) =>
Expand Down
1 change: 0 additions & 1 deletion site/docs/api/timingKeyframe.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const sex = [
];
const chart = new Chart({
container: 'container',
theme: 'classic',
autoFit: true,
paddingTop: 60,
paddingLeft: 100,
Expand Down
1 change: 0 additions & 1 deletion site/docs/api/view.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});
const scaleColor = (node) =>
node.scale('color', {
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/component/axis.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
2 changes: 0 additions & 2 deletions site/docs/spec/component/legend.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down Expand Up @@ -130,7 +129,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
2 changes: 0 additions & 2 deletions site/docs/spec/component/scrollbar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down Expand Up @@ -69,7 +68,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
2 changes: 0 additions & 2 deletions site/docs/spec/component/slider.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down Expand Up @@ -94,7 +93,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/component/title.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart.title('This is the title of chart.');
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/composition/facetCircle.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const chart = new Chart({
container: 'container',
width: 480,
height: 480,
theme: 'classic',
});

const facetCircle = chart.facetCircle().data(data).encode('position', 'month');
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/composition/facetRect.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const chart = new Chart({
width: 928,
height: 270,
paddingBottom: 50,
theme: 'classic',
});

const facetRect = chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/composition/repeatMatrix.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
width: 300,
height: 720,
paddingLeft: 50,
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/composition/spaceFlex.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
width: 900,
theme: 'classic',
});

const flex = chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/composition/spaceLayer.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

const layer = chart.spaceLayer().data({
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/composition/timingKeyframe.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ fetch(
.then((data) => {
const chart = new Chart({
container: 'container',
theme: 'classic',
paddingTop: 60,
paddingLeft: 100,
});
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/coordinate/cartesian3D.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Chart = extend(Runtime, { ...corelib(), ...threedlib() });

const chart = new Chart({
container: 'container',
theme: 'classic',
renderer,
depth: 400,
});
Expand Down
2 changes: 1 addition & 1 deletion site/docs/spec/coordinate/fisheye.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ order: 1
```js
import { Chart } from '@antv/g2';

const chart = new Chart({ theme: 'classic' });
const chart = new Chart();

chart.coordinate({
transform: [{ type: 'fisheye', focusX: 0.5, focusY: 0.5 }],
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/coordinate/parallel.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { Chart } from '@antv/g2';
const chart = new Chart({
width: 720,
paddingLeft: 60,
theme: 'classic',
});

chart.coordinate({ type: 'parallel' });
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/coordinate/polar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Polar 是极坐标系变换,将笛卡尔直角坐标系坐标变换为极坐
import { Chart } from '@antv/g2';

const chart = new Chart({
theme: 'classic',
});

chart.coordinate({ type: 'polar' });
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/coordinate/radial.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
height: 500,
});

Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/coordinate/theta.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Theta 是一种特殊的极坐标系,半径长度固定,仅将数据映射
import { Chart } from '@antv/g2';

const chart = new Chart({
theme: 'classic',
});

chart.coordinate({ type: 'theta' });
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/coordinate/transpose.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Transpose 是坐标系的转置变换,将 (x, y) 变换成 (y, x),常用于
import { Chart } from '@antv/g2';

const chart = new Chart({
theme: 'classic',
});

chart.coordinate({ transform: [{ type: 'transpose' }] });
Expand Down
2 changes: 1 addition & 1 deletion site/docs/spec/data/fetch.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ chart.data({

```js | ob
(() => {
const chart = new G2.Chart({ theme: 'classic', padding: 'auto' });
const chart = new G2.Chart();

chart.options({
type: 'point',
Expand Down
2 changes: 1 addition & 1 deletion site/docs/spec/data/fetch.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ chart.data({

```js | ob
(() => {
const chart = new G2.Chart({ theme: 'classic', padding: 'auto' });
const chart = new G2.Chart();

chart.options({
type: 'point',
Expand Down
2 changes: 0 additions & 2 deletions site/docs/spec/geo/geoPath.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Promise.all([

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down Expand Up @@ -60,7 +59,6 @@ Promise.all([

目前 `geoPath` 除了和通用 mark 相同的 API 和配置项,还有一个特殊的就是 `projection` 映射,当前 G2 内置了 [d3-geo](https://github.com/d3/d3-geo) 的所有映射。


## FAQ

### 如何绘制一个中国地图?
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/geo/geoView.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Promise.all([

const chart = new Chart({
container: 'container',
theme: 'classic',
autoFit: true,
});

Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/graph/forceGraph.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { schemeTableau10 } from 'd3-scale-chromatic';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/graph/pack.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { interpolateHcl } from 'd3-interpolate';

const chart = new Chart({
container: 'container',
theme: 'classic',
padding: 20,
});

Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/graph/sankey.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
padding: 10,
});

Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/graph/tree.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const chart = new Chart({
container: 'container',
height: 1500,
width: 800,
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/graph/treemap.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { schemeTableau10 } from 'd3-scale-chromatic';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushAxisHighlight.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const axis = {

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart.coordinate({ type: 'parallel' });
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushFilter.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushHighlight.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushXFilter.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushXHighlight.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushYFilter.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/brushYHighlight.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/chartIndex.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
paddingLeft: 50,
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/elementHighlight.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
1 change: 0 additions & 1 deletion site/docs/spec/interaction/elementHighlightByColor.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Chart } from '@antv/g2';

const chart = new Chart({
container: 'container',
theme: 'classic',
});

chart
Expand Down
Loading

0 comments on commit 33c7162

Please sign in to comment.