Skip to content

Instantly share code, notes, and snippets.

@fvbock
Created December 2, 2014 06:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fvbock/94da42d71af8b702cad6 to your computer and use it in GitHub Desktop.
Save fvbock/94da42d71af8b702cad6 to your computer and use it in GitHub Desktop.
geckoboard highcharts payload
type HighChart struct {
Chart struct {
Style struct {
Color string `json:"color,omitempty"`
} `json:"style,omitempty"`
RenderTo string `json:"renderTo,omitempty"`
BackgroundColor string `json:"backgroundColor,omitempty"`
LineColor string `json:"lineColor,omitempty"`
PlotShadpw bool `json:"plotShadow,omitempty"`
} `json:"chart,omitempty"`
Credits struct {
Enabled bool `json:"enabled,omitempty"`
} `json:"enabled,omitempty"`
Title struct {
Style struct {
Color string `json:"color,omitempty"`
} `json:"style,omitempty"`
Text string `json:"text,omitempty"`
} `title`
XAxis struct {
Categories []string `json:"categories,omitempty"`
} `json:"xAxis,omitempty"`
YAxis struct {
Title struct {
Style struct {
Color string `json:"color,omitempty"`
} `json:"style,omitempty"`
Text string `json:"text,omitempty"`
} `title`
} `json:"xAxis,omitempty"`
Legend struct {
ItemStyle struct {
Color string `json:"color,omitempty"`
} `json:"itemStyle,omitempty"`
Layout string `json:"layout,omitempty"`
Align string `json:"align,omitempty"`
VerticalAlign string `json:"verticalAlign,omitempty"`
BorderWidth int `json:"borderWidth,omitempty"`
} `json:"legend,omitempty"`
Series []*HighChartSeries `json:"series,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment