pulsatrix 1.1.0
Loading...
Searching...
No Matches
series.hpp File Reference

The series document (VIZ-9): measured points with optional intervals, for sweeps and trade-off curves, and its SVG view. The Vega-Lite view is in html.hpp.A series is one line of (x, y) points, each with an optional interval [lo, hi] (a confidence interval, a range over seeds). A panel holds several series on shared axes, and a document holds one or more panels with the same axis labels and scales: small multiples. Either axis can be linear or logarithmic. More...

#include <string>
#include <string_view>
#include <vector>
#include "pulsatrix/viz/svg.hpp"
Include dependency graph for series.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pulsatrix::Series
 One line of points. More...
 
struct  pulsatrix::SeriesPanel
 Several series on shared axes. More...
 
struct  pulsatrix::SeriesDocument
 
struct  pulsatrix::SeriesViewOptions
 Options for RenderSeriesSvg(). More...
 

Namespaces

namespace  pulsatrix
 

Enumerations

enum class  pulsatrix::AxisScale { pulsatrix::Linear , pulsatrix::Log }
 How an axis maps values to positions. More...
 

Functions

const char * pulsatrix::AxisScaleName (AxisScale scale)
 
std::string pulsatrix::ToJson (const SeriesDocument &doc)
 
SeriesDocument pulsatrix::ParseSeriesDocument (std::string_view json)
 
std::string pulsatrix::RenderSeriesSvg (const SeriesDocument &doc, const SeriesViewOptions &view={}, const SvgOptions &options={})
 The panels stacked top to bottom, each a line per series with a marker per point and a whisker per interval; one legend for all panels. Every marker has a tooltip with its values.
 

Detailed Description

The series document (VIZ-9): measured points with optional intervals, for sweeps and trade-off curves, and its SVG view. The Vega-Lite view is in html.hpp.

A series is one line of (x, y) points, each with an optional interval [lo, hi] (a confidence interval, a range over seeds). A panel holds several series on shared axes, and a document holds one or more panels with the same axis labels and scales: small multiples. Either axis can be linear or logarithmic.

It follows the rules of every viz document (document.hpp): a "schema" of pulsatrix.series.v1, non-finite numbers as null plus a "nonfinite" entry, and readers that name the JSON Pointer of the first problem.