Pie Chart

GET /chart/pie

Request

Parameter Description Type Required Default
labels Comma separated labels for x axis string yes
values Comma separated values for y axis, use | to separate multiple series string yes
titles Comma separated titles for series string no
colors Comma separated colors for series string no
title Chart title string no
dpi Controls chart size string no 150

Response

Description Type
Chart image file

Example

https://api.labstack.com/chart/pie?values=33,26,22,10,9&labels=Pepperoni,Hawaiian,Mushroom,Sausage,Anchovies&colors=tomato,lawngreen,burlywood,firebrick,deepskyblue&title=Pizza Popularity&x_title=Year

© 2018 LabStack. All Rights Reserved.