yew-plotly

GitHub open issues

Example

```rust use yew::prelude::*; use yewplotly::plotly::common::Mode; use yewplotly::plotly::{Plot, Scatter}; use yew_plotly::Plotly;

[function_component(App)]

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::(); } ```

Installation

cargo add yew-plotly

Links