mdparser

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMarkdownChart

func ParseMarkdownChart(markdown string) (string, error)

ParseMarkdownChart parses a chart specification from markdown text format and returns an SVG representation of the chart.

Types

type ChartDefinition added in v0.3.0

type ChartDefinition struct {
	ChartType    string
	Title        string
	Width        int
	Height       int
	Colors       []string
	Data         []float64
	Labels       []string
	AutoHeight   bool
	Series       []SeriesDefinition
	SeriesColors []string
	Stacked      bool
	LegendWidth  float64
	Palette      string // "auto" or "gradient"
}

ChartDefinition represents a parsed chart definition

type SeriesDefinition added in v0.8.0

type SeriesDefinition struct {
	Name string
	Data []float64
}

SeriesDefinition represents a data series in a chart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL