{"note":"OpenAPI conversion -- returning structured metadata","name":"image-charts-com","description":"Image-Charts","version":"6.1.19","base_url":"https://image-charts.com/","endpoints":2,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Image-Charts\n@base https://image-charts.com/\n@version 6.1.19\n@endpoints 2\n@toc chart(1), chart.js(1)\n\n@group chart\n@endpoint GET /chart\n@desc Image-Charts API\n@required {cht: any # Chart type, chl: any # bar, pie slice, doughnut slice and polar slice chart labels. Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks. A QR code or a Graphviz chart reads chl as its data, without these limits. A Graphviz chart has its own limits on the DOT source: at most 50,000 characters and 6 levels of braces, 200 nodes and 400 edges. These engines take fewer: neato 70 nodes and 200 edges, twopi 70 nodes and 200 edges, osage 75 nodes and 200 edges, fdp 60 nodes and 200 edges, circo 55 nodes and 110 edges. These graph attributes take a plain decimal number: mclimit from 0 to 5; maxiter from 0 to 1,000; normalize from -100,000,000,000 to 100,000,000,000 (or true, false, yes, no); esep at least 0; dpi at least 0; resolution at least 0. A PNG of more than 16,000,000 pixels, a graph that draws more than 20,000 characters of text, or a line of more than 500 characters is refused: request the SVG output with `chof=.svg` to lift these three.}\n@optional {chd: any # chart data. At most 1,000 series, chm line markers included, and 10,080 points in total., chds: any # data format with custom scaling, choe: any # QRCode data encoding, chld: any # QRCode error correction level and optional margin, chxr: any # Axis data-range, chxp: any # axis label positions, chof: any # Image output format, chs: any # Chart size (x), chdl: any # Text for each series, to display in the legend. Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks., chdls: any # Chart legend text and style, chg: any # Solid or dotted grid lines. A dashed grid needs at least 1 pixel per dash or space on average., chco: any # series colors, chtt: any # chart title. Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks., chts: any # chart title colors and font size, chxt: any # Display values on your axis lines or change which axes are shown. At most 100 axes., chxl: any # Custom string axis labels on any axis. Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks. A radar draws a ring per label, completed with blanks up to the longest chd series minus its last value: at most 1,000 rings, and 100,000 ring corners with its spokes., chxs: any # Font size, color for axis labels, both custom labels and default label values. At most 100 styles, one per axis. Each number format after N holds at most 10,000 characters. An axis draws its format at each tick: at most 60,000 characters over all axes. A character in a font larger than 14 pixels counts once per 14 pixels of font size., chm: any # compound charts and line fills. Each marker text holds at most 10,000 characters. The last N marker of a series draws its type and text at each point of the series: at most 60,000 characters over all series. Each label counts 20 characters on top of its text. A character in a font larger than 14 pixels counts once per 14 pixels of font size., chls: any # line thickness and solid/dashed style. A dashed line needs at least 1 pixel per dash or space on average, and a line width at most 2 times its dash period. Dashed lines run through at most 1,000 points in total., chlps: any # Position and style of labels on data, chma: any # chart margins, chdlp: any # Position of the legend and order of the legend entries, chf: any # Background Fills. At most 100 gradient stops over all fills., chbh: any # Bar Width and Spacing. (not supported)  You can optionally specify custom values for bar widths and spacing between bars and groups. You can only specify one set of width values for all bars. If you don't specify chbh, all bars will be 23 pixels wide, which means that the end bars can be clipped if the total bar + space width is wider than the chart width., chbr: any # Bar corner radius. Display bars with rounded corner., chan: any # gif configuration, chli: any # doughnut chart inside label. The inside label holds at most 3,000 characters., icac: any # image-charts enterprise `account_id`, ichm: any # HMAC-SHA256 signature required to activate paid features, icff: any # Default font family for all text from Google Fonts. Use same syntax as Google Font CSS API, icfs: any # Default font style for all text, iclocale: any # localization (ISO 639-1), icwt: any # (Private) Force to display the watermark EVEN IF the chart was signed with an enterprise account, icretina: any # retina mode, icqrb: any # Background color for QR Codes, icqrf: any # Foreground color for QR Codes}\n@returns(200) The chart image.\n@errors {400: The chart cannot be drawn. The x-ic-error-code header names the error, x-ic-error-validation details it.  IS_VALIDATION_ERROR: a parameter is malformed or goes over a limit. POST /chart takes the same parameters and limits. - chd: At most 1,000 series, chm line markers included, and 10,080 points in total. - chm: Each marker text holds at most 10,000 characters. The last N marker of a series draws its type and text at each point of the series: at most 60,000 characters over all series. Each label counts 20 characters on top of its text. A character in a font larger than 14 pixels counts once per 14 pixels of font size. - chls: A dashed line needs at least 1 pixel per dash or space on average, and a line width at most 2 times its dash period. Dashed lines run through at most 1,000 points in total. - chg: A dashed grid needs at least 1 pixel per dash or space on average. - chtt: Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks. - chdl: Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks. - chl: Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks. A QR code or a Graphviz chart reads chl as its data, without these limits. A Graphviz chart has its own limits on the DOT source: at most 50,000 characters and 6 levels of braces, 200 nodes and 400 edges. These engines take fewer: neato 70 nodes and 200 edges, twopi 70 nodes and 200 edges, osage 75 nodes and 200 edges, fdp 60 nodes and 200 edges, circo 55 nodes and 110 edges. These graph attributes take a plain decimal number: mclimit from 0 to 5; maxiter from 0 to 1,000; normalize from -100,000,000,000 to 100,000,000,000 (or true, false, yes, no); esep at least 0; dpi at least 0; resolution at least 0. A PNG of more than 16,000,000 pixels, a graph that draws more than 20,000 characters of text, or a line of more than 500 characters is refused: request the SVG output with `chof=.svg` to lift these three. - chxl: Each text between pipes holds at most 10,000 characters. The texts of chtt, chdl, chl and chxl hold at most 10,000 characters together that are not printable ASCII: accented letters, other scripts, emoji and line breaks. A radar draws a ring per label, completed with blanks up to the longest chd series minus its last value: at most 1,000 rings, and 100,000 ring corners with its spokes. - chxt: At most 100 axes. - chxs: At most 100 styles, one per axis. Each number format after N holds at most 10,000 characters. An axis draws its format at each tick: at most 60,000 characters over all axes. A character in a font larger than 14 pixels counts once per 14 pixels of font size. - chli: The inside label holds at most 3,000 characters. - chf: At most 100 gradient stops over all fills.  IC_CHARTJS_RENDERING_ERROR: the chart does not fit its size, for instance a radar or polar area chart in a small chs. With chan, each frame of the animation must fit too.}\n\n@endgroup\n\n@group chart.js\n@endpoint GET /chart.js/2.8.0\n@desc Chart.js as image API\n@optional {c: any # Javascript/JSON definition of the chart. Use a Chart.js configuration object.  A configuration over one of these limits answers 400 with the error code IS_VALIDATION_ERROR: - data.labels, data.xLabels, data.yLabels, data.datasets[i].data, options.scales.xAxes and options.scales.yAxes are arrays, or null. - No object of the configuration holds a length key. - At most 20 axes, 1,000 datasets, 10,000 labels per label list and 10,000 points in total. - borderDash and zeroLineBorderDash: at most 16 entries, at least 1 pixel per dash or space on average, and a line width at most 2 times the pattern. Dashed datasets run through at most 1,000 points in total. - minRotation and maxRotation: from -360 to 360 degrees. - datalabels with display 'auto': at most 3,000 labels. - All the radial scales together: at most 1,000 spokes, 100,000 ring corners and 1,000 ticks. A scale with display false counts none of them, and gridLines.display false counts no corner. - Ticks: at most 1,000 per linear, logarithmic, time or radial axis, and 11,000 over all axes. - Border widths, line widths and radii: at most 50 pixels. padding: at most 100 pixels. - Each text: at most 10,000 characters. - options.ic.insideLabel: a text of at most 3,000 characters. minFontSize and maxFontSize are brought within 1 to 999 pixels.  options.animation is ignored for a PNG chart., chart: any # Javascript/JSON definition of the chart. Use a Chart.js configuration object.  A configuration over one of these limits answers 400 with the error code IS_VALIDATION_ERROR: - data.labels, data.xLabels, data.yLabels, data.datasets[i].data, options.scales.xAxes and options.scales.yAxes are arrays, or null. - No object of the configuration holds a length key. - At most 20 axes, 1,000 datasets, 10,000 labels per label list and 10,000 points in total. - borderDash and zeroLineBorderDash: at most 16 entries, at least 1 pixel per dash or space on average, and a line width at most 2 times the pattern. Dashed datasets run through at most 1,000 points in total. - minRotation and maxRotation: from -360 to 360 degrees. - datalabels with display 'auto': at most 3,000 labels. - All the radial scales together: at most 1,000 spokes, 100,000 ring corners and 1,000 ticks. A scale with display false counts none of them, and gridLines.display false counts no corner. - Ticks: at most 1,000 per linear, logarithmic, time or radial axis, and 11,000 over all axes. - Border widths, line widths and radii: at most 50 pixels. padding: at most 100 pixels. - Each text: at most 10,000 characters. - options.ic.insideLabel: a text of at most 3,000 characters. minFontSize and maxFontSize are brought within 1 to 999 pixels.  options.animation is ignored for a PNG chart., width: any # Width of the chart, from 1 to 999 pixels, height: any # Height of the chart, from 1 to 999 pixels, backgroundColor: any # Background of the chart canvas. Accepts rgb (rgb(255,255,120)), colors (red), and url-encoded hex values (%23ff00ff). Abbreviated as \"bkg\", bkg: any # Background of the chart canvas. Accepts rgb (rgb(255,255,120)), colors (red), and url-encoded hex values (%23ff00ff). Abbreviated as \"bkg\", encoding: any # Encoding of your \"chart\" parameter. Accepted values are url and base64., icac: any # image-charts enterprise `account_id`, ichm: any # HMAC-SHA256 signature required to activate paid features, icretina: any # retina mode}\n@returns(200) The chart image.\n@errors {400: The chart cannot be drawn. The x-ic-error-code header names the error, x-ic-error-validation details it.  IS_VALIDATION_ERROR: a parameter is malformed, or the configuration goes over a limit listed under the c parameter.  IC_BAD_DATA_FORMAT: data is set, but data.datasets is not a list of objects whose first one holds a data array.  IC_CHARTJS_RENDERING_ERROR: Chart.js cannot draw the configuration, or the chart does not fit its width and height, for instance a radar or polar area chart in a small size.}\n\n@endgroup\n\n@end\n"}