dojo - dojox.charting Setting Custom Tooltip Labels from ItemFileReadStore -
i discovered dojox.charting.action2d.tooltip
takes custom function provide text labels. challenge text of label want display contained within dojo.data.itemfilereadstore
chart series pointed at. trying figure out way tie information passed in object in function item in store. understanding notification object can contain following:
- event - raw event object
- type - can "onmouseover", "onmouseout", "onclick" or "onplotreset"
- run - series object
- plot - plot2d object
- index - numeric index series
- element - can "bar", "column", "circle", "slice", "marker"
- shape - dojox.gfx shape object element
- haxis - horizontal axis object or null
- vaxis - vertical axis object or null
- x - x value (on horizontal axis)
- y - y value (on vertical axis)
- cx, cy - center of marker/circle/slice in geometric coordinates
- cr - radius of circle/slice in geometric coordinates
i trued access run.store
, seemed logical me, undefined
. y
contains particular value chasing after, can't use search itemfilereadstore
because cannot guarantee that unique. ideally looking way of identifying item in store current notification being fired for.
http://docs.dojocampus.org/dojox/charting/ says default text function looks custom tooltip text in 'tooltip' property of data point object.
try rename store's items' property holds label 'tooltip'.
Comments
Post a Comment