Skip to content

Cut off data with layout.auto_size(true) #366

@Redhawk18

Description

@Redhawk18

This data I'm working on has 35 or 36 subjects on the y axis in my data, but theres only 18 in the graph? Also I think the same thing is happening on the x axis as well, I just don't know how many columns are missing there.

    let trace = HeatMap::new(
        subject_labels[0].clone(),
        subject_names.clone(),
        subject_values,
    );
    // let layout = Layout::new().auto_size(true).height(HEIGHT);
    let layout = Layout::new().auto_size(true);
    let mut plot = Plot::new();
    plot.add_trace(trace);
    plot.set_layout(layout);

    println!("{}", subject_names.len());
    let filename = "No Wait";
    plot.write_html(&format!("{}/html/{}.html", full_path, filename));
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions