Hi,
I've created an interactive chart using bar and line charts, where the user can drag the bar and line charts to a chosen location. My question is, how can I create a hot spot. The hot spot is the location where the user would have to place the mouse in order for the bar or line chart to have the capability to be dragged. The hot spot specs are:
Mouse pointing spot:(a)when dragging a bar on a chart, the "hot" spot is the width of the bar and the height between +/- pixels of the bar top.(b)when dragging a point on a line chart, the "hot" spot is the width of the current period minus 2 pixels and the height between +/- 20 pixels of the point
When the mouse enters the "hot" spot, a rectangle of gray color should be displayed around the "hot" shot.
thanks,
Hostos
hot spot
Re: hot spot
I'd start with the getChartRenderingInfo() method in the ChartPanel class. It will return details about the most recent "redraw" of the chart, including the locations of entities (bars, lines etc.) in the chart. You could use this data to calculate the "hot" spots.
Beyond that, you are venturing into territory that unknown to me also...
Regards,
DG
Beyond that, you are venturing into territory that unknown to me also...
Regards,
DG