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

feat: add table infographic templage #214

Merged
merged 1 commit into from
Jan 9, 2025
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
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
Loading