realign Labels only to single Chart or type chart on highcharts
<p>I followed this tutorial: <a href="http://jsfiddle.net/Yrygy/270/" rel="nofollow">http://jsfiddle.net/Yrygy/270/</a> and is worked fine. But, i have another chart in same view. A line chart.</p>

<p>This second chart assume realign labels too. How can use the function for a single chart container Id, or with its type of chart, like:</p>

<pre><code>var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'column'
        },
</code></pre>

<p>The function im using:</p>

<pre><code>  function realignLabels(serie) {

            $.each(serie.points, function (j, point) {
                if (!point.dataLabel) return true;

                var max = serie.yAxis.max,
                    labely = point.dataLabel.attr('y')

                if (point.y / max &lt; 0.35) {
                    point.dataLabel.attr({
                        y: labely - 100,
                    });
                }
            });
        };

        Highcharts.Series.prototype.drawDataLabels = (function (func) {
            return function () {
                func.apply(this, arguments);

                if (this.options.dataLabels.enabled || this._hasPointLabels)
                {
                    realignLabels(this);
                }
            };
        }(Highcharts.Series.prototype.drawDataLabels));
</code></pre>

<p>Line chart affected: <a href="http://prntscr.com/9srmpv" rel="nofollow">http://prntscr.com/9srmpv</a></p>