B
I'm not sure how the API would look for this? I snuck a peek at the
php library, and it looks something like:
$sparkline->SetFeaturePoint(x, y, "red", ...)
maybe we could do something like
<spark:line ...>
<feature x="10" y="10" color="red" />
<feature x="27" y="13" color="green" />
</spark:line>
thoughts/comments?
In the PHP library, does the x and y refer to image coordinate space
or data space. In the data space this would mean the feature would be
positioned with the 10th element if x=10 and have a value of 20 if
y=20. If it is image coordinate space then that's nasty. Also by
making it data space oriented you can allow the user to not provide a
y value and have the tag place the feature at the value from the
dataset. This makes my one year example really easy to implement:
<spark:line ...>
<circle-feature x="1" color="red"/>
<square-feature x="183" color="green"/>
<circle-feature x="274" color="red"/>
<triangle-feature x='366" color="green"/>
<icon-feature x="366" y="20" url="../images/green/uparrow.gif"/>
</spark:line>
B