Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display multiple data points in single chart

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 

But I would like to graph all data points on a single visualization , so three lines should be drawn where each line displays the points for f1,f2,f3. Currently just "f1" is displayed :

enter image description here

How to display all the data in single line chart ?

In other words how to display these three line charts as a single chart ? :

enter image description here

like image 877
blue-sky Avatar asked Apr 08 '16 16:04

blue-sky


1 Answers

Items to be plotted can be dragged to keys/values areas :

enter image description here

like image 84
blue-sky Avatar answered Oct 10 '22 11:10

blue-sky