File size: 548 Bytes
84d90b5
 
 
f74a288
 
 
84d90b5
 
 
 
 
 
 
 
 
58db60d
84d90b5
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr
from vega_datasets import data

css = "footer {display: none !important;} .gradio-container {min-height: 0px !important;}"

with gr.Blocks(css=css) as demo:
    gr.LinePlot(
        data.stocks(),
        x="date",
        y="price",
        color="symbol",
        color_legend_position="bottom",
        title="Stock Prices",
        tooltip=["date", "price", "symbol"],
        height=300,
        width=500,
        show_label=False,
    ).style(
        container=False,
    )

if __name__ == "__main__":
    demo.launch()