Hello
The drawFromPNG functionality looks interesting, and I think that scaling the images could be a nice addition. The user may have an hight-definition image and do not want to scale it for each chart. I like to have image dimensions given as variables that I can change easily, and other dimensions (text sizes and positions, ..) are automatically derived from these variables. The size of some website logo displayed in one corner is then depending on those too.
The user may give
- a width and/or an height: pChart scales to the exact sizes given
- a maximal width and/or a maximal height: pChart scales the image such that one dimension is equal to its max and the other is smaller than the corresponding max, without distorsion
- a minimal width and/or a minimal height: same thing but second dimension is larger than its min
Note that the two last ones are not the same thing as in CSS, and that they are just ideas. Handling a combination of options may be tricky to implement (for example width + max-height).
In the same order of idea, being able to rotate the image may be useful too.