seitime-frappe/frappe/website/dashboard_fixtures.py
Suraj Shetty c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30

43 lines
880 B
Python

import frappe
def get_data():
return frappe._dict(
{
"dashboards": get_dashboards(),
"charts": get_charts(),
"number_cards": None,
}
)
def get_dashboards():
return [
{
"name": "Website",
"dashboard_name": "Website",
"charts": [{"chart": "Website Analytics", "width": "Full"}],
}
]
def get_charts():
return [
{
"chart_name": "Website Analytics",
"chart_type": "Report",
"custom_options": '{"type": "line", "lineOptions": {"regionFill": 1}, "axisOptions": {"shortenYAxisNumbers": 1}, "tooltipOptions": {}}',
"doctype": "Dashboard Chart",
"filters_json": "{}",
"group_by_type": "Count",
"is_custom": 1,
"is_public": 1,
"name": "Website Analytics",
"number_of_groups": 0,
"report_name": "Website Analytics",
"time_interval": "Yearly",
"timeseries": 0,
"timespan": "Last Year",
"type": "Line",
}
]