Chart as Image - service using go-chart
and go-charts.
![go-build-time](https://camo.githubusercontent.com/7d2581d6cdd257bb2100a44410370f484d90bdefc4d37e540286e044038b6ad1/68747470733a2f2f636f766572697475702e6170702f62616467653f6f72673d6b6576696e636f6261696e32303030267265706f3d696e737461636861727426747970653d676f2d6275696c642d74696d65266272616e63683d6d6173746572)
![go-build-time](https://camo.githubusercontent.com/10c842010df078b7a38dd6d3efbccd223c90f0d28658bd046b97e5e2f4e91ec9/68747470733a2f2f636f766572697475702e6170702f63686172743f6f72673d6b6576696e636f6261696e32303030267265706f3d696e737461636861727426747970653d676f2d6275696c642d74696d65266f75747075743d7376672677696474683d313630266865696768743d313630266272616e63683d6d6173746572266c696e653d66696c6c)
Quick Setup: Easy setup. Add charts as images in markdown, emails etc.
Hassle Free: Create charts as images with single URL.
Supports: Choose from Line, bar, donut, pie, scatter, bubble, stacked bar, etc.
Lightweight: Written in Go. No external dependencies. Download and self-host binary.
API Documentation Restful API with image/png
response.
URL https://instachart.coveritup.app
Common Queries |
Required |
Type |
Default |
Description |
data |
◯ |
string |
|
JSON Format |
title |
|
string |
|
|
subtitle |
|
string |
|
|
theme |
|
string |
light |
light or dark |
metric |
|
string |
|
|
height |
|
int |
768 |
|
width |
|
int |
1024 |
|
output |
|
string |
png |
png or svg |
Query |
Required |
Type |
Default |
Description |
line |
|
string |
fill |
fill or nofill |
grid |
|
string |
show |
show or hide |
data |
Required |
Type |
x |
◯ |
[]string |
y |
◯ |
[][]int |
names |
|
[]string |
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"]
}
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"]
}
Extra params for bar
chart.
Query |
Required |
Type |
Default |
Validation |
style |
|
string |
vertical |
vertical or horizontal |
grid |
|
string |
show |
show or hide |
data |
Required |
Type |
Description |
x |
◯ |
[]string |
|
y |
◯ |
[][]int |
|
z |
|
[]string |
Style will be vertical with z is given |
https://instachart.coveritup.app/bar?title=Bar+Chart
&subtitle=Sleeping+hours
&data={
"x": ["Monday", "Friday", "Sunday"],
"y": [[8,2,14]],
"names": ["Sleeping", "Awake"]
}
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"]
}
data |
Required |
Type |
names |
◯ |
[]string |
values |
◯ |
[]int |
https://instachart.coveritup.app/donut?title=Donut+Chart
&data={
"names": ["Monday", "Friday", "Saturday", "Sunday"],
"values": [4, 6 ,7, 9]
}
data |
Required |
Type |
names |
◯ |
[]string |
values |
◯ |
[]int |
https://instachart.coveritup.app/pie?title=Pie+Chart
&subtitle=Sleeping+Hours
&data={
"names": ["Monday", "Friday", "Saturday", "Sunday"],
"values": [4, 6 ,7, 9]
}
data |
Required |
Type |
Validation |
names |
◯ |
[]string |
>=3 |
values |
◯ |
[][]int |
count(names) == count(values[0]) |
labels |
|
[]string |
|
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]]
}
data |
Required |
Type |
names |
◯ |
[]string |
values |
◯ |
[]int |
https://instachart.coveritup.app/funnel?title=Radar+Chart
&data={
"names": ["Mon","Tue", "Thu", "Fri", "Sat", "Sun"],
"values": [100,80,60,40,20,10]
}
data |
Required |
Type |
Description |
names |
◯ |
[]string |
aka header |
values |
◯ |
[][]string |
aka rows |
https://instachart.coveritup.app/table?title=Table+Chart
&data={
"names": ["Branch","Code Coverage", "Quality"],
"values": [["master","80","90"], ["develop","70","79"]]
}
curl -sLk https://raw.githubusercontent.com/kevincobain2000/instachart/master/install.sh | sh
## Will run server on localhost:3001
# For more options see --help
./instachart
- v1.0.0 - Initial release with
line
, bar
, donut
, pie
, radar
.
- v1.0.1 - Bug fixes and code refactor.
- v1.0.2 -
funnel
charts and table
as image.
- v1.0.3 - Fixes a few padding issues.
- v1.0.4 - Adds
/
for frontend. And Installation instructions for self-hosting.
- v1.0.5 - Frontend page with examples.
- v1.0.6 - Code improvements and bug fixes.
- v1.0.7 - Adds trends for
bar
charts.
- v1.0.8 - Adds support for
svg
charts.
- v1.0.9 - Validations improvements.
- v1.0.11 - No LP on release version.
- v1.0.14 - Support mini
- v1.0.15 - Do not show grids on mini charts