Skip to content
Discussion options

You must be logged in to vote

I have updated the leptos example here with some more options and switched to the svg render (you also need to add js_sys to your dependencies). Please feel free to ask more questions if needed:

use charming::{
    component::{Axis, Title},
    element::AxisType,
    series::Line,
    Chart, WasmRenderer,
};
use leptos::prelude::*;
use leptos::{ev, html::Div};
use leptos_use::utils::Pausable;
use leptos_use::{use_interval_fn, use_resize_observer};

#[component]
fn App() -> impl IntoView {
    let data = RwSignal::new(vec![150, 230, 224, 218, 135, 147, 260]);

    Effect::new(move |_| {
        let local = data.get();

        let chart = Chart::new()
            .title(Title::new().text("…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@JaminMartin
Comment options

@LukaOber
Comment options

Answer selected by JaminMartin
@JaminMartin
Comment options

@LukaOber
Comment options

@JaminMartin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants