knockdata / spark-highcharts

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

Plot a high number points #28

Open ghost opened 7 years ago

ghost commented 7 years ago

It seems that plotting 100k points is not possible at the moment, I tried the following code:

val d = PlotOptions.series.turboThreshold(0)

val chart = highcharts(df.series("x" -> "id", "y" -> avg(col("data")))
  .orderBy(col("id")))
  .chart(Chart.area.zoomType("x"))
  .plotOptions(d)

chart.plot()

The result is an extremely slow page which displays just the initial points of the series.

Is there a way of doing this? (maybe taking advantage of the features offered by highchart's boost.js)

P.S. I am using Zeppelin 0.7.1 and spark-highcharts 0.6.1.

rockie-yang commented 7 years ago

It shall be possible.

first you need include boost.js second you might needed add some option like boost