Include charts colour scheme
This commit is contained in:
@@ -250,7 +250,8 @@ type (
|
||||
}
|
||||
|
||||
ChartConfig struct {
|
||||
Reports []map[string]interface{}
|
||||
Reports []map[string]interface{}
|
||||
ColorScheme string `yaml:"colorScheme,omitempty"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -631,9 +632,13 @@ func expCharts(charts types.ChartSet, modules types.ModuleSet) (o map[string]Cha
|
||||
o = map[string]Chart{}
|
||||
|
||||
for _, c := range charts {
|
||||
|
||||
chart := Chart{
|
||||
Name: c.Name,
|
||||
Config: ChartConfig{Reports: make([]map[string]interface{}, len(c.Config.Reports))},
|
||||
Name: c.Name,
|
||||
Config: ChartConfig{
|
||||
Reports: make([]map[string]interface{}, len(c.Config.Reports)),
|
||||
ColorScheme: c.Config.ColorScheme,
|
||||
},
|
||||
|
||||
Allow: sysExporter.ExportableResourcePermissions(roles, service.DefaultPermissions, permissions.Allow, types.ChartPermissionResource),
|
||||
Deny: sysExporter.ExportableResourcePermissions(roles, service.DefaultPermissions, permissions.Deny, types.ChartPermissionResource),
|
||||
|
||||
@@ -23,6 +23,7 @@ charts:
|
||||
renderer: {}
|
||||
yAxis:
|
||||
label: Accounts
|
||||
colorScheme: tableau.Tableau10
|
||||
AccountsByType:
|
||||
name: Accounts by type
|
||||
config:
|
||||
@@ -41,6 +42,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Account
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
ActiveCampaignsByType:
|
||||
name: Active campaigns by type
|
||||
config:
|
||||
@@ -56,6 +58,7 @@ charts:
|
||||
type: pie
|
||||
module: Campaigns
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau20
|
||||
CampaignAmountAllOpportunitiesVsTarget:
|
||||
name: Campaign amount all opportunities vs target
|
||||
config:
|
||||
@@ -76,6 +79,7 @@ charts:
|
||||
type: gauge
|
||||
module: Campaigns
|
||||
renderer: {}
|
||||
colorScheme: tableau.Traffic9
|
||||
CampaignAmountAllWonOpportunitiesVsTarget:
|
||||
name: Campaign amount all won opportunities vs target
|
||||
config:
|
||||
@@ -96,6 +100,7 @@ charts:
|
||||
type: gauge
|
||||
module: Campaigns
|
||||
renderer: {}
|
||||
colorScheme: tableau.Traffic9
|
||||
CampaignCostVsRevenue:
|
||||
name: Campaign cost vs revenue
|
||||
config:
|
||||
@@ -133,6 +138,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Euro
|
||||
colorScheme: tableau.Tableau10
|
||||
CampaignCosts:
|
||||
name: Campaign costs
|
||||
config:
|
||||
@@ -155,6 +161,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Value
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesByOrigin:
|
||||
name: Cases by origin
|
||||
config:
|
||||
@@ -170,6 +177,7 @@ charts:
|
||||
type: pie
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesByPriority:
|
||||
name: Cases by priority
|
||||
config:
|
||||
@@ -186,6 +194,7 @@ charts:
|
||||
type: pie
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: office.Wisp6
|
||||
CasesByStatus:
|
||||
name: Cases by status
|
||||
config:
|
||||
@@ -201,6 +210,7 @@ charts:
|
||||
type: pie
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesByType:
|
||||
name: Cases by type
|
||||
config:
|
||||
@@ -216,6 +226,7 @@ charts:
|
||||
type: pie
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesPerMonth:
|
||||
name: Cases per month
|
||||
config:
|
||||
@@ -242,6 +253,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Cases
|
||||
colorScheme: tableau.Tableau20
|
||||
ContactsPerCountry:
|
||||
name: Contacts per country
|
||||
config:
|
||||
@@ -264,6 +276,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Contacts
|
||||
colorScheme: tableau.Tableau20
|
||||
ContactsPerSeniorLeveltitle:
|
||||
name: Contacts per senior level title
|
||||
config:
|
||||
@@ -284,6 +297,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Contact
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
ContractsByStatus:
|
||||
name: Contracts by Status
|
||||
config:
|
||||
@@ -299,6 +313,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Contract
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
ContractsPerStartingMonth:
|
||||
name: Contracts per starting month
|
||||
config:
|
||||
@@ -326,6 +341,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Activated contracts
|
||||
colorScheme: tableau.Tableau20
|
||||
Dealsize:
|
||||
name: Dealsize
|
||||
config:
|
||||
@@ -359,6 +375,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Euro
|
||||
colorScheme: tableau.Tableau10
|
||||
EventsPerMonth:
|
||||
name: Events per month
|
||||
config:
|
||||
@@ -380,6 +397,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Events
|
||||
colorScheme: tableau.Tableau10
|
||||
EventsPerType:
|
||||
name: Events per type
|
||||
config:
|
||||
@@ -395,6 +413,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Event
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
LeadFunnel:
|
||||
name: Lead funnel
|
||||
config:
|
||||
@@ -419,6 +438,7 @@ charts:
|
||||
type: funnel
|
||||
module: Lead
|
||||
renderer: {}
|
||||
colorScheme: tableau.ClassicMedium10
|
||||
LeadsByCountry:
|
||||
name: Leads by country
|
||||
config:
|
||||
@@ -442,6 +462,7 @@ charts:
|
||||
axisType: linear
|
||||
beginAtZero: true
|
||||
label: Leads per country
|
||||
colorScheme: tableau.Tableau10
|
||||
LeadsByRating:
|
||||
name: Leads by rating
|
||||
config:
|
||||
@@ -460,6 +481,7 @@ charts:
|
||||
type: line
|
||||
module: Lead
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
LeadsBySource:
|
||||
name: Leads by source
|
||||
config:
|
||||
@@ -477,6 +499,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Lead
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau20
|
||||
LeadsByType:
|
||||
name: Leads by type
|
||||
config:
|
||||
@@ -498,6 +521,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Lead
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
LeadsPerMonth:
|
||||
name: Leads per month
|
||||
config:
|
||||
@@ -524,6 +548,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Leads
|
||||
colorScheme: tableau.Tableau20
|
||||
MonthlySales:
|
||||
name: Monthly sales
|
||||
config:
|
||||
@@ -557,6 +582,7 @@ charts:
|
||||
beginAtZero: true
|
||||
label: Euro
|
||||
max: ""
|
||||
colorScheme: tableau.Tableau20
|
||||
NumberOfOpportunitiesVsTarget:
|
||||
name: Number of opportunities vs target
|
||||
config:
|
||||
@@ -576,6 +602,7 @@ charts:
|
||||
type: gauge
|
||||
module: Opportunity
|
||||
renderer: {}
|
||||
colorScheme: tableau.Traffic9
|
||||
OpportunitiesCreatedPerMonth:
|
||||
name: Opportunities created per month
|
||||
config:
|
||||
@@ -622,6 +649,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: value
|
||||
colorScheme: tableau.Tableau20
|
||||
OpportunitySalesPipeline:
|
||||
name: Opportunity sales pipeline
|
||||
config:
|
||||
@@ -649,6 +677,7 @@ charts:
|
||||
type: funnel
|
||||
module: Opportunity
|
||||
renderer: {}
|
||||
colorScheme: tableau.ClassicMedium10
|
||||
OpportunityStatusFunnel:
|
||||
name: Opportunity status funnel
|
||||
config:
|
||||
@@ -675,6 +704,7 @@ charts:
|
||||
type: funnel
|
||||
module: Opportunity
|
||||
renderer: {}
|
||||
colorScheme: tableau.ClassicMedium10
|
||||
PriceBookEntriesPerMonth:
|
||||
name: Price book entries per month
|
||||
config:
|
||||
@@ -696,6 +726,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Price book entries
|
||||
colorScheme: tableau.Tableau10
|
||||
PriceBooksCreatedPerMonth:
|
||||
name: Price books created per month
|
||||
config:
|
||||
@@ -717,6 +748,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Price books
|
||||
colorScheme: tableau.Tableau10
|
||||
ProductsAddedPerMonth:
|
||||
name: Products added per month
|
||||
config:
|
||||
@@ -737,6 +769,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Products
|
||||
colorScheme: tableau.Tableau10
|
||||
ProductsPerFamily:
|
||||
name: Products per family
|
||||
config:
|
||||
@@ -753,6 +786,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Product
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
QuotesByStatus:
|
||||
name: Quotes by status
|
||||
config:
|
||||
@@ -769,6 +803,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Quote
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau20
|
||||
QuotesPerMonth:
|
||||
name: Quotes per month
|
||||
config:
|
||||
@@ -797,6 +832,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Quotes
|
||||
colorScheme: tableau.Tableau20
|
||||
SalesVsTarget:
|
||||
name: Sales vs target
|
||||
config:
|
||||
@@ -818,6 +854,7 @@ charts:
|
||||
type: gauge
|
||||
module: Opportunity
|
||||
renderer: {}
|
||||
colorScheme: tableau.Traffic9
|
||||
SalesYTD:
|
||||
name: Sales YTD
|
||||
config:
|
||||
@@ -838,6 +875,7 @@ charts:
|
||||
type: gauge
|
||||
module: Opportunity
|
||||
renderer: {}
|
||||
colorScheme: tableau.Traffic9
|
||||
SolutionsByStatus:
|
||||
name: Solutions by status
|
||||
config:
|
||||
@@ -853,6 +891,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Solution
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
SolutionsCreatedPerMonth:
|
||||
name: Solutions created per month
|
||||
config:
|
||||
@@ -874,6 +913,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Solutions
|
||||
colorScheme: tableau.Tableau10
|
||||
TasksByStatus:
|
||||
name: Tasks by status
|
||||
config:
|
||||
@@ -890,6 +930,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Task
|
||||
renderer: {}
|
||||
colorScheme: tableau.ClassicGreenOrange6
|
||||
TasksPerMonth:
|
||||
name: Tasks per month
|
||||
config:
|
||||
@@ -912,3 +953,4 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Tasks
|
||||
colorScheme: tableau.Tableau10
|
||||
|
||||
@@ -17,6 +17,7 @@ charts:
|
||||
type: pie
|
||||
module: Entitlement
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
AverageTimeSpentPerCase:
|
||||
name: Average time spent per case
|
||||
config:
|
||||
@@ -35,6 +36,7 @@ charts:
|
||||
type: bar
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CaseUpdatesPerType:
|
||||
name: Case updates per type
|
||||
config:
|
||||
@@ -53,6 +55,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Update
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesByCategory:
|
||||
name: Cases by category
|
||||
config:
|
||||
@@ -74,6 +77,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesByPriority:
|
||||
name: Cases by priority
|
||||
config:
|
||||
@@ -93,6 +97,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
CasesByStatus:
|
||||
name: Cases by status
|
||||
config:
|
||||
@@ -112,6 +117,7 @@ charts:
|
||||
type: doughnut
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
ClosedCasesPerMonth:
|
||||
name: Closed cases per month
|
||||
config:
|
||||
@@ -135,6 +141,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Cases
|
||||
colorScheme: tableau.Tableau10
|
||||
CostPerCategory:
|
||||
name: Total cost per category
|
||||
config:
|
||||
@@ -157,6 +164,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: $
|
||||
colorScheme: tableau.Tableau10
|
||||
CostPerProductFamily:
|
||||
name: Cost per product family
|
||||
config:
|
||||
@@ -178,6 +186,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: $
|
||||
colorScheme: tableau.Tableau10
|
||||
CostsPerAccount:
|
||||
name: Total costs per account
|
||||
config:
|
||||
@@ -199,6 +208,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: $
|
||||
colorScheme: tableau.Tableau10
|
||||
KnowledgeBaseArticlesPerType:
|
||||
name: Knowledge Base articles per type
|
||||
config:
|
||||
@@ -218,6 +228,7 @@ charts:
|
||||
type: pie
|
||||
module: KnowledgeBase
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
KnowledgeBaseItemsCreatedPerDay:
|
||||
name: Knowledge Base items created per day
|
||||
config:
|
||||
@@ -239,6 +250,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: KB Items
|
||||
colorScheme: tableau.Tableau10
|
||||
NewCasesByMonth:
|
||||
name: New cases per month
|
||||
config:
|
||||
@@ -263,6 +275,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Cases
|
||||
colorScheme: tableau.Tableau10
|
||||
TimePerAccount:
|
||||
name: Total time spend per account
|
||||
config:
|
||||
@@ -282,6 +295,7 @@ charts:
|
||||
type: pie
|
||||
module: Account
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau20
|
||||
TimeSpentPerProductFamily:
|
||||
name: Time Spent per Product Family
|
||||
config:
|
||||
@@ -304,6 +318,7 @@ charts:
|
||||
type: pie
|
||||
module: Product
|
||||
renderer: {}
|
||||
colorScheme: tableau.ClassicMedium10
|
||||
TotalCostPerDepartment:
|
||||
name: Total costs per department
|
||||
config:
|
||||
@@ -326,6 +341,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: $
|
||||
colorScheme: tableau.Tableau10
|
||||
TotalCostPerMonth:
|
||||
name: Total cost per month
|
||||
config:
|
||||
@@ -346,6 +362,7 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: $
|
||||
colorScheme: tableau.Tableau10
|
||||
TotalTimeSpentPerCategory:
|
||||
name: 'Total time spent per category '
|
||||
config:
|
||||
@@ -366,6 +383,7 @@ charts:
|
||||
type: pie
|
||||
module: Case
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
TotalTimeSpentPerDepartment:
|
||||
name: Total time spent per department
|
||||
config:
|
||||
@@ -386,6 +404,7 @@ charts:
|
||||
type: pie
|
||||
module: Department
|
||||
renderer: {}
|
||||
colorScheme: tableau.Tableau10
|
||||
TotalTimeSpentPerMonth:
|
||||
name: Total time spent per month
|
||||
config:
|
||||
@@ -407,3 +426,4 @@ charts:
|
||||
yAxis:
|
||||
beginAtZero: true
|
||||
label: Hours
|
||||
colorScheme: tableau.Tableau10
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user