Skip to main content

attach_data_file

Function attach_data_file 

Source
fn attach_data_file(spec: &mut Value, url: &str, format: Option<&str>)
Expand description

Points the spec at the data file the request named.

The chart then reads exactly the file the teacher attached, whether the model wrote the spec from scratch or repaired one that had drifted. Sub-views inherit a top-level data source, so this reaches every view of a layered or concatenated chart too.