feat: support label for series, #1

This commit is contained in:
vicanso 2022-01-15 10:43:38 +08:00
parent a577d30eb8
commit eb421892fe
8 changed files with 148 additions and 7 deletions

View file

@ -71,7 +71,11 @@ var chartOptions = []map[string]string{
"series": [
{
"data": [150, 230, 224, 218, 135, 147, 260],
"type": "line"
"type": "line",
"label": {
"show": true,
"distance": 5
}
}
]
}`,
@ -131,7 +135,11 @@ var chartOptions = []map[string]string{
110,
130
],
"type": "bar"
"type": "bar",
"label": {
"show": true,
"distance": 10
}
}
]
}`,
@ -267,6 +275,9 @@ var chartOptions = []map[string]string{
"name": "Access From",
"type": "pie",
"radius": "50%",
"label": {
"show": true
},
"data": [
{
"value": 1048,