                         gridLineWidth: 0
                       }]
                    
-                    $(".sparkchart", $element).highcharts('SparkLine', {series: series, yAxis: yAxis})
+                    $(".sparkchart", $element).highcharts('SparkLine', {series: series, yAxis: yAxis, chart_click: chart_click})

chart_click = null

Highcharts.SparkLine = (options, callback) ->
  defaultOptions =
    chart:

      skipClone: true

      events:
        click: -> options.chart_click()

      container:
        onclick: null
