{"category":"generate","endpoint":"https://setget.net/v1/tools/sparkline","examples":[{"input":{"values":[1,3,2]},"output":{"height":40,"last":2,"max":3,"min":1,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"160\" height=\"40\" viewBox=\"0 0 160 40\"><polyline points=\"2,38 80,2 158,20\" fill=\"none\" stroke=\"#2a78d6\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\"/></svg>","width":160}},{"input":{"fill":true,"markers":true,"values":[3,7,4,9,6,12,8]},"title":"Shaded, with markers"},{"input":{"colour":"#1baf7a","type":"bar","values":[5,-2,4,8,-6,3]},"title":"Bars with negative values"}],"input_schema":{"additionalProperties":false,"properties":{"colour":{"default":"#2a78d6","description":"Line or bar colour: hex or a basic colour name.","type":"string"},"fill":{"default":false,"description":"Shade the area under a line.","type":"boolean"},"height":{"default":40,"description":"Height in pixels.","maximum":1000,"minimum":10,"type":"integer"},"markers":{"default":false,"description":"Mark the lowest and highest values.","type":"boolean"},"stroke_width":{"default":2,"description":"Line thickness in pixels.","maximum":10,"minimum":0.5,"type":"number"},"type":{"default":"line","description":"Chart style.","enum":["line","bar"],"type":"string"},"values":{"description":"The numbers to plot, in order.","examples":[[3,7,4,9,6,12,8]],"maxItems":500,"type":"array"},"width":{"default":160,"description":"Width in pixels.","maximum":2000,"minimum":20,"type":"integer"}},"required":["values"],"type":"object"},"keywords":["sparkline","sparkline generator","mini chart","inline chart","tiny chart svg","trend line"],"related":["chart","progress-bar-image"],"slug":"sparkline","summary":"Draw a tiny line or bar chart as SVG from a list of numbers, small enough to sit in a table cell or README.","tier":"inline","title":"Sparkline generator","url":"https://setget.net/tools/sparkline"}
