Skip to main content

Get Chart Raw SVG

Retrieve a minimal SVG chart, suitable for custom post-processing or styling. Uses the same input type as getChartSvg.

Query Structure​

query GetChartRawSvg($input: GetChartSvgInput!) {
getChartRawSvg(input: $input) {
svg
}
}

Variables​

Same as getChartSvg -- takes GetChartSvgInput:

FieldTypeRequiredDescription
term_idStringYesTerm ID to query
curve_idStringYesCurve ID (bonding curve)
intervalStringYesTime interval
start_timeStringYesStart of time range (ISO 8601)
end_timeStringYesEnd of time range (ISO 8601)
graph_typeStringNoType of graph data
widthIntNoChart width in pixels
heightIntNoChart height in pixels
background_colorStringNoBackground color
line_colorStringNoLine color
{
"input": {
"term_id": "0x57d94c116a33bb460428eced262b7ae2ec6f865e7aceef6357cec3d034e8ea21",
"curve_id": "1",
"interval": "1d",
"start_time": "2024-01-01T00:00:00Z",
"end_time": "2024-01-31T23:59:59Z",
"width": 800,
"height": 400
}
}

Response Fields (ChartSvgOutput)​

FieldTypeDescription
svgString!Minimal SVG markup string