File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Diagram/ItemSelection/Vue Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const textExpression = 'Full_Name';
4646function 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 ]);
You can’t perform that action at this time.
0 commit comments