Create PNG Charts

免费增值
通过 Glenn Christensen | 已更新 vor 2 Monaten | Video, Images
Health Check

N/A

README

=== Documentation ===
endpoint: /ep1-api/create_vertical_bar_chart/
method: POST
payload to send to enpoint …

{
“image_width”: 800,
“image_height”: 600,
“text_color”: “#FFFFFF”,
“font_size”: 12,
“stroke_color”: “#FFFFFF”,
“canvas_background”: “#0000FF”,
“column_bg_color”: “#00FF00”,
“title”: “2021 Revenue (in millions)”,
“points”: {
“Jan”: 5,
“Feb”: 15,
“March”:22
}
}

About the points array …
The points array is in the format “Label”:VerticalBarValue,
the label is required,
all values in points array are to be zero or higher,
they can be integers or floats,
the values can be large or small (code will scale them).

========== RESPONSES ===============

JSON encoded response if an image was created …

HTTP 200
{
‘http’ : ‘200’,
‘base64_image_data’ : base64_encode(getImageBlob),
‘file_size’ : strlen(getImageBlob)
}

if color based vars are not specified in hex, the invalid vars are listed.
JSON encoded response.

HTTP 400
{
“http”: “400”,
“invalid_hex_vars”: [
“stroke_color”,
“canvas_background”
]
}

if an incorrect proxy secret key is used.
JSON encoded response.

HTTP 401
{
“http”:“401”,
“error”:“proxy secret not found”
}

关注者:0
资源:
使用条款
API 创建者:
Rapid account: Glenn Christensen
Glenn Christensen
glennschris
登录并给 API 打分
打分:5 - 投票:1