izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
svg::graph_rstate Struct Reference

Per-graph constants, metadata, configuration, text. More...

#include <a60-svg-graphs-line.h>

Inheritance diagram for svg::graph_rstate:

Public Types

using area_type = area<space_type>

Public Attributes

string title
 Key data: title, area, mode.
area_type graph_area
 graph title
graph_mode mode
 graph area
string xlabel
string ylabel
string xticu
string yticu
style lstyle
 Line/Outline/Markers/Tooltip styles.
stroke_style sstyle
 line style
area_type tooltip_area
 marker stroke style, if any.
string tooltip_id
 chart_line_style_3 tooltip size
string tooltip_images
 chart_line_style_3 toolip id prefix
Public Attributes inherited from svg::render_state_base
select visible_mode

Static Public Attributes

static constexpr uint xmargin = 200
 1920 x 1080 Margins/Spaces
static constexpr uint ymargin = 200
static constexpr uint ttitlesz = 26
 Type sizes.
static constexpr uint th1sz = 18
static constexpr uint tpsz = 10
static constexpr uint tticsz = 14
static constexpr uint xticdigits = 1
 chart_line_style_n to use
static constexpr uint yticdigits = 10

Additional Inherited Members

Public Member Functions inherited from svg::render_state_base
bool is_visible (const select v) const
 render_state_base (const select m=select::none)

Detailed Description

Per-graph constants, metadata, configuration, text.

Line Graphs / Line Charts.

Some Example: https://www.highcharts.com/demo/highcharts/accessible-line

Outline:

input has 2 columns: x, y

  • how many x, what is range, what is delta
  • how many y, what is range, what is delta

plot as grid/matrix system given above.

line: points, linestyle

x axis: title, tick mark spacing, tick mark style y axis: title, tick mark spacing, tick mark style

Definition at line 64 of file a60-svg-graphs-line.h.

Member Typedef Documentation

◆ area_type

Member Data Documentation

◆ xmargin

uint svg::graph_rstate::xmargin = 200
staticconstexpr

1920 x 1080 Margins/Spaces

Definition at line 82 of file a60-svg-graphs-line.h.

◆ ymargin

uint svg::graph_rstate::ymargin = 200
staticconstexpr

Definition at line 83 of file a60-svg-graphs-line.h.

◆ ttitlesz

uint svg::graph_rstate::ttitlesz = 26
staticconstexpr

Type sizes.

Definition at line 86 of file a60-svg-graphs-line.h.

◆ th1sz

uint svg::graph_rstate::th1sz = 18
staticconstexpr

Definition at line 87 of file a60-svg-graphs-line.h.

◆ tpsz

uint svg::graph_rstate::tpsz = 10
staticconstexpr

Definition at line 88 of file a60-svg-graphs-line.h.

◆ tticsz

uint svg::graph_rstate::tticsz = 14
staticconstexpr

Definition at line 89 of file a60-svg-graphs-line.h.

◆ title

string svg::graph_rstate::title

Key data: title, area, mode.

Definition at line 93 of file a60-svg-graphs-line.h.

◆ graph_area

area_type svg::graph_rstate::graph_area

graph title

Definition at line 94 of file a60-svg-graphs-line.h.

◆ mode

graph_mode svg::graph_rstate::mode

graph area

Definition at line 95 of file a60-svg-graphs-line.h.

◆ xticdigits

uint svg::graph_rstate::xticdigits = 1
staticconstexpr

chart_line_style_n to use

Labels, tic units.

Definition at line 98 of file a60-svg-graphs-line.h.

◆ yticdigits

uint svg::graph_rstate::yticdigits = 10
staticconstexpr

Definition at line 99 of file a60-svg-graphs-line.h.

◆ xlabel

string svg::graph_rstate::xlabel

Definition at line 100 of file a60-svg-graphs-line.h.

◆ ylabel

string svg::graph_rstate::ylabel

Definition at line 101 of file a60-svg-graphs-line.h.

◆ xticu

string svg::graph_rstate::xticu

Definition at line 102 of file a60-svg-graphs-line.h.

◆ yticu

string svg::graph_rstate::yticu

Definition at line 103 of file a60-svg-graphs-line.h.

◆ lstyle

style svg::graph_rstate::lstyle

Line/Outline/Markers/Tooltip styles.

Definition at line 106 of file a60-svg-graphs-line.h.

◆ sstyle

stroke_style svg::graph_rstate::sstyle

line style

Definition at line 107 of file a60-svg-graphs-line.h.

◆ tooltip_area

area_type svg::graph_rstate::tooltip_area

marker stroke style, if any.

Image Tooltip

Definition at line 110 of file a60-svg-graphs-line.h.

◆ tooltip_id

string svg::graph_rstate::tooltip_id

chart_line_style_3 tooltip size

Definition at line 111 of file a60-svg-graphs-line.h.

◆ tooltip_images

string svg::graph_rstate::tooltip_images

chart_line_style_3 toolip id prefix

Definition at line 112 of file a60-svg-graphs-line.h.


The documentation for this struct was generated from the following file: