1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/// The default left inset of a grid, as a fraction of the chart's width.
pub const DEFAULT_GRID_LEFT: f64 = 0.1;
/// The default right inset of a grid, as a fraction of the chart's width.
pub const DEFAULT_GRID_RIGHT: f64 = 0.1;
/// The default top inset of a grid, in pixels.
pub const DEFAULT_GRID_TOP: f64 = 60.0;
/// The default bottom inset of a grid, in pixels.
pub const DEFAULT_GRID_BOTTOM: f64 = 60.0;
/// The number of split lines a value axis aims for.
///
/// Five is the sweet spot: enough ticks to read a value off the axis,
/// few enough that the labels do not collide.
pub const DEFAULT_SPLIT_NUMBER: usize = 5;
/// The largest number of ticks an unnamed category axis produces.
///
/// A chart over a million unnamed points cannot show a million ticks;
/// the axis shows the first ones and leaves the rest to the series.
pub const MAX_CATEGORY_TICKS: usize = 200;
/// The colours a visual map uses when the option names none.
///
/// These are the colours ECharts falls back to, and they are the ones
/// a chart of a country looks right in.
pub const DEFAULT_VISUAL_MAP_COLORS: & = &;
/// The number of bands a piecewise visual map is cut into.
pub const DEFAULT_VISUAL_MAP_SPLIT: usize = 5;
/// The field of a data object that carries the name of the point.
pub const DATA_FIELD_NAME: &str = "name";
/// The field of a data object that carries the value of the point.
pub const DATA_FIELD_VALUE: &str = "value";
/// The field of a visual-map piece that carries its lowest value.
pub const PIECE_FIELD_MIN: &str = "min";
/// The field of a visual-map piece that carries its highest value.
pub const PIECE_FIELD_MAX: &str = "max";
/// The field of a visual-map piece that carries its colour.
pub const PIECE_FIELD_COLOR: &str = "color";