Description
spark interpreter
var text = """g1,1 g1,1 g1,2 g1,3 g1,5 g1,5 g2,1 g2,1 g2,2 g2,2 g2,6 g2,6 g2,7 g2,7 g2,7""" val array = sc.parallelize(text.split("\n")) case class Line(group: String, value: Integer) val line = array.map(s => s.split(",")).map( s => Line(s(0), s(1).toInt ) ).toDF() line.registerTempTable("lines")
Generate charts
%sql select *from lines
The line is drawn where there is no data, but the default code is set to 0 (for Y)
Attachments
Attachments
Issue Links
- Blocked
-
ZEPPELIN-2969 Built-in line chart adds zeroed data points for missing group values
- Resolved
- is required by
-
ZEPPELIN-1915 [Umbrella] Improve built-in visualizations
- Open
- links to