Skip to content

Commit

Permalink
Merge pull request #214 from VisActor/feat/table-infographic
Browse files Browse the repository at this point in the history
feat: add table infographic templage
  • Loading branch information
neuqzxy authored Jan 9, 2025
2 parents 071edea + 2b9f1f2 commit 5527920
Show file tree
Hide file tree
Showing 7 changed files with 1,579 additions and 4 deletions.
523 changes: 523 additions & 0 deletions docs/assets/examples/en/infographic/table/pricing-plans.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/assets/examples/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@
"en": "Unit Infographic Example"
}
},
{
"path": "table/pricing-plans",
"title": {
"zh": "表格信息图:定价表",
"en": "Table Infographic: Pricing Plans"
}
},
{
"path": "line-chart-leftRight",
"title": {
Expand Down
523 changes: 523 additions & 0 deletions docs/assets/examples/zh/infographic/table/pricing-plans.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ export class VTableGraphic extends Rect {
// stage.pauseTriggerEvent();
}
stage.resumeRender();
this.setAttributes({
// @ts-ignore
fill: 'rgba(255,0,0,0.2)'
});
}

private _createOption(params: ITableGraphicAttribute) {
Expand Down
1 change: 1 addition & 0 deletions packages/vstory-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export * from './character/component/interface/character-component';
export * from './utils/factory';

export { VChart } from '@visactor/vchart';
export * as VTable from '@visactor/vtable';

// export * from './demo';
5 changes: 5 additions & 0 deletions packages/vstory/demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import { TextComponent } from './demos/component/text';
import { SpecAxes } from './demos/chart/runtime/spec-axes';
import { RuntimeTotalLabel } from './demos/chart/runtime/total-label';
import { RectComponent } from './demos/component/rect';
import { TableInfographic } from './demos/infographic/infographic-table';

type MenusType = (
| {
Expand Down Expand Up @@ -249,6 +250,10 @@ const App = () => {
name: 'infographic',
component: Infographic
},
{
name: 'table',
component: TableInfographic
},
{
name: 'Dapanji',
component: Dapanji
Expand Down
Loading

0 comments on commit 5527920

Please sign in to comment.