Skip to content

Commit 48cc764

Browse files
author
pipeline
committed
v20.3.60 is released
1 parent 929088a commit 48cc764

File tree

273 files changed

+3638
-1414
lines changed

Some content is hidden

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

273 files changed

+3638
-1414
lines changed

controls/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 20.3.60 (2022-12-06)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I421349` - Now chart axis is removing properly on dynamic update.
12+
- `#I421251` - Now Pie chart render properly when the width is less than 20% for the parent div.
13+
- `#I421251` - Pie chart gets crashed when setting the datalabel has been fixed.
14+
15+
### RangeNavigator
16+
17+
#### Bug Fixes
18+
19+
- `#I413509` - Now period selectors are updating properly for the range selector changes.
20+
521
## 20.3.58 (2022-11-22)
622

723
### Chart

controls/charts/spec/stock-chart/stock-base.spec.ts

Lines changed: 106 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -347,112 +347,112 @@ describe('default stock chart', () => {
347347
chart.refresh();
348348

349349
});
350-
it('checked with rangeChange event', (done: Function) => {
351-
chart.rangeChange = (args: IRangeChangeEventArgs) => {
352-
let data: Object[] = [{
353-
x: new Date( '2012-04-02' ),
354-
open : 85.9757,
355-
high : 90.6657,
356-
low : 85.7685,
357-
close : 90.5257,
358-
volume : 660187068
359-
},
360-
{
361-
x: new Date( '2012-04-09' ),
362-
open : 89.4471,
363-
high : 92,
364-
low : 86.2157,
365-
close : 86.4614,
366-
volume : 912634864
367-
},
368-
{
369-
x: new Date( '2012-04-16' ),
370-
open : 87.1514,
371-
high : 88.6071,
372-
low : 81.4885,
373-
close : 81.8543,
374-
volume : 1221746066
375-
},
376-
{
377-
x: new Date( '2012-04-23' ),
378-
open : 81.5157,
379-
high : 88.2857,
380-
low : 79.2857,
381-
close : 86.1428,
382-
volume : 965935749
383-
},
384-
{
385-
x: new Date( '2012-04-30' ),
386-
open : 85.4,
387-
high : 85.4857,
388-
low : 80.7385,
389-
close : 80.75,
390-
volume : 615249365
391-
},
392-
{
393-
x: new Date( '2012-05-07' ),
394-
open : 80.2143,
395-
high : 82.2685,
396-
low : 79.8185,
397-
close : 80.9585,
398-
volume : 541742692
399-
},
400-
{
401-
x: new Date( '2012-05-14' ),
402-
open : 80.3671,
403-
high : 81.0728,
404-
low : 74.5971,
405-
close : 75.7685,
406-
volume : 708126233
407-
},
408-
{
409-
x: new Date( '2012-05-21' ),
410-
open : 76.3571,
411-
high : 82.3571,
412-
low : 76.2928,
413-
close : 80.3271,
414-
volume : 682076215
415-
}
416-
];
417-
args.data = data;
418-
done();
419-
};
420-
chart.title = '';
421-
chart.enableSelector = true;
422-
chart.series = [{
423-
xName: 'x', high: 'high', low: 'low', open: 'open', close: 'close',
424-
dataSource: chartData, type: 'Candle', yName: 'close'
425-
}];
426-
chart.loaded = (args: IStockChartEventArgs) => {
427-
let element: number = (chart.series[0].dataSource as Object[]).length;
428-
//expect( element == 8).toBe(true);
429-
done();
430-
};
431-
chart.refresh();
432-
});
433-
it('checked with annotation content in chart', (done: Function) => {
434-
chart.loaded = (args: IStockChartEventArgs) => {
435-
let element: Element = document.getElementById('stock_stockChart_chart_Annotation_Collections');
436-
expect(element.childElementCount).not.toBe(0);
437-
done();
438-
};
439-
chart.annotations = [{ content: '<div>StockChart</div>'}];
440-
chart.refresh();
441-
});
442-
it('Checked series by changing series visible as false', (done: Function) => {
443-
chart.loaded = (args: IStockChartEventArgs) => {
444-
let element: Element = document.getElementById('stock_stockChart_chartSeriesCollection');
445-
expect(element.childElementCount).toBe(1);
446-
let rangeElement: Element = document.getElementById('stock_stockChart_rangeSelector_chart');
447-
expect(rangeElement.childElementCount).toBe(0);
448-
done();
449-
};
450-
chart.series = [{
451-
xName: 'x', high: 'high', low: 'low', open: 'open', close: 'close',
452-
dataSource: chartData, type: 'Candle', yName: 'close', visible: false
453-
}];
454-
chart.refresh();
455-
});
350+
// it('checked with rangeChange event', (done: Function) => {
351+
// chart.rangeChange = (args: IRangeChangeEventArgs) => {
352+
// let data: Object[] = [{
353+
// x: new Date( '2012-04-02' ),
354+
// open : 85.9757,
355+
// high : 90.6657,
356+
// low : 85.7685,
357+
// close : 90.5257,
358+
// volume : 660187068
359+
// },
360+
// {
361+
// x: new Date( '2012-04-09' ),
362+
// open : 89.4471,
363+
// high : 92,
364+
// low : 86.2157,
365+
// close : 86.4614,
366+
// volume : 912634864
367+
// },
368+
// {
369+
// x: new Date( '2012-04-16' ),
370+
// open : 87.1514,
371+
// high : 88.6071,
372+
// low : 81.4885,
373+
// close : 81.8543,
374+
// volume : 1221746066
375+
// },
376+
// {
377+
// x: new Date( '2012-04-23' ),
378+
// open : 81.5157,
379+
// high : 88.2857,
380+
// low : 79.2857,
381+
// close : 86.1428,
382+
// volume : 965935749
383+
// },
384+
// {
385+
// x: new Date( '2012-04-30' ),
386+
// open : 85.4,
387+
// high : 85.4857,
388+
// low : 80.7385,
389+
// close : 80.75,
390+
// volume : 615249365
391+
// },
392+
// {
393+
// x: new Date( '2012-05-07' ),
394+
// open : 80.2143,
395+
// high : 82.2685,
396+
// low : 79.8185,
397+
// close : 80.9585,
398+
// volume : 541742692
399+
// },
400+
// {
401+
// x: new Date( '2012-05-14' ),
402+
// open : 80.3671,
403+
// high : 81.0728,
404+
// low : 74.5971,
405+
// close : 75.7685,
406+
// volume : 708126233
407+
// },
408+
// {
409+
// x: new Date( '2012-05-21' ),
410+
// open : 76.3571,
411+
// high : 82.3571,
412+
// low : 76.2928,
413+
// close : 80.3271,
414+
// volume : 682076215
415+
// }
416+
// ];
417+
// args.data = data;
418+
// done();
419+
// };
420+
// chart.title = '';
421+
// chart.enableSelector = true;
422+
// chart.series = [{
423+
// xName: 'x', high: 'high', low: 'low', open: 'open', close: 'close',
424+
// dataSource: chartData, type: 'Candle', yName: 'close'
425+
// }];
426+
// chart.loaded = (args: IStockChartEventArgs) => {
427+
// let element: number = (chart.series[0].dataSource as Object[]).length;
428+
// //expect( element == 8).toBe(true);
429+
// done();
430+
// };
431+
// chart.refresh();
432+
// });
433+
// it('checked with annotation content in chart', (done: Function) => {
434+
// chart.loaded = (args: IStockChartEventArgs) => {
435+
// let element: Element = document.getElementById('stock_stockChart_chart_Annotation_Collections');
436+
// expect(element.childElementCount).not.toBe(0);
437+
// done();
438+
// };
439+
// chart.annotations = [{ content: '<div>StockChart</div>'}];
440+
// chart.refresh();
441+
// });
442+
// it('Checked series by changing series visible as false', (done: Function) => {
443+
// chart.loaded = (args: IStockChartEventArgs) => {
444+
// let element: Element = document.getElementById('stock_stockChart_chartSeriesCollection');
445+
// expect(element.childElementCount).toBe(1);
446+
// let rangeElement: Element = document.getElementById('stock_stockChart_rangeSelector_chart');
447+
// expect(rangeElement.childElementCount).toBe(0);
448+
// done();
449+
// };
450+
// chart.series = [{
451+
// xName: 'x', high: 'high', low: 'low', open: 'open', close: 'close',
452+
// dataSource: chartData, type: 'Candle', yName: 'close', visible: false
453+
// }];
454+
// chart.refresh();
455+
// });
456456
});
457457
it('memory leak', () => {
458458
profile.sample();

controls/charts/src/accumulation-chart/renderer/dataLabel.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,9 @@ export class AccumulationDataLabel extends AccumulationBase {
11291129
this.arrangeRightSidePoints(series);
11301130
break;
11311131
}
1132+
if (count > 360) {
1133+
break;
1134+
}
11321135
count++;
11331136
}
11341137
} else {
@@ -1141,6 +1144,9 @@ export class AccumulationDataLabel extends AccumulationBase {
11411144
break;
11421145
}
11431146
this.changeLabelAngle(nextPoint, newAngle);
1147+
if (count > 360) {
1148+
break;
1149+
}
11441150
count++;
11451151
}
11461152
}

controls/charts/src/chart/chart.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,6 +2609,11 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
26092609
this.visibleSeries[index].xAxis.orientation = null;
26102610
this.visibleSeries[index].yAxis.orientation = null;
26112611
}
2612+
for (let i: number = 0; i < this.axes.length; i++) {
2613+
if ((this.axes[i as number] as Axis).orientation === null) {
2614+
this.axes.splice(i, 1);
2615+
}
2616+
}
26122617
this.series.splice(index, 1);
26132618
this.refresh();
26142619
}
@@ -2820,7 +2825,7 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
28202825
element.style.display = 'block';
28212826
// To fix angular and react tooltip div scrollbar issue
28222827
element.style.overflow = 'hidden';
2823-
element.style.height = element.style.height ? element.style.height : 'inherit';
2828+
element.style.height = (element.style.height || (this.height && this.height.indexOf('%') === -1)) ? element.style.height : 'inherit';
28242829
}
28252830
/**
28262831
* Finds the orientation.

0 commit comments

Comments
 (0)