Skip to content

Commit a840eae

Browse files
fix types in couple Vue demos
1 parent 4989715 commit a840eae

File tree

2 files changed

+2
-2
lines changed
  • apps/demos/Demos

2 files changed

+2
-2
lines changed

apps/demos/Demos/Charts/MultipleAxes/Vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function customizeTooltip(pointInfo: DxChartTypes.PointInfo) {
7070
const items = pointInfo.valueText?.split('\n');
7171
const color = pointInfo.point?.getColor();
7272
73-
items?.forEach((item, index) => {
73+
items?.forEach((item: string, index: number) => {
7474
if (item.indexOf(pointInfo.seriesName) === 0) {
7575
const element = document.createElement('span');
7676

apps/demos/Demos/Diagram/ItemSelection/Vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const textExpression = 'Full_Name';
4646
function onContentReady(e: DxDiagramTypes.ContentReadyEvent) {
4747
const diagram = e.component;
4848
// preselect some shape
49-
const items = diagram.getItems().filter(({ itemType, dataItem }) => itemType === 'shape' && (dataItem[textExpression] === 'Greta Sims'));
49+
const items = diagram.getItems().filter(({ itemType, dataItem }: DxDiagramTypes.Item) => itemType === 'shape' && (dataItem[textExpression] === 'Greta Sims'));
5050
if (items.length > 0) {
5151
diagram.setSelectedItems(items);
5252
diagram.scrollToItem(items[0]);

0 commit comments

Comments
 (0)