@visactor/vtable 1.23.0 → 1.23.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/components/legend/continue-legend/continue-legend.js +5 -4
- package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -1
- package/cjs/components/legend/discrete-legend/discrete-legend.js +5 -4
- package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -1
- package/cjs/components/title/title.js +4 -4
- package/cjs/components/title/title.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +4 -0
- package/cjs/core/BaseTable.js +26 -18
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +5 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +50 -33
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js.map +1 -1
- package/es/components/legend/continue-legend/continue-legend.js +5 -4
- package/es/components/legend/continue-legend/continue-legend.js.map +1 -1
- package/es/components/legend/discrete-legend/discrete-legend.js +5 -4
- package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -1
- package/es/components/title/title.js +4 -4
- package/es/components/title/title.js.map +1 -1
- package/es/core/BaseTable.d.ts +4 -0
- package/es/core/BaseTable.js +26 -18
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/ts-types/base-table.d.ts +5 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -118,10 +118,30 @@ const option = {
|
|
|
118
118
|
widthMode:'standard'
|
|
119
119
|
};
|
|
120
120
|
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Component Layout Priority
|
|
121
124
|
|
|
125
|
+
The `componentLayoutOrder` option allows you to control the layout priority of `title` and `legend`. This affects the order in which they occupy space in the drawing area. By default, the order is `['legend', 'title']`.
|
|
122
126
|
|
|
127
|
+
To place the title above the legend, you can configure it as follows:
|
|
123
128
|
|
|
129
|
+
```javascript
|
|
130
|
+
const option = {
|
|
131
|
+
// ...other options
|
|
132
|
+
title: {
|
|
133
|
+
text: 'Sales Analysis',
|
|
134
|
+
orient: 'top',
|
|
135
|
+
align: 'center'
|
|
136
|
+
},
|
|
137
|
+
legends: {
|
|
138
|
+
orient: 'top',
|
|
139
|
+
// ...other legend options
|
|
140
|
+
},
|
|
141
|
+
componentLayoutOrder: ['title', 'legend']
|
|
142
|
+
};
|
|
124
143
|
|
|
144
|
+
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
|
|
125
145
|
```
|
|
126
146
|
|
|
127
147
|
##
|