|
S. No |
Query |
Answer |
|
1. |
Problem #1: The "size" specified in the Node constructor is in different units than the "size" specified in the data template. You can see this very easily in your own example if you simply comment out one line of code: n1.Template = dataTemplate;
Try running the code from your example with this line active and then again with this line commented out. You will see that the size of the node is very different on each run, but it shouldn't be. It should be identical.
Problem #2: The "size" of the node as specified in the Node constructor seems to have zero effect if a data template is assigned. This should not be the case. The data template should be scaled up or down to match the size of the node, but this is not happening. |
On analyzing further with the provided information, the node size property assigned in constructor works as expected from our side. The node object will be rendered based on device density in SfDiagram. As mentioned, the template and node size are in different ratio.
We were able to reproduce the reported behavior with “Template size get scaled up while assigning to Node object in SfDiagram Android platform”. We will update the further validation details on 4th February 2021. |
|
////Device density
var mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
|