Skip to content

Commit 2bbbf9e

Browse files
author
pipeline
committed
v18.4.48 is released
1 parent 4d362af commit 2bbbf9e

File tree

118 files changed

+1270
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1270
-554
lines changed

controls/calendars/src/datepicker/datepicker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,7 @@ export class DatePicker extends Calendar implements IInput {
11501150
}
11511151
} else {
11521152
date = this.globalize.parseDate(this.inputElement.value, dateOptions);
1153+
date = (!isNullOrUndefined(date) && isNaN(+date)) ? null : date;
11531154
if (!isNullOrUndefined(this.formatString) && this.inputElement.value !== '' && this.strictMode) {
11541155
if ((this.isPopupClicked || (!this.isPopupClicked && this.inputElement.value === this.previousElementValue))
11551156
&& this.formatString.indexOf('y') === -1) {

controls/charts/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## [Unreleased]
44

5+
## 18.4.48 (2021-03-16)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#304737` - Remove child of null console error thrown while using canvas mode issue has been fixed.
12+
- `#F157327` - Fixed the data labels are overlapped issue in chart.
13+
- `#314894` - Stripline is not working in datetime for core platform issue fixed.
14+
- `#F162046` - Dynamic indicator change using useState issue resolved.
15+
516
## 18.4.47 (2021-03-09)
617

718
### Chart

controls/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-charts",
3-
"version": "18.4.46",
3+
"version": "18.4.47",
44
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/charts/src/chart/axis/strip-line.ts

Lines changed: 191 additions & 132 deletions
Large diffs are not rendered by default.

controls/charts/src/chart/chart.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
32603260
blazorTemplatesReset(this);
32613261
if (this.enableCanvas && this.svgObject && (this.svgObject as HTMLElement).tagName === 'CANVAS' ) {
32623262
(this.renderer as CanvasRenderer).clearRect(new Rect(0, 0, this.availableSize.width, this.availableSize.height));
3263-
remove(this.svgObject);
3263+
if (this.svgObject.parentNode) { remove(this.svgObject); }
32643264
return null;
32653265
}
32663266
removeElement(this.element.id + '_Secondary_Element');
@@ -3383,10 +3383,6 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
33833383
public onPropertyChanged(newProp: ChartModel, oldProp: ChartModel): void {
33843384
let renderer: boolean = false;
33853385
let refreshBounds: boolean = false;
3386-
if (Object.keys(newProp).length === 1 && Object.keys(newProp)[0] === 'indicators') {
3387-
//add valid check,it should happen only when property change is triggered for target series
3388-
return;
3389-
}
33903386
this.animateSeries = false;
33913387
if (!this.delayRedraw) {
33923388
for (let prop of Object.keys(newProp)) {
@@ -3480,6 +3476,9 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
34803476
refreshBounds = true;
34813477
}
34823478
break;
3479+
case 'indicators':
3480+
refreshBounds = true;
3481+
break;
34833482
case 'zoomSettings':
34843483
if (newProp.zoomSettings.enableScrollbar || oldProp.zoomSettings.enableScrollbar) {
34853484
refreshBounds = true;

controls/charts/src/chart/model/chart-base-model.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ export interface StripLineSettingsModel {
197197
* @default null
198198
* @aspDefaultValueIgnore
199199
*/
200-
start?: number | Date;
200+
start?: Object | number | Date;
201201

202202
/**
203203
* End value of the strip line.
204204
* @default null
205205
* @aspDefaultValueIgnore
206206
*/
207-
end?: number | Date;
207+
end?: Object | number | Date;
208208

209209
/**
210210
* Size of the strip line, when it starts from the origin.
@@ -244,14 +244,14 @@ export interface StripLineSettingsModel {
244244
* @default null
245245
* @aspDefaultValueIgnore
246246
*/
247-
repeatEvery?: number | Date;
247+
repeatEvery?: Object | number | Date;
248248

249249
/**
250250
* repeatUntil value of the strip line.
251251
* @default null
252252
* @aspDefaultValueIgnore
253253
*/
254-
repeatUntil?: number | Date;
254+
repeatUntil?: Object | number | Date;
255255

256256
/**
257257
* isSegmented value of the strip line
@@ -265,14 +265,14 @@ export interface StripLineSettingsModel {
265265
* @default null
266266
* @aspDefaultValueIgnore
267267
*/
268-
segmentStart?: number | Date;
268+
segmentStart?: Object | number | Date;
269269

270270
/**
271271
* segmentEnd value of the strip line.
272272
* @default null
273273
* @aspDefaultValueIgnore
274274
*/
275-
segmentEnd?: number | Date;
275+
segmentEnd?: Object | number | Date;
276276

277277
/**
278278
* segmentAxisName of the strip line.

controls/charts/src/chart/model/chart-base.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ export class StripLineSettings extends ChildProperty<StripLineSettings> {
219219
* @aspDefaultValueIgnore
220220
*/
221221
@Property(null)
222-
public start: number | Date;
222+
public start: Object | number | Date;
223223

224224
/**
225225
* End value of the strip line.
226226
* @default null
227227
* @aspDefaultValueIgnore
228228
*/
229229
@Property(null)
230-
public end: number | Date;
230+
public end: Object | number | Date;
231231

232232
/**
233233
* Size of the strip line, when it starts from the origin.
@@ -273,15 +273,15 @@ export class StripLineSettings extends ChildProperty<StripLineSettings> {
273273
* @aspDefaultValueIgnore
274274
*/
275275
@Property(null)
276-
public repeatEvery: number | Date;
276+
public repeatEvery: Object | number | Date;
277277

278278
/**
279279
* repeatUntil value of the strip line.
280280
* @default null
281281
* @aspDefaultValueIgnore
282282
*/
283283
@Property(null)
284-
public repeatUntil: number | Date;
284+
public repeatUntil: Object | number | Date;
285285

286286
/**
287287
* isSegmented value of the strip line
@@ -297,15 +297,15 @@ export class StripLineSettings extends ChildProperty<StripLineSettings> {
297297
* @aspDefaultValueIgnore
298298
*/
299299
@Property(null)
300-
public segmentStart: number | Date;
300+
public segmentStart: Object | number | Date;
301301

302302
/**
303303
* segmentEnd value of the strip line.
304304
* @default null
305305
* @aspDefaultValueIgnore
306306
*/
307307
@Property(null)
308-
public segmentEnd: number | Date;
308+
public segmentEnd: Object | number | Date;
309309

310310
/**
311311
* segmentAxisName of the strip line.

controls/charts/src/chart/series/chart-series-model.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Property, ChildProperty, Complex, Collection, DateFormatOptions, getValue } from '@syncfusion/ej2-base';import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';import { StackValues, RectOption, ControlPoints, PolarArc, appendChildElement, appendClipElement } from '../../common/utils/helper';import { firstToLowerCase, ChartLocation, CircleOption, IHistogramValues } from '../../common/utils/helper';import { Rect, SvgRenderer, CanvasRenderer } from '@syncfusion/ej2-svg-base';import { ChartSeriesType, ChartShape, LegendShape, LabelPosition, SeriesValueType, EmptyPointMode, SplineType } from '../utils/enum';import { ChartDrawType } from '../utils/enum';import { BorderModel, FontModel, MarginModel, AnimationModel, EmptyPointSettingsModel, OffsetModel } from '../../common/model/base-model';import { ConnectorModel } from '../../common/model/base-model';import { CornerRadiusModel, DragSettingsModel } from '../../common/model/base-model';import { ErrorBarType, ErrorBarDirection, ErrorBarMode, TrendlineTypes } from '../utils/enum';import { Border, Font, Margin, Animation, EmptyPointSettings, CornerRadius, Connector, DragSettings } from '../../common/model/base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Chart } from '../chart';import { Axis, Column, Row } from '../axis/axis';import { Data } from '../../common/model/data';import { Offset } from '../../common/model/base';import { ISeriesRenderEventArgs } from '../../chart/model/chart-interface';import { seriesRender } from '../../common/model/constants';import { Alignment, SeriesCategories } from '../../common/utils/enum';import { BoxPlotMode, Segment } from '../utils/enum';import { sort, getVisiblePoints, setRange } from '../../common/utils/helper';import { Browser } from '@syncfusion/ej2-base';import { StockSeries } from '../../stock-chart/index';
1+
import { Property, ChildProperty, Complex, Collection, DateFormatOptions, getValue } from '@syncfusion/ej2-base';import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';import { StackValues, RectOption, ControlPoints, PolarArc, appendChildElement, appendClipElement } from '../../common/utils/helper';import { firstToLowerCase, ChartLocation, CircleOption, IHistogramValues } from '../../common/utils/helper';import { Rect, SvgRenderer, CanvasRenderer } from '@syncfusion/ej2-svg-base';import { ChartSeriesType, ChartShape, LegendShape, LabelPosition, SeriesValueType, EmptyPointMode, SplineType } from '../utils/enum';import { ChartDrawType, DataLabelIntersectAction } from '../utils/enum';import { BorderModel, FontModel, MarginModel, AnimationModel, EmptyPointSettingsModel, OffsetModel } from '../../common/model/base-model';import { ConnectorModel } from '../../common/model/base-model';import { CornerRadiusModel, DragSettingsModel } from '../../common/model/base-model';import { ErrorBarType, ErrorBarDirection, ErrorBarMode, TrendlineTypes } from '../utils/enum';import { Border, Font, Margin, Animation, EmptyPointSettings, CornerRadius, Connector, DragSettings } from '../../common/model/base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Chart } from '../chart';import { Axis, Column, Row } from '../axis/axis';import { Data } from '../../common/model/data';import { Offset } from '../../common/model/base';import { ISeriesRenderEventArgs } from '../../chart/model/chart-interface';import { seriesRender } from '../../common/model/constants';import { Alignment, SeriesCategories } from '../../common/utils/enum';import { BoxPlotMode, Segment } from '../utils/enum';import { sort, getVisiblePoints, setRange } from '../../common/utils/helper';import { Browser } from '@syncfusion/ej2-base';import { StockSeries } from '../../stock-chart/index';
22

33
/**
44
* Interface for a class DataLabelSettings
@@ -118,7 +118,7 @@ export interface DataLabelSettingsModel {
118118
* @default 'Hide'
119119
*/
120120

121-
labelIntersectAction?: string;
121+
labelIntersectAction?: DataLabelIntersectAction;
122122

123123
}
124124

controls/charts/src/chart/series/chart-series.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ErrorBarSettingsModel, ErrorBarCapSettingsModel } from '../series/chart
66
import { firstToLowerCase, ChartLocation, CircleOption, IHistogramValues } from '../../common/utils/helper';
77
import { Rect, SvgRenderer, CanvasRenderer } from '@syncfusion/ej2-svg-base';
88
import { ChartSeriesType, ChartShape, LegendShape, LabelPosition, SeriesValueType, EmptyPointMode, SplineType } from '../utils/enum';
9-
import { ChartDrawType } from '../utils/enum';
9+
import { ChartDrawType, DataLabelIntersectAction } from '../utils/enum';
1010
import { BorderModel, FontModel, MarginModel, AnimationModel, EmptyPointSettingsModel, OffsetModel } from '../../common/model/base-model';
1111
import { ConnectorModel } from '../../common/model/base-model';
1212
import { CornerRadiusModel, DragSettingsModel } from '../../common/model/base-model';
@@ -160,7 +160,7 @@ export class DataLabelSettings extends ChildProperty<DataLabelSettings> {
160160
*/
161161

162162
@Property('Hide')
163-
public labelIntersectAction: string;
163+
public labelIntersectAction: DataLabelIntersectAction;
164164

165165
}
166166

controls/charts/src/chart/utils/enum.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,18 @@ export type LabelIntersectAction =
583583
/** Rotate the label to 90 degree when it intersect. */
584584
'Rotate90';
585585

586+
/**
587+
* Defines the Alignment. They are
588+
* * none - Shows all the labels.
589+
* * hide - Hide the label when it intersect.
590+
* *
591+
*/
592+
export type DataLabelIntersectAction =
593+
/** Shows all the labels. */
594+
'None' |
595+
/** Hide the label when it intersect. It is also applicable for polar radar chart */
596+
'Hide';
597+
586598
/**
587599
* Defines the Position. They are
588600
* * inside - Place the ticks or labels inside to the axis line.

0 commit comments

Comments
 (0)