File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,15 @@ module powerbi.extensibility.visual {
161
161
for ( var i = 0 , len = this . dataPoints . length , p ; i < len ; i ++ ) {
162
162
p = this . dataPoints [ i ] ;
163
163
164
+ //"Syphontwo" Proposed Change
165
+ //make it so the X and Y input values are a percentage
166
+ //this means that the data collected is from 0 to 1 along each axis
167
+ //multiply it by the current canvas size
168
+ //this should keep the data scalable with the images and resizing
169
+ p [ 0 ] = p [ 0 ] * this . width ;
170
+ p [ 1 ] = p [ 1 ] * this . height ;
171
+ //end proposed change
172
+
164
173
ctx . globalAlpha = Math . max ( p [ 2 ] / this . maxValue , minOpacity === undefined ? 0.05 : minOpacity ) ;
165
174
ctx . drawImage ( this . circle , p [ 0 ] - this . r , p [ 1 ] - this . r ) ;
166
175
}
@@ -471,4 +480,4 @@ module powerbi.extensibility.visual {
471
480
return defaultValue ;
472
481
}
473
482
}
474
- }
483
+ }
You can’t perform that action at this time.
0 commit comments