                         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:


        point:
          events:
            click: -> options.chart_click()


  options = Highcharts.merge(defaultOptions, options)
