```rust use yew::prelude::*; use yewplotly::plotly::common::Mode; use yewplotly::plotly::{Plot, Scatter}; use yew_plotly::Plotly;
fn app() -> Html { let mut plot = Plot::new(); let xvalues = vec![1, 2, 3]; let yvalues = vec![1, 3, 2];
let trace = Scatter::new(x_values, y_values)
.mode(Mode::LinesMarkersText)
.name("Scatter");
plot.add_trace(trace);
html! { <Plotly plot={plot}/> }
}
fn main() {
yew::start_app::
index.html
```html
```
yew-plotly
cargo add yew-plotly