feat: update colors
This commit is contained in:
parent
e15dc052a2
commit
81f8fbb042
@ -90,14 +90,14 @@ def get_chart_data(data):
|
|||||||
"data": {
|
"data": {
|
||||||
'labels': labels,
|
'labels': labels,
|
||||||
'datasets': [
|
'datasets': [
|
||||||
{
|
|
||||||
"name": "Completed",
|
|
||||||
"values": completed
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Overdue",
|
"name": "Overdue",
|
||||||
"values": overdue
|
"values": overdue
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Completed",
|
||||||
|
"values": completed
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Total Tasks",
|
"name": "Total Tasks",
|
||||||
"values": total
|
"values": total
|
||||||
@ -105,7 +105,7 @@ def get_chart_data(data):
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"type": "bar",
|
"type": "bar",
|
||||||
"colors": ["#98d85b", "#fc4f51", "#7679fc"],
|
"colors": ["#fc4f51", "#78d6ff", "#7575ff"],
|
||||||
"barOptions": {
|
"barOptions": {
|
||||||
"stacked": True
|
"stacked": True
|
||||||
}
|
}
|
||||||
|
|||||||
@ -125,7 +125,7 @@ def get_default_dashboards():
|
|||||||
'is_public': 1,
|
'is_public': 1,
|
||||||
'filters_json': json.dumps({"company": company.name, "status": "Open"}),
|
'filters_json': json.dumps({"company": company.name, "status": "Open"}),
|
||||||
'type': 'Bar',
|
'type': 'Bar',
|
||||||
'custom_options': '{"type": "bar", "colors": ["#98d85b", "#fc4f51", "#7679fc"], "axisOptions": { "shortenYAxisNumbers": 1}, "barOptions": { "stacked": 1 }}',
|
'custom_options': '{"type": "bar", "colors": ["#fc4f51", "#78d6ff", "#7575ff"], "axisOptions": { "shortenYAxisNumbers": 1}, "barOptions": { "stacked": 1 }}',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "Dashboard Chart",
|
"doctype": "Dashboard Chart",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user