pub struct VisualMapOption {Show 22 fields
pub visual_type: VisualMapType,
pub show: bool,
pub min: Option<f64>,
pub max: Option<f64>,
pub dimension: Option<usize>,
pub series_index: Option<usize>,
pub split_number: Option<usize>,
pub colors: Vec<String>,
pub pieces: Vec<DataValue>,
pub out_of_range: Option<String>,
pub orient: Option<Orientation>,
pub left: Option<Position>,
pub top: Option<Position>,
pub right: Option<Position>,
pub bottom: Option<Position>,
pub item_width: Option<f64>,
pub item_height: Option<f64>,
pub calculable: Option<bool>,
pub text: Option<Vec<String>>,
pub text_style: Option<LabelOption>,
pub range: Option<Vec<f64>>,
pub precision: Option<usize>,
}Expand description
The options of one visual map.
Fields§
§visual_type: VisualMapTypeThe kind of the visual map.
show: boolWhether the visual map is drawn.
min: Option<f64>The minimum value of the visual map.
max: Option<f64>The maximum value of the visual map.
dimension: Option<usize>The dimension the visual map applies to.
series_index: Option<usize>The index of the series the visual map applies to.
split_number: Option<usize>The number of bands of a piecewise visual map.
colors: Vec<String>The colours of the visual map.
pieces: Vec<DataValue>The index of the piece the value falls into.
out_of_range: Option<String>The index of the band the value falls into.
orient: Option<Orientation>Whether the visual map is horizontal.
left: Option<Position>The position of the visual map.
top: Option<Position>The position of the visual map.
right: Option<Position>The position of the visual map.
bottom: Option<Position>The position of the visual map.
item_width: Option<f64>The width of the visual map.
item_height: Option<f64>The height of the visual map.
calculable: Option<bool>The index of the continuous band the value falls into.
text: Option<Vec<String>>The label of the visual map.
text_style: Option<LabelOption>The style of the visual map’s labels.
range: Option<Vec<f64>>The range of the visual map’s handles.
precision: Option<usize>The precision of the visual map’s labels.