extension: Option<VisualizationExtension>,
user_source: UserSource,
- variables: Vec<Variable>,
+ /*#[serde(rename = "$value")]
+ variables: Vec<Variable>,*/
categorical_domain: Option<CategoricalDomain>,
graph: Graph,
- lf1: LabelFrame,
+ #[serde(default, rename = "labelFrame")]
+ label_frames: Vec<LabelFrame>,
container: Option<Container>,
- lf2: LabelFrame,
+ #[serde(rename = "style")]
styles: Vec<Style>,
layer_controller: Option<LayerController>,
}
#[serde(rename = "@labelVariable")]
label_variable: Option<Ref<SourceVariable>>,
+ #[serde(default, rename = "extension")]
extensions: Vec<VariableExtension>,
format: Option<Format>,
string_format: Option<StringFormat>,
value: String,
format: Option<Format>,
string_format: Option<StringFormat>,
+ #[serde(default, rename = "valueMapEntry")]
value_map: Vec<ValueMapEntry>,
}
#[serde(rename = "@from")]
from: f64,
#[serde(rename = "@to")]
- to: f64,
+ to: String,
}
#[derive(Deserialize, Debug)]
#[serde(rename = "@style")]
style: Ref<Style>,
+ #[serde(rename = "location")]
locations: Vec<Location>,
coordinates: Coordinates,
faceting: Faceting,
#[serde(rename_all = "camelCase")]
enum Part {
Height,
- Wdith,
+ Width,
Top,
Bottom,
Left,
#[serde(rename_all = "camelCase")]
struct Cross {
#[serde(rename = "$value")]
- child: CrossChild,
+ children: Vec<CrossChild>,
}
#[derive(Deserialize, Debug)]
/// No dimensions along this axis.
Unity,
/// Dimensions along this axis.
- Nest(
- /// From innermost to outermost.
- Vec<VariableReference>,
- ),
+ Nest, /*(
+ /// From innermost to outermost.
+ Vec<VariableReference>,
+ )*/
}
#[derive(Deserialize, Debug)]
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
-enum Intersect {
+struct Intersect {
+ #[serde(rename = "$value")]
+ child: Vec<IntersectChild>,
+}
+
+#[derive(Deserialize, Debug)]
+#[serde(rename_all = "camelCase")]
+enum IntersectChild {
Where(Where),
IntersectWhere(IntersectWhere),
Alternating,
#[serde(rename_all = "camelCase")]
struct Labeling {
#[serde(rename = "@style")]
- style: Ref<Style>,
+ style: Option<Ref<Style>>,
#[serde(rename = "@variable")]
variable: String,
+ #[serde(default)]
children: Vec<LabelingChild>,
}
style: Ref<Style>,
#[serde(rename = "@textFrameStyle")]
- text_frame_style: Ref<Style>,
+ text_frame_style: Option<Ref<Style>>,
#[serde(rename = "@purpose")]
purpose: Option<Purpose>,
+ #[serde(rename = "$value")]
child: LabelChild,
}
position: Option<Position>,
#[serde(rename = "@style")]
- style: Ref<Style>,
+ style: Option<Ref<Style>>,
#[serde(default, rename = "$text")]
text: String,
struct LabelFrame {
#[serde(rename = "@style")]
style: Ref<Style>,
+ #[serde(rename = "location")]
locations: Vec<Location>,
label: Option<Label>,
paragraph: Option<Paragraph>,
#[serde(rename = "@style")]
style: Ref<Style>,
+ #[serde(default, rename = "extension")]
extensions: Option<ContainerExtension>,
locations: Vec<Location>,
label_frames: Vec<LabelFrame>,