Skip to content

Commit

Permalink
Merge pull request #2097 from VisActor/sync/develop-to-dev-1.9.0
Browse files Browse the repository at this point in the history
Sync/develop to dev 1.9.0
  • Loading branch information
xile611 authored Jan 22, 2024
2 parents a5381a3 + 55988c0 commit ef010a5
Show file tree
Hide file tree
Showing 66 changed files with 8,993 additions and 1,881 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "feat: support `alignSelf` of layout `normal-inline` elements, fix #2072 \n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: fix sortDataByAxis not work after datazoom changed axis\n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: fix bug of crosshair timer, fix #2088\n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "feat: support new layout type region-relative-overlap\n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vchart",
"comment": "fix: update animation should exludes `defined` channel",
"type": "none"
}
],
"packageName": "@visactor/vchart"
}
27 changes: 27 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# v1.8.8

2024-01-19


**🆕 New feature**

- **@visactor/vchart**: enhance scroll effect, closed [#2037](https://github.com/VisActor/VChart/issues/2037)
- **@visactor/vchart**: upgrade @visactor/vrender-core to locked 0.17.14
- **@visactor/vchart**: sankey chart supports disableTriggerEvent configuration
- **@visactor/vchart**: support new layout type region-relative-overlap

**🐛 Bug fix**

- **@visactor/vchart**: `area.interactive` in area series spec is not available, related [#2030](https://github.com/VisActor/VChart/issues/2030)
- **@visactor/vchart**: fix sortDataByAxis not work after datazoom changed axis
- **@visactor/vchart**: crosshair should show when `trimPadding` of axis is true, fix [#2054](https://github.com/VisActor/VChart/issues/2054)
- **@visactor/vchart**: calculate layer transform for dimension tooltip
- **@visactor/vchart**: fixed the issue where activePoint does not take effect when the visible configuration of line chart point is false
- **@visactor/vchart**: different effect when configuring label.overlap:true in [#1956](https://github.com/VisActor/VChart/issues/1956)
- **@visactor/vchart**: label position incorrect with region indent
- **scroll**: event error in lynx env. fix[#2041](https://github.com/VisActor/VChart/issues/2041)
- **@visactor/vchart**: map scale ratio not correct after updateSpec or resize
- **@visactor/vchart**: fix the bug of nice when tickCount is a function, fix [#2050](https://github.com/VisActor/VChart/issues/2050)

[more detail about v1.8.8](https://github.com/VisActor/VChart/releases/tag/v1.8.8)

# v1.8.7

2024-01-11
Expand Down
27 changes: 27 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# v1.8.8

2024-01-19


**🆕 新增功能**

- **@visactor/vchart**: 增强滚动效果,已关闭 [#2037](https://github.com/VisActor/VChart/issues/2037)
- **@visactor/vchart**: 升级 @visactor/vrender-core 至锁定版本 0.17.14
- **@visactor/vchart**: sankey 图表支持 disableTriggerEvent 配置
- **@visactor/vchart**: 支持新的布局类型 region-relative-overlap

**🐛 功能修复**

- **@visactor/vchart**: `area.interactive` 在 area series spec 中不可用,相关 [#2030](https://github.com/VisActor/VChart/issues/2030)
- **@visactor/vchart**: 修复 datazoom 改变轴后 sortDataByAxis 不工作的问题
- **@visactor/vchart**: 当轴的 `trimPadding` 为 true 时,应显示 crosshair,修复 [#2054](https://github.com/VisActor/VChart/issues/2054)
- **@visactor/vchart**: 为 dimension tooltip 计算层转换
- **@visactor/vchart**: 修复了线图点的可见配置为 false 时 activePoint 不生效的问题
- **@visactor/vchart**: 在 [#1956](https://github.com/VisActor/VChart/issues/1956) 中配置 label.overlap:true 时的不同效果
- **@visactor/vchart**: label 位置与 region indent 不正确
- **scroll**: 在 lynx 环境中的事件错误。修复[#2041](https://github.com/VisActor/VChart/issues/2041)
- **@visactor/vchart**: 在 updateSpec 或 resize 后,地图比例尺不正确
- **@visactor/vchart**: 修复 tickCount 是函数时 nice 的 bug,修复 [#2050](https://github.com/VisActor/VChart/issues/2050)

[更多详情请查看 v1.8.8](https://github.com/VisActor/VChart/releases/tag/v1.8.8)

# v1.8.7

2024-01-11
Expand Down
135 changes: 135 additions & 0 deletions docs/assets/examples/en/layout/align-self.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
---
category: examples
group: layout
title: 行内元素对齐配置
order: 37-3
cover:
option: pieChart#layout
---

# 行内元素对齐配置

在图表中,行内布局的元素,可以通过`alignSelf`调整行内对齐方式。

## 关键配置

- layoutType: 'normal-inline',行内布局类型。
- alignSelf: 'end',调整行内对齐方式。

## 代码演示

```javascript livedemo
const spec = {
type: 'common',
data: [
{
id: 'id0',
values: [
{ type: '0~29', value: '126.04' },
{ type: '30~59', value: '128.77' },
{ type: '60~', value: '77.09' }
]
},
{
id: 'id1',
values: [
{ type: '0~9', value: '39.12' },
{ type: '10~19', value: '43.01' },
{ type: '20~29', value: '43.91' },
{ type: '30~39', value: '45.4' },
{ type: '40~49', value: '40.89' },
{ type: '50~59', value: '42.48' },
{ type: '60~69', value: '39.63' },
{ type: '70~79', value: '25.17' },
{ type: '80 and over', value: '12.29' }
]
}
],
series: [
{
type: 'pie',
dataIndex: 0,
outerRadius: 0.65,
innerRadius: 0,
valueField: 'value',
categoryField: 'type',
label: {
position: 'inside',
visible: true,
style: {
fill: 'white'
}
},
pie: {
style: {
stroke: '#ffffff',
lineWidth: 2
}
}
},
{
type: 'pie',
dataIndex: 1,
outerRadius: 0.8,
innerRadius: 0.67,
valueField: 'value',
categoryField: 'type',
label: {
visible: true
},
pie: {
style: {
stroke: '#ffffff',
lineWidth: 2
}
}
}
],
color: ['#98abc5', '#8a89a6', '#7b6888', '#6b486b', '#a05d56', '#d0743c', '#ff8c00'],
title: {
visible: true,
text: 'Population Distribution by Age in the United States, 2021 (in millions)',
textStyle: {
fontFamily: 'Times New Roman'
}
},
legends: [
{
visible: true,
title: {
visible: true,
text: 'Inner'
},
orient: 'right',
layoutType: 'normal-inline',
position: 'middle',
alignSelf: 'end',
maxHeight: 100,
data: (data, colorScale, globalScale) => {
return data.slice(0, 3);
}
},
{
visible: true,
orient: 'right',
layoutType: 'normal-inline',
position: 'middle',
alignSelf: 'end',
title: {
visible: true,
text: 'Outter'
},
maxHeight: 100,
data: (data, colorScale, globalScale) => {
return data.slice(3);
}
}
]
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderAsync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
```
7 changes: 7 additions & 0 deletions docs/assets/examples/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2199,6 +2199,13 @@
"zh": "行列布局",
"en": "Row and Column Layout"
}
},
{
"path": "align-self",
"title": {
"zh": "行列布局",
"en": "Row and Column Layout"
}
}
]
},
Expand Down
Loading

0 comments on commit ef010a5

Please sign in to comment.