feat: update colors

This commit is contained in:
Shivam Mishra 2020-05-05 18:53:29 +05:30
parent e15dc052a2
commit 81f8fbb042
2 changed files with 6 additions and 6 deletions

View File

@ -90,14 +90,14 @@ def get_chart_data(data):
"data": {
'labels': labels,
'datasets': [
{
"name": "Completed",
"values": completed
},
{
"name": "Overdue",
"values": overdue
},
{
"name": "Completed",
"values": completed
},
{
"name": "Total Tasks",
"values": total
@ -105,7 +105,7 @@ def get_chart_data(data):
]
},
"type": "bar",
"colors": ["#98d85b", "#fc4f51", "#7679fc"],
"colors": ["#fc4f51", "#78d6ff", "#7575ff"],
"barOptions": {
"stacked": True
}

View File

@ -125,7 +125,7 @@ def get_default_dashboards():
'is_public': 1,
'filters_json': json.dumps({"company": company.name, "status": "Open"}),
'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",