Compare commits

..

1 Commits

Author SHA1 Message Date
Albert Backenhof
2e24a4d1a4 Updated the indices of the default colors
-Of the Metric Semaphores.

Issue: DEB-162
2019-04-10 09:50:26 +02:00
3 changed files with 10 additions and 34 deletions

View File

@@ -18,9 +18,6 @@ const definition = {
},
uses: 'data'
},
sorting: {
uses: 'sorting'
},
settings: {
items: {
ConceptSemaphores: conceptSemaphores,
@@ -31,25 +28,8 @@ const definition = {
},
uses: 'settings'
},
about: {
component: 'items',
label: 'About',
items: {
header: {
label: 'P&L pivot',
style: 'header',
component: 'text'
},
paragraph1: {
label: `P&L pivot is a Qlik Sense extension which allows you to display Profit & Loss
reporting with color and font customizations.`,
component: 'text'
},
paragraph2: {
label: 'P&L pivot is based upon an extension created by Ivan Felipe Asensio.',
component: 'text'
}
}
sorting: {
uses: 'sorting'
}
},
type: 'items'

View File

@@ -41,7 +41,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 8,
index: 10,
color: '#f93f17'
}
},
@@ -52,7 +52,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 11,
index: 1,
color: '#ffffff'
}
},
@@ -69,7 +69,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 9,
index: 8,
color: '#ffcf02'
}
},
@@ -80,7 +80,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 12,
index: 15,
color: '#000000'
}
},
@@ -91,7 +91,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 10,
index: 3,
color: '#276e27'
}
},
@@ -102,7 +102,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 11,
index: 1,
color: '#ffffff'
}
}

View File

@@ -20,16 +20,12 @@ export default {
},
data: {
dimensions: {
max: function (nMeasures) {
return nMeasures < 9 ? 2 : 1;
},
max: 3,
min: 1,
uses: 'dimensions'
},
measures: {
max: function (nDims) {
return nDims < 2 ? 9 : 8;
},
max: 8,
min: 1,
uses: 'measures'
}