File tree 6 files changed +3
-48
lines changed
6 files changed +3
-48
lines changed Original file line number Diff line number Diff line change 1
1
## 1.9.4
2
2
* Fixed issue with tooltip duration
3
3
* Fixed issue with invisible task line when duration is 1
4
- * Added ability to use custom tooltip rows
4
+ * Renamed "Extra imformation" field bucket to "Tooltips"
5
5
## 1.9.3
6
6
* Fixed issue with tooltip duration
7
7
* Fixed issue with line length with float value and 'second' duration
Original file line number Diff line number Diff line change 60
60
},
61
61
{
62
62
"name" : " ExtraInformation" ,
63
- "displayName" : " Extra information" ,
64
- "displayNameKey" : " Role_ExtraInformation" ,
65
- "kind" : " Grouping"
66
- },
67
- {
68
- "name" : " Tooltips" ,
69
63
"displayName" : " Tooltips" ,
70
64
"displayNameKey" : " Role_Tooltips" ,
71
- "kind" : " Measure "
65
+ "kind" : " Grouping "
72
66
}
73
67
],
74
68
"dataViewMappings" : [
204
198
"for" : {
205
199
"in" : " ExtraInformation"
206
200
}
207
- },
208
- {
209
- "for" : {
210
- "in" : " Tooltips"
211
- }
212
201
}
213
202
]
214
203
},
225
214
"for" : {
226
215
"in" : " Completion"
227
216
}
228
- },
229
- {
230
- "for" : {
231
- "in" : " Tooltips"
232
- }
233
217
}
234
218
]
235
219
}
Original file line number Diff line number Diff line change @@ -55,12 +55,7 @@ module powerbi.extensibility.visual {
55
55
columns = { } ;
56
56
}
57
57
columns [ x . source . displayName ] = x . values ;
58
- } else if ( x . source . roles && x . source . roles [ "Tooltips" ] ) {
59
- if ( ! columns ) {
60
- columns = { } ;
61
- }
62
- columns [ x . source . displayName ] = x . values ;
63
- } else {
58
+ } else {
64
59
columns = x . values ;
65
60
}
66
61
} ) ;
@@ -83,6 +78,5 @@ module powerbi.extensibility.visual {
83
78
public Completion : T = null ;
84
79
public Resource : T = null ;
85
80
public ExtraInformation : T = null ;
86
- public Tooltips : T = null ;
87
81
}
88
82
}
Original file line number Diff line number Diff line change @@ -740,7 +740,6 @@ module powerbi.extensibility.visual {
740
740
let taskType : TaskTypeMetadata = null ;
741
741
let wasDowngradeDurationUnit : boolean = false ;
742
742
let tooltips : VisualTooltipDataItem [ ] = [ ] ;
743
- let skipTooltipNames : string [ ] = [ ] ;
744
743
let stepDurationTransformation : number = 0 ;
745
744
746
745
const selectionBuider : ISelectionIdBuilder = host
@@ -782,14 +781,6 @@ module powerbi.extensibility.visual {
782
781
completion = Gantt . ComplectionMax ;
783
782
}
784
783
}
785
-
786
- if ( group . Tooltips && group . Tooltips . values [ index ] ) {
787
- tooltips . push ( {
788
- displayName : group . Tooltips . source . displayName ,
789
- value : group . Tooltips . values [ index ]
790
- } as VisualTooltipDataItem ) ;
791
- skipTooltipNames . push ( group . Tooltips . source . displayName ) ;
792
- }
793
784
}
794
785
} ) ;
795
786
}
@@ -815,17 +806,6 @@ module powerbi.extensibility.visual {
815
806
}
816
807
}
817
808
818
- if ( values . Tooltips ) {
819
- const extraTooltipKeys : any [ ] = Object . keys ( values . Tooltips ) ;
820
- for ( const key of extraTooltipKeys . filter ( k => skipTooltipNames . indexOf ( k ) < 0 ) ) {
821
- const value : string = values . Tooltips [ key ] [ index ] ;
822
- tooltips . push ( {
823
- displayName : key ,
824
- value : value || ""
825
- } ) ;
826
- }
827
- }
828
-
829
809
const task : Task = {
830
810
color,
831
811
completion,
Original file line number Diff line number Diff line change 5
5
"Role_Duration": "Duration",
6
6
"Role_Completion": "% Completion",
7
7
"Role_Resource": "Resource",
8
- "Role_ExtraInformation": "Extra information",
9
8
"Role_Tooltips": "Tooltips",
10
9
"Visual_General": "General",
11
10
"Visual_GroupTasks": "Group Tasks",
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ module powerbi.extensibility.visual.test {
43
43
public static ColumnCompletePrecntege : string = "CompletePrecntege" ;
44
44
public static ColumnExtraInformation : string = "Description" ;
45
45
public static ColumnParent : string = "Parent" ;
46
- public static ColumnTooltips : string = "Tooltips" ;
47
46
48
47
public valuesTaskTypeResource : string [ ] [ ] = [
49
48
[ "Spec" , "MOLAP connectivity" , "Mey" ] ,
@@ -83,7 +82,6 @@ module powerbi.extensibility.visual.test {
83
82
public valuesDuration = GanttData . getRandomUniqueNumbers ( this . valuesTaskTypeResource . length , 3 , 40 ) ;
84
83
public valuesCompletePrecntege = GanttData . getRandomUniqueNumbers ( this . valuesTaskTypeResource . length ) ;
85
84
public valuesExtraInformation = GanttData . getTexts ( this . valuesTaskTypeResource , "Description" ) ;
86
- public valuesTooltips = GanttData . getTexts ( this . valuesTaskTypeResource , "Description" ) ;
87
85
88
86
public static getTexts ( valuesTaskTypeResource : string [ ] [ ] , text : string ) : string [ ] {
89
87
return valuesTaskTypeResource . map ( ( item ) => {
You can’t perform that action at this time.
0 commit comments