Create PNG Charts

ÜCRETSİZ PREMIUM
Taraf Glenn Christensen | Güncelleyen 2 months ago | 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”
}

Takipçi Sayısı: 0
Kaynaklar:
Kullanım şartları
API Üreticisi:
Rapid account: Glenn Christensen
Glenn Christensen
glennschris
API'yi Değerlendirme İçin Giriş Yapın
Değerlendirme: 5 - Oy Sayısı: 1