Create PNG Charts

부분 유료
분류별 Glenn Christensen | 업데이트됨 2 месяца назад | 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
Rate API에 로그인
등급: 5 - 투표: 1