Skip to content

Commit

Permalink
Add working default values
Browse files Browse the repository at this point in the history
  • Loading branch information
that-one-tom committed Oct 30, 2022
1 parent 9d1cc44 commit e4a318d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "budibase-chartjs",
"version": "0.2.0",
"version": "0.2.1",
"description": "Chart.js component for Budibase",
"license": "MIT",
"svelte": "index.js",
Expand Down
6 changes: 4 additions & 2 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"type": "text",
"key": "chartdata",
"label": "Data",
"required": true
"required": true,
"defaultValue": "{\"labels\":[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\"],\"datasets\":[{\"label\":\"My First dataset\",\"fill\":true,\"lineTension\":0.3,\"backgroundColor\":\"rgba(225, 204,230, .3)\",\"borderColor\":\"rgb(205, 130, 158)\",\"borderCapStyle\":\"butt\",\"borderDash\":[],\"borderDashOffset\":0,\"borderJoinStyle\":\"miter\",\"pointBorderColor\":\"rgb(205, 130,1 58)\",\"pointBackgroundColor\":\"rgb(255, 255, 255)\",\"pointBorderWidth\":10,\"pointHoverRadius\":5,\"pointHoverBackgroundColor\":\"rgb(0, 0, 0)\",\"pointHoverBorderColor\":\"rgba(220, 220, 220,1)\",\"pointHoverBorderWidth\":2,\"pointRadius\":1,\"pointHitRadius\":10,\"data\":[65,59,80,81,56,55,40]},{\"label\":\"My Second dataset\",\"fill\":true,\"lineTension\":0.3,\"backgroundColor\":\"rgba(184, 185, 210, .3)\",\"borderColor\":\"rgb(35, 26, 136)\",\"borderCapStyle\":\"butt\",\"borderDash\":[],\"borderDashOffset\":0,\"borderJoinStyle\":\"miter\",\"pointBorderColor\":\"rgb(35, 26, 136)\",\"pointBackgroundColor\":\"rgb(255, 255, 255)\",\"pointBorderWidth\":10,\"pointHoverRadius\":5,\"pointHoverBackgroundColor\":\"rgb(0, 0, 0)\",\"pointHoverBorderColor\":\"rgba(220, 220, 220, 1)\",\"pointHoverBorderWidth\":2,\"pointRadius\":1,\"pointHitRadius\":10,\"data\":[28,48,40,19,86,27,90]}]}"
},
{
"type": "select",
Expand All @@ -29,7 +30,8 @@
{
"type": "text",
"key": "chartoptions",
"label": "Options"
"label": "Options",
"defaultValue": "{}"
}
]
}
Expand Down

0 comments on commit e4a318d

Please sign in to comment.