jimkogs
Posts: 7
Joined: Wed Jul 14, 2010 7:43 pm

Using Prototype with Highcharts 2

I've been using Mike Nelson's Prototype Adapter, and when I upgraded to Highcharts 2 I had to add two functions to get Highcharts working. Here they are, in case anyone else is unable to switch to jQuery or MooTools.

Code: Select all

	removeEvent: function(el, type, fn)
			Event.stopObserving($(el),type, fn);
	},

	stop:function (el)
	{
		;
	}
Note that stop does not actually do anything. We're light on animations so this works for us; however, in Scriptaculous so far as I can tell you must call cancel() on the effect itself, which doesn't bind to the element on which it is called the way they do in MooTools or jQuery. Be warned.

Edit: Currently the adapter seems to fail if you call showLoading() and hideLoading--it doesn't reset the mouseovers. This has always been a problem with the adapter to the best of my knowledge.

Return to “Highcharts Usage”