struct EChartsOption {
pub:
title Title @[json: 'title'; omitempty]
tooltip Tooltip @[json: 'tooltip'; omitempty]
legend Legend @[json: 'legend'; omitempty]
grid Grid @[json: 'grid'; omitempty]
toolbox Toolbox @[json: 'toolbox'; omitempty]
x_axis XAxis @[json: 'xAxis'; omitempty]
y_axis YAxis @[json: 'yAxis'; omitempty]
series []Series @[json: 'series'; omitempty]
}
fn (EChartsOption) json #
fn (o EChartsOption) json() string
fn (EChartsOption) markdown #
fn (o EChartsOption) markdown() string
fn (o EChartsOption) mdx() string
struct Emphasis {
pub:
item_style ItemStyle @[json: 'itemStyle'; omitempty]
}
struct Grid {
pub:
left string @[json: 'left'; omitempty]
right string @[json: 'right'; omitempty]
bottom string @[json: 'bottom'; omitempty]
contain_label bool @[json: 'containLabel'; omitempty]
}
struct ItemStyle {
pub:
shadow_blur int @[json: 'shadowBlur'; omitempty]
shadow_offset_x int @[json: 'shadowOffsetX'; omitempty]
shadow_color string @[json: 'shadowColor'; omitempty]
}
struct Legend {
pub:
data []string @[json: 'data'; omitempty]
orient string @[omitempty]
left string @[omitempty]
}
struct Series {
pub:
name string @[json: 'name'; omitempty]
type_ string @[json: 'type'; omitempty]
stack string @[json: 'stack'; omitempty]
data []string @[json: 'data'; omitempty]
radius int @[omitempty]
emphasis Emphasis @[omitempty]
}
struct Title {
pub:
text string @[json: 'text'; omitempty]
subtext string @[json: 'subtext'; omitempty]
left string @[json: 'left'; omitempty]
}
struct XAxis {
pub:
type_ string @[json: 'type'; omitempty]
boundary_gap bool @[json: 'boundaryGap'; omitempty]
data []string @[json: 'data'; omitempty]
}
struct YAxis {
pub:
type_ string @[json: 'type'; omitempty]
}