knockdata / spark-highcharts

Support Highcharts in Apache Zeppelin
Apache License 2.0
81 stars 14 forks source link

Drill Down functionality not working #15

Closed HarvinderBhullar closed 7 years ago

HarvinderBhullar commented 7 years ago

Hi I am trying out the following code on Zeppelin 0.6.1, which is running on Spark 2.0. The chart shows up but the drill down functionality is not working.

val chart = highcharts(bank .series("name" -> "marital", "y" -> avg(col("balance"))) .drilldown("name" -> "job", "y" -> avg(col("balance"))) .drilldown("name" -> "education", "y" -> max(col("balance")))) .chart(Chart.column)

chart.plot()

rockie-yang commented 7 years ago

How do you setup the environment? Do you build Zeppelin yourself, using zeppelin-highcharts docker image, or add javascript to zeppelin paragraph?

If you add javascript to zeppelin paragraph, then you need at drilldown library as well. Check the updated doc Use in Zeppelin

HarvinderBhullar commented 7 years ago

Thanks you so much. It worked, I was not adding the drill down library.