### Shell Script for Instachart Self-Hosting Installation Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This script provides commands to install and run the `instachart` server locally. It uses `curl` to download and execute the official installation script from GitHub, followed by running the `instachart` binary, which typically starts the server on `localhost:3001`. ```sh curl -sLk https://raw.githubusercontent.com/kevincobain2000/instachart/master/install.sh | sh ## Will run server on localhost:3001 # For more options see --help ./instachart ``` -------------------------------- ### Shell Example: Generate Funnel Chart via GET Request Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Provides an example GET request URL for the /funnel endpoint, showing how to pass names and values in the data query parameter to generate a funnel chart. ```sh https://instachart.coveritup.app/funnel?title=Radar+Chart &data={ "names": ["Mon","Tue", "Thu", "Fri", "Sat", "Sun"], "values": [100,80,60,40,20,10] } ``` -------------------------------- ### Example GET /pie API Call Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Shows an API call to the GET /pie endpoint to generate a pie chart. It includes a title, subtitle, and data with names and corresponding values. ```sh https://instachart.coveritup.app/pie?title=Pie+Chart &subtitle=Sleeping+Hours &data={ "names": ["Monday", "Friday", "Saturday", "Sunday"], "values": [4, 6 ,7, 9] } ``` -------------------------------- ### Example GET /donut API Call Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Illustrates an API call to the GET /donut endpoint to create a donut chart. It includes a title and data with names and corresponding values. ```sh https://instachart.coveritup.app/donut?title=Donut+Chart &data={ "names": ["Monday", "Friday", "Saturday", "Sunday"], "values": [4, 6 ,7, 9] } ``` -------------------------------- ### Shell Script: Self-Hosting Instachart Service Installation Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Provides shell commands to install and run the Instachart server locally. It uses curl to download an installation script and then executes the instachart binary, noting that it will run on localhost:3001. ```sh curl -sLk https://raw.githubusercontent.com/kevincobain2000/instachart/master/install.sh | sh ## Will run server on localhost:3001 # For more options see --help ./instachart ``` -------------------------------- ### Shell Example: Generate Radar Chart via GET Request Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Demonstrates how to construct a GET request URL for the /radar endpoint. It shows the structure of the data JSON object, including names, labels, and values, to generate a radar chart. ```sh https://instachart.coveritup.app/radar?title=Radar+Chart &data={ "names": ["Mon","Tue", "Wed", "Fri"], "labels": ["Work", "Relax", "Travel"], "values": [[1,2,3,4], [15,7,8,9], [15,17,5,7]] } ``` -------------------------------- ### Shell Example for Instachart Radar Chart API Call Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This example demonstrates how to construct a `GET` request to the `/radar` endpoint using shell. It includes a `title` parameter and a URL-encoded JSON `data` object containing sample `names`, `labels`, and `values` for a radar chart. ```sh /radar?title=Radar+Chart &data={ "names": ["Mon","Tue", "Wed", "Fri"], "labels": ["Work", "Relax", "Travel"], "values": [[1,2,3,4], [15,7,8,9], [15,17,5,7]] } ``` -------------------------------- ### Example GET /bar API Call Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Demonstrates a basic API call to the GET /bar endpoint to generate a bar chart showing sleeping hours for specific days. It includes title, subtitle, and 'x' and 'y' data. ```sh https://instachart.coveritup.app/bar?title=Bar+Chart &subtitle=Sleeping+hours &data={ "x": ["Monday", "Friday", "Sunday"], "y": [[8,2,14]], "names": ["Sleeping", "Awake"] } ``` -------------------------------- ### Shell Example: Generate Table Chart via GET Request Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Illustrates how to construct a GET request URL for the /table endpoint. It includes names (headers) and values (rows) within the data query parameter to generate a table chart. ```sh https://instachart.coveritup.app/table?title=Table+Chart &data={ "names": ["Branch","Code Coverage", "Quality"], "values": [["master","80","90"], ["develop","70","79"]] } ``` -------------------------------- ### Shell Example for Instachart Table Chart API Call Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This example demonstrates how to construct a `GET` request to the `/table` endpoint using shell. It includes a `title` parameter and a URL-encoded JSON `data` object containing sample `names` (headers) and `values` (rows) for a table chart. ```sh /table?title=Table+Chart &data={ "names": ["Branch","Code Coverage", "Quality"], "values": [["master","80","90"], ["develop","70","79"]] } ``` -------------------------------- ### Shell Example for Instachart Funnel Chart API Call Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This example demonstrates how to construct a `GET` request to the `/funnel` endpoint using shell. It includes a `title` parameter and a URL-encoded JSON `data` object containing sample `names` and `values` for a funnel chart. ```sh /funnel?title=Radar+Chart &data={ "names": ["Mon","Tue", "Thu", "Fri", "Sat", "Sun"], "values": [100,80,60,40,20,10] } ``` -------------------------------- ### Example GET /bar API Call with Z-axis Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Shows an API call to the GET /bar endpoint with additional 'z' data, theme, and metric parameters. This generates a bar chart with grouped data, useful for comparing multiple series. ```sh https://instachart.coveritup.app/bar?title=Bar+Chart &subtitle=Sleeping+hours &metric=hours &theme=dark &data={ "x": ["Monday", "Friday", "Sunday"], "y": [[8,2,14]], "z": [[9,3,15]], "names": ["Sleeping", "Awake"] } ``` -------------------------------- ### API Documentation for GET /pie Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Documents the GET /pie endpoint for generating pie charts. Similar to donut charts, it requires 'names' and 'values' arrays for data representation. ```APIDOC GET /pie Data Parameters: names: []string (required) values: []int (required) ``` -------------------------------- ### API Documentation for GET /donut Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Documents the GET /donut endpoint for generating donut charts. It requires 'names' and 'values' arrays for data representation. ```APIDOC GET /donut Data Parameters: names: []string (required) values: []int (required) ``` -------------------------------- ### API: GET /line Endpoint Specific Query Parameters Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Details the query parameters unique to the GET /line endpoint, such as line style (fill/nofill) and grid visibility. These parameters allow for fine-tuning the visual representation of line charts. ```APIDOC GET /line Specific Queries: - line: (Required: false) Type: string, Default: fill, Values: fill or nofill - grid: (Required: false) Type: string, Default: show, Values: show or hide ``` -------------------------------- ### API Documentation for GET /bar Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Documents the GET /bar endpoint for generating bar charts. It supports various styling options and requires 'x' and 'y' data arrays. The 'z' parameter can be used for grouped bar charts. ```APIDOC GET /bar Query Parameters: style: string (optional, default: "vertical") - "vertical" or "horizontal" grid: string (optional, default: "show") - "show" or "hide" Data Parameters: x: []string (required) y: [][]int (required) z: []string (optional) - Style will be "vertical" with "z" is given ``` -------------------------------- ### API Documentation for GET /funnel Chart Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This section details the `GET /funnel` API endpoint, which is used to generate funnel charts. It specifies the required `data` parameter, including `names` (string array) and `values` (integer array). ```APIDOC GET /funnel Parameters: data (Required): names: []string values: []int ``` -------------------------------- ### API Documentation for GET /table Chart Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This section details the `GET /table` API endpoint, which is used to generate table charts. It specifies the required `data` parameter, including `names` (string array, acting as headers) and `values` (2D string array, representing rows). ```APIDOC GET /table Parameters: data (Required): names: []string (Description: aka header) values: [][]string (Description: aka rows) ``` -------------------------------- ### Generate Basic Line Chart via Shell Command Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Example shell command to generate a basic line chart using the InstaChart API. It includes parameters for chart title, subtitle, and the JSON data payload containing x-axis labels, y-axis values for multiple series, and series names. ```shell https://instachart.coveritup.app/line?title=Line+Chart &subtitle=Sleeping+Hours &data={ "x": ["Mon","Tue","Wed"], "y": [[4,8,7], [10,20,24]], "names": ["Sleeping", "Awake"] } ``` -------------------------------- ### API Documentation for GET /radar Chart Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md This section details the `GET /radar` API endpoint, which is used to generate radar charts. It specifies the required `data` parameter, including `names` (string array with at least 3 elements), `values` (2D integer array where the inner array count matches `names`), and an optional `labels` (string array). ```APIDOC GET /radar Parameters: data (Required): names: []string (Validation: >=3) values: [][]int (Validation: count(names) == count(values[0])) labels: []string ``` -------------------------------- ### API Definition: GET /funnel Chart Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Defines the GET /funnel API endpoint for generating funnel charts. It specifies the required data parameters: names (array of strings) and values (array of integers). ```APIDOC GET /funnel Parameters: data (Required): names (Required): []string values (Required): []int ``` -------------------------------- ### InstaChart GET /pie API Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md Generates a pie chart. Similar to the donut chart, it requires names for each slice and their corresponding integer values. Ideal for showing proportional data. ```APIDOC Data Structure for /pie: data: names: []string (Required) values: []int (Required) ``` ```Shell /pie?title=Pie+Chart &subtitle=Sleeping+Hours &data={ "names": ["Monday", "Friday", "Saturday", "Sunday"], "values": [4, 6 ,7, 9] } ``` -------------------------------- ### API Definition: GET /table Chart Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Defines the GET /table API endpoint for generating table charts. It outlines the required data parameters: names (array of strings, acting as headers) and values (2D array of strings, representing rows). ```APIDOC GET /table Parameters: data (Required): names (Required): []string, Description: aka header values (Required): [][]string, Description: aka rows ``` -------------------------------- ### InstaChart GET /donut API Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md Generates a donut chart. Requires names for each segment and their corresponding integer values. This endpoint is suitable for visualizing parts of a whole. ```APIDOC Data Structure for /donut: data: names: []string (Required) values: []int (Required) ``` ```Shell /donut?title=Donut+Chart &data={ "names": ["Monday", "Friday", "Saturday", "Sunday"], "values": [4, 6 ,7, 9] } ``` -------------------------------- ### API Definition: GET /radar Chart Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Defines the GET /radar API endpoint for generating radar charts. It specifies the required data parameters: names (array of strings, min 3), values (2D array of integers, dimensions must match names), and optional labels (array of strings). ```APIDOC GET /radar Parameters: data (Required): names (Required): []string, Validation: >=3 values (Required): [][]int, Validation: count(names) == count(values[0]) labels (Optional): []string ``` -------------------------------- ### InstaChart GET /line API Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md Generates a line chart. Supports options for filling the area under the line and showing/hiding the grid. Data is provided as JSON with X-axis labels, Y-axis values, and optional series names. ```APIDOC GET /line Parameters: line: string (default: 'fill') - 'fill' or 'nofill' grid: string (default: 'show') - 'show' or 'hide' Data Structure for /line: data: x: []string (Required) y: [][]int (Required) names: []string ``` ```Shell /line?title=Line+Chart &subtitle=Sleeping+Hours &data={ "x": ["Mon","Tue","Wed"], "y": [[4,8,7], [10,20,24]], "names": ["Sleeping", "Awake"] } ``` ```Shell /line?title=Area+Chart &subtitle=Sleeping+Hours &fill=true &data={ "x": ["Mon","Tue","Wed"], "y": [[4,8,7], [10,20,24]], "names": ["Sleeping", "Awake"] } ``` -------------------------------- ### Generate Area Chart (Filled Line Chart) via Shell Command Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Example shell command to generate an area chart (a filled line chart) using the InstaChart API. This demonstrates the use of the 'fill=true' parameter along with chart title, subtitle, and the structured JSON data payload. ```shell https://instachart.coveritup.app/line?title=Area+Chart &subtitle=Sleeping+Hours &fill=true &data={ "x": ["Mon","Tue","Wed"], "y": [[4,8,7], [10,20,24]], "names": ["Sleeping", "Awake"] } ``` -------------------------------- ### InstaChart GET /bar API Endpoint Source: https://github.com/kevincobain2000/instachart/blob/master/README.md Generates a bar chart. Allows setting the bar style (vertical/horizontal) and grid visibility. Data includes X-axis labels, Y-axis values, and an optional Z-axis for stacked bars. ```APIDOC GET /bar Parameters: style: string (default: 'vertical') - 'vertical' or 'horizontal' grid: string (default: 'show') - 'show' or 'hide' Data Structure for /bar: data: x: []string (Required) y: [][]int (Required) z: []string (Style will be 'vertical' if 'z' is given) ``` ```Shell /bar?title=Bar+Chart &subtitle=Sleeping+hours &data={ "x": ["Monday", "Friday", "Sunday"], "y": [[8,2,14]], "names": ["Sleeping", "Awake"] } ``` ```Shell /bar?title=Bar+Chart &subtitle=Sleeping+hours &metric=hours &theme=dark &data={ "x": ["Monday", "Friday", "Sunday"], "y": [[8,2,14]], "z": [[9,3,15]], "names": ["Sleeping", "Awake"] } ``` -------------------------------- ### API: GET /line Data Payload Structure Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Defines the JSON structure required for the 'data' parameter when generating line charts. It specifies the 'x' axis values (string array), 'y' axis values (2D integer array), and optional series names (string array). ```APIDOC GET /line Data Structure for 'data' parameter: - x: (Required: true) Type: []string - y: (Required: true) Type: [][]int - names: (Required: false) Type: []string ``` -------------------------------- ### API: Common Chart Query Parameters Source: https://github.com/kevincobain2000/instachart/blob/master/README_BACK.md Describes the common query parameters applicable to all chart generation endpoints, including data format, title, theme, dimensions, and output type. These parameters are used to customize the appearance and content of the generated chart image. ```APIDOC URL: https://instachart.coveritup.app Common Queries: - data: (Required: true) Type: string, Description: JSON Format - title: (Required: false) Type: string - subtitle: (Required: false) Type: string - theme: (Required: false) Type: string, Default: light, Values: light or dark - metric: (Required: false) Type: string - height: (Required: false) Type: int, Default: 768 - width: (Required: false) Type: int, Default: 1024 - output: (Required: false) Type: string, Default: png, Values: png or svg ``` -------------------------------- ### InstaChart Common API Query Parameters Source: https://github.com/kevincobain2000/instachart/blob/master/README.md These parameters are common to all InstaChart API endpoints, allowing customization of chart data, appearance, and output format. They control aspects like chart title, subtitle, theme, dimensions, and output type. ```APIDOC Common Queries: data: string (JSON Format) - Required title: string subtitle: string theme: string (default: 'light') - 'light' or 'dark' metric: string height: int (default: 768) width: int (default: 1024) output: string (default: 'png') - 'png' or 'svg' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.