scala:
val df = sc.parallelize(Seq(
("Jan" , "1", "1","3"),
("Feb" , "2", "5","2"),
("Mar" , "2", "3","1")))
.toDF("time" , "f1", "f2", "f3")
df.registerTempTable("inout")
sql:
%sql
select time , f1 , f2 , f3
from inout
但是我想在单个可视化上绘制所有数据点的图形,因此应绘制三条线,其中每条线显示f1,f2,f3的点。目前只是" f1"显示:
如何在单线图中显示所有数据?
换句话说,如何将这三个折线图显示为单个图表? :