Login Register

Hack to add moving "flash-like" tooltip-like markers made in dojox.gfx for dojox.charting

OK, I have only had time to add it to the Default chart type yet, when using markers.
An example can be seen here;

http://genericwitticism.com/ld/dojo-1.1b1/widespace/test_chart.html

[Date button does not work, this is just a sample]

What would be the best way to tweak this? I made this as a reaction to customer demands that the charts weren't 'flashy' enough. Well, now they are :)

Comments and rants welcome.

Cheers,
PS

Easing in dojox.gfx ?

Update on this. I would like to add magic to my current hack which just teleport the label between markers, so that it instead 'slide' on the path, line or spline, between markers.

Is it possible to use the new easing functions for this purpose?

Cheers,
PS

Yes, you can use them with

Yes, you can use them with dojox.gfx.fx module to slide tooltips.

Thanks. but er..

I'm humbled by your trust in my abilities to understand what to do after such a brief description :).

I really just have had a lucky streak after a "what the heck, I'll just try it.." session at my client. Do you think you could possibly point me to some example, or tell me if all things that can be done with a DOM element can be done with a SVG/VML element?

Thanks anyway. I've had some wine, which might explain any conversational overtones. Over and out.

dojox.gfx.fx is a module

dojox.gfx.fx is a module that is located in dojox/gfx/fx.js file. Unfortunately it is not documented yet in the official documentation, but it should be easy to figure it out from the source code (which is documented). In order to move an element around you should to use dojox.gfx.fx.animateTransform() — take a look at the example inline.

The elaborate example for gfx animation facilities is dojox/gfx/demos/career_test.html. IIRC, it doesn't use a custom easing, but you can specify it the same way you do it for any other animation primitive. See dojox/fx/tests/test_easing.html for multiple examples.

Thanks Eugene

I think I mistook dojox.gfx.fx for just dojox.fx.
I'm on the case.

Cheers,
PS

I managed to get it working

At the moment it works for Default Columns, Bars and (sort of) for Pie. I've blogged about it here;

http://unclescript.blogspot.com/2008/04/floating-labels-for-charts-in-do...

Cheers,
PS