Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
eb6af35
fix(tooltip): tooltip(especially in connected chart) may be lagged an…
plainheart Apr 25, 2021
f4ac290
Fix: time axis overlapped labels
svedova Aug 23, 2021
090efb2
fix(polar): wrong sector clockwise when previous data is 0 #15517
Ovilia Aug 24, 2021
29a1a27
test(polar): update test case
Ovilia Aug 24, 2021
ec9b3fc
Use tick level to determine the priority
svedova Aug 24, 2021
7d33cfb
Add comment to describe the fix
svedova Aug 24, 2021
cffa380
fix(line): fix line chart animation #15581
Ovilia Aug 25, 2021
319ac07
Use z2 instead of zlevel for priority
svedova Aug 25, 2021
563fc01
Use map and have a fallback z2 value
svedova Aug 26, 2021
43b0da2
Merge pull request #15647 from apache/release
100pah Sep 1, 2021
6b488a8
chore: add nightly publish for next branch
pissang Sep 2, 2021
93164d9
Merge pull request #15655 from apache/publish-nightly-next
pissang Sep 2, 2021
ce461a6
Merge pull request #15599 from apache/fix-line-animation
pissang Sep 2, 2021
f46b404
Merge pull request #15583 from svedova/master
pissang Sep 2, 2021
42d08f7
chore: update stale action
Ovilia Sep 3, 2021
f82379c
chore: test and run now
Ovilia Sep 3, 2021
eea9770
chore: update test time
Ovilia Sep 3, 2021
dc275b5
Merge pull request #15665 from apache/fix-stale
Ovilia Sep 3, 2021
2c1a4fb
chore: fix stale config
Ovilia Sep 3, 2021
71ddcca
Merge pull request #15666 from apache/fix-stale
Ovilia Sep 3, 2021
b87a5db
chore: update stale action period
Ovilia Sep 3, 2021
ea06e74
chore: fix gramma
Ovilia Sep 3, 2021
eb42349
Merge pull request #15669 from apache/fix-stale
Ovilia Sep 3, 2021
06b33ad
fix(type): improve some types
pissang Sep 5, 2021
75aac8c
fix(polar): fix when angleAxis is inverse
Ovilia Sep 6, 2021
d072593
Merge branch 'master' of https://github.com/apache/echarts into fix-t…
plainheart Sep 7, 2021
2b46ae9
fix(test): use simpleRequire for tooltip-lag-glitch.html.
plainheart Sep 7, 2021
f4590f1
fix(test): fix typos in tooltip-lag-glitch.html.
plainheart Sep 7, 2021
ef1d850
fix: Fix MarkLine/MarkPoint/MarkArea do not work on time axis if inpu…
100pah Sep 7, 2021
babc67d
Merge pull request #15686 from apache/fix/dataset-perf
100pah Sep 7, 2021
754f676
fix(type): more precise axis types
pissang Sep 8, 2021
061b500
Merge branch 'master' into fix-polar
Ovilia Sep 8, 2021
97358af
test(polar): update visual test
Ovilia Sep 8, 2021
fcb66e2
fix(type): fix other states types may be any.
pissang Sep 8, 2021
0779757
fix(type): fix callback type in itemStyle.color #14279
pissang Sep 9, 2021
179b20a
fix(type): fix some type errors in custom series
pissang Sep 9, 2021
c789d3a
fix(type): fix some type errors
pissang Sep 9, 2021
3f52052
fix(type): expose more type from custom series
pissang Sep 9, 2021
a7e1e7f
fix(type): optimize custom renderItem return type. expose renderItem …
pissang Sep 9, 2021
8e4fbc9
style: fix missing comma
pissang Sep 9, 2021
b730055
Merge pull request #15696 from apache/improve-types
pissang Sep 9, 2021
c5fcf82
fix(sunburst): radius in levels
Ovilia Sep 10, 2021
dd1890b
fix(sunburst): improve code
Ovilia Sep 10, 2021
01bf5f1
Merge pull request #15706 from apache/fix-sunburst
pissang Sep 10, 2021
344b648
fix(line): soft clipping gradient.
pissang Sep 13, 2021
7dbf36c
fix(time): add `axisLabel.hideOverlap`
pissang Sep 13, 2021
d88f7cb
Merge pull request #15712 from apache/axis-hide-overlap
pissang Sep 13, 2021
fc507c0
test(polar): update test case
Ovilia Sep 13, 2021
fde66ec
Merge pull request #15589 from apache/fix-polar
Ovilia Sep 13, 2021
bdafcbc
Merge pull request #15711 from apache/fix-line-gradient
pissang Sep 14, 2021
3bea75a
test: optimize test cases for visual regression test
pissang Sep 14, 2021
233d2a1
Merge pull request #15715 from apache/fix-test
pissang Sep 14, 2021
35e3511
fix(legend): add back symbolKeepAspect. optimize code logic.
pissang Sep 14, 2021
6641951
Merge pull request #15683 from apache/fix-tooltip
100pah Sep 14, 2021
b98affc
Adding pt-BR lang file
williamorim Sep 14, 2021
add3f76
chaging double quotes for single quotes
williamorim Sep 14, 2021
5d667ec
Merge pull request #15722 from williamorim/ptBRlang
pissang Sep 15, 2021
26e9a95
Merge pull request #15720 from apache/fix-legend-symbol-keep-aspect
pissang Sep 15, 2021
4824ada
fix(line): fix animation is not stopped when direct update points.
pissang Sep 15, 2021
6384acf
Merge pull request #15731 from apache/fix-line-animation
pissang Sep 15, 2021
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
33 changes: 33 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,36 @@ github:
- data-viz
- canvas
- svg
protected_branches:
master:
required_status_checks:
# strict means "Require branches to be up to date before merging".
strict: false
# contexts are the names of checks that must pass
# contexts:
# - gh-infra/jenkins
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: false
required_approving_review_count: 1
required_linear_history: false
required_signatures: false
release:
required_status_checks:
strict: false
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: false
required_approving_review_count: 1
required_linear_history: false
required_signatures: false
next:
required_status_checks:
strict: false
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: false
required_approving_review_count: 1
required_linear_history: false
required_signatures: false

60 changes: 0 additions & 60 deletions .github/stale.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/nightly-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Nightly Next

on:
schedule:
- cron: '0 9 * * *' # After zrender nightly published
# committers can manually trigger with workflow_dispatch
workflow_dispatch: {}
repository_dispatch:
types: publish-nightly-next

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
with:
ref: next

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
registry-url: https://registry.npmjs.org/
- name: Setup and publish nightly
run: |
npm ci
npm run release
npm run test
npm run test:dts
node build/prepareNightly.js --next
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Closing Stale Issues

permissions:
issues: write
pull-requests: write

on:
schedule:
- cron: '0 21 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Close Stale Issues
uses: actions/stale@v4.0.0
with:
days-before-stale: 730
days-before-close: 7
stale-issue-label: stale
stale-pr-label: stale
stale-issue-message: 'This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.'
close-issue-message: 'This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!'
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.'
close-pr-message: 'This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next contribution.'
exempt-issue-labels: 'FAQ,priority: high'
operations-per-run: 500
ascending: true
44 changes: 27 additions & 17 deletions build/prepareNightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,36 @@ const packageJsonPath = __dirname + '/../package.json';
const nightlyPackageName = 'echarts-nightly';

const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
const version = packageJson.version;
const parts = /(\d+)\.(\d+)\.(\d+)($|\-.*)/.exec(version);
if (!parts) {
throw new Error(`Invalid version number ${version}`);
}
// Add date to version.
const major = +parts[1];
const minor = +parts[2];
let patch = +parts[3];
const notDev = !(parts[4] && parts[4].includes('-dev'));
if (notDev) {
// It's previous stable or rc version. Dev version should be higher.
patch++;
}

const date = new Date().toISOString().replace(/:|T|\.|-/g, '').slice(0, 8);
const nightlyVersion = `${major}.${minor}.${patch}-dev.${date}`;
function updateVersion(version) {
const isNext = process.argv.includes('--next');
const parts = /(\d+)\.(\d+)\.(\d+)($|\-)/.exec(version);
if (!parts) {
throw new Error(`Invalid version number ${version}`);
}
// Add date to version.
const major = +parts[1];
let minor = +parts[2];
let patch = +parts[3];
const isStable = !parts[4];
if (isStable) {
// It's previous stable version. Dev version should be higher.
if (isNext) {
// Increase minor version for next branch.
minor++;
}
else {
// Increase main version for master branch.
patch++;
}
}

const date = new Date().toISOString().replace(/:|T|\.|-/g, '').slice(0, 8);
return `${major}.${minor}.${patch}-dev.${date}`;
}

packageJson.name = nightlyPackageName;
packageJson.version = nightlyVersion;
packageJson.version = updateVersion(packageJson.version);

fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf-8');

Expand Down
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
* under the License.
*/

export * from './types/dist/echarts';
import * as echarts from './types/dist/echarts';
// Export for UMD module.
export as namespace echarts;
export = echarts;
23 changes: 16 additions & 7 deletions src/chart/bar/BarSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ import {
OptionDataItemObject,
SeriesSamplingOptionMixin,
SeriesLabelOption,
SeriesEncodeOptionMixin
SeriesEncodeOptionMixin,
DefaultStatesMixinEmpasis,
CallbackDataParams
} from '../../util/types';
import type Cartesian2D from '../../coord/cartesian/Cartesian2D';
import createSeriesData from '../helper/createSeriesData';
Expand All @@ -41,21 +43,28 @@ export type PolarBarLabelPosition = SeriesLabelOption['position']
export type BarSeriesLabelOption = Omit<SeriesLabelOption, 'position'>
& {position?: PolarBarLabelPosition | 'outside'};

export interface BarStateOption {
itemStyle?: BarItemStyleOption
export interface BarStateOption<TCbParams = never> {
itemStyle?: BarItemStyleOption<TCbParams>
label?: BarSeriesLabelOption
}

export interface BarItemStyleOption extends ItemStyleOption {
interface BarStatesMixin {
emphasis?: DefaultStatesMixinEmpasis
}

export interface BarItemStyleOption<TCbParams = never> extends ItemStyleOption<TCbParams> {
// Border radius is not supported for bar on polar
borderRadius?: number | number[]
}
export interface BarDataItemOption extends BarStateOption, StatesOptionMixin<BarStateOption>,
export interface BarDataItemOption extends BarStateOption,
StatesOptionMixin<BarStateOption, BarStatesMixin>,
OptionDataItemObject<OptionDataValue> {
cursor?: string
}

export interface BarSeriesOption extends BaseBarSeriesOption<BarStateOption>, BarStateOption,
export interface BarSeriesOption
extends BaseBarSeriesOption<BarStateOption<CallbackDataParams>, BarStatesMixin>,
BarStateOption<CallbackDataParams>,
SeriesStackOptionMixin, SeriesSamplingOptionMixin, SeriesEncodeOptionMixin {

type?: 'bar'
Expand Down Expand Up @@ -151,7 +160,7 @@ class BarSeriesModel extends BaseBarSeriesModel<BarSeriesOption> {
},

realtimeSort: false
});
} as BarSeriesOption);

}

Expand Down
14 changes: 3 additions & 11 deletions src/chart/bar/BarView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,18 +746,9 @@ const elementCreator: {
seriesModel, data, newIndex, layout: SectorLayout, isRadial: boolean,
animationModel, axisModel, isUpdate, roundCap
) {
// Keep the same logic with bar in catesion: use end value to control
// direction. Notice that if clockwise is true (by default), the sector
// will always draw clockwisely, no matter whether endAngle is greater
// or less than startAngle.
const clockwise = layout.startAngle < layout.endAngle;

const ShapeClass = (!isRadial && roundCap) ? Sausage : Sector;

const sector = new ShapeClass({
shape: defaults({
clockwise: clockwise
}, layout),
shape: layout,
z2: 1
});

Expand Down Expand Up @@ -909,7 +900,8 @@ const getLayout: {
r0: layout.r0,
r: layout.r,
startAngle: layout.startAngle,
endAngle: layout.endAngle
endAngle: layout.endAngle,
clockwise: layout.clockwise
} as SectorLayout;
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/chart/bar/BaseBarSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ import {
SeriesOnCartesianOptionMixin,
SeriesOnPolarOptionMixin,
ScaleDataValue,
DefaultExtraStateOpts
DefaultStatesMixin
} from '../../util/types';
import GlobalModel from '../../model/Global';
import Cartesian2D from '../../coord/cartesian/Cartesian2D';
import SeriesData from '../../data/SeriesData';


export interface BaseBarSeriesOption<StateOption, ExtraStateOption = DefaultExtraStateOpts>
export interface BaseBarSeriesOption<StateOption, ExtraStateOption = DefaultStatesMixin>
extends SeriesOption<StateOption, ExtraStateOption>,
SeriesOnCartesianOptionMixin,
SeriesOnPolarOptionMixin {
Expand Down
12 changes: 7 additions & 5 deletions src/chart/boxplot/BoxplotSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import {
OptionDataValueNumeric,
StatesOptionMixin,
SeriesEncodeOptionMixin,
DefaultEmphasisFocus
DefaultEmphasisFocus,
CallbackDataParams
} from '../../util/types';
import type Axis2D from '../../coord/cartesian/Axis2D';
import Cartesian2D from '../../coord/cartesian/Cartesian2D';
Expand All @@ -37,9 +38,8 @@ import { mixin } from 'zrender/src/core/util';
// [min, Q1, median (or Q2), Q3, max]
type BoxplotDataValue = OptionDataValueNumeric[];


export interface BoxplotStateOption {
itemStyle?: ItemStyleOption
export interface BoxplotStateOption<TCbParams = never> {
itemStyle?: ItemStyleOption<TCbParams>
label?: SeriesLabelOption
}

Expand All @@ -55,7 +55,9 @@ interface ExtraStateOption {
}
}

export interface BoxplotSeriesOption extends SeriesOption<BoxplotStateOption, ExtraStateOption>, BoxplotStateOption,
export interface BoxplotSeriesOption
extends SeriesOption<BoxplotStateOption<CallbackDataParams>, ExtraStateOption>,
BoxplotStateOption<CallbackDataParams>,
SeriesOnCartesianOptionMixin, SeriesEncodeOptionMixin {
type?: 'boxplot'

Expand Down
6 changes: 3 additions & 3 deletions src/chart/candlestick/CandlestickSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ import {
ColorString,
SeriesLabelOption,
SeriesLargeOptionMixin,
OptionDataValueNumeric,
StatesOptionMixin,
SeriesEncodeOptionMixin,
DefaultEmphasisFocus
DefaultEmphasisFocus,
OptionDataValue
} from '../../util/types';
import SeriesData from '../../data/SeriesData';
import Cartesian2D from '../../coord/cartesian/Cartesian2D';
import { BrushCommonSelectorsForSeries } from '../../component/brush/selector';
import { mixin } from 'zrender/src/core/util';

type CandlestickDataValue = OptionDataValueNumeric[];
type CandlestickDataValue = OptionDataValue[];

interface CandlestickItemStyleOption extends ItemStyleOption {
color0?: ZRColor
Expand Down
Loading