@datarailsshared/dr_renderer 1.4.39 → 1.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/highcharts_renderer.js +26 -0
package/package.json
CHANGED
@@ -64,6 +64,7 @@ const CHART_TYPES = {
|
|
64
64
|
GAUGE_CHART_DYNAMIC_GOAL: 'gauge-chart-dynamic-goal',
|
65
65
|
GAUGE_CHART_CATEGORIES_SUMMARY: 'gauge-chart-categories-summary',
|
66
66
|
KPI_WIDGET: 'kpi-widget',
|
67
|
+
SMART_KPI: 'smart-kpi',
|
67
68
|
TEXT_WIDGET: 'text-widget',
|
68
69
|
WATERFALL_BREAKDOWN: 'waterfall-chart-breakdown',
|
69
70
|
WATERFALL_WALKTHROUGH: 'waterfall-chart-walkthrough',
|
@@ -7875,6 +7876,14 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
7875
7876
|
legendName: 'Data Series',
|
7876
7877
|
startedMessage: '',
|
7877
7878
|
},
|
7879
|
+
[highchartsRenderer.CHART_TYPES.SMART_KPI]: {
|
7880
|
+
name: 'Smart Kpi',
|
7881
|
+
label: 'Smart KPI',
|
7882
|
+
title: 'Present a single Key Performance Indicator.',
|
7883
|
+
axisName: 'X-Axis',
|
7884
|
+
legendName: 'Data Series',
|
7885
|
+
startedMessage: 'To get started, drag one field to the value section. Best practice: Drag one field to the filter section, and filter as required.',
|
7886
|
+
},
|
7878
7887
|
'kpi-widget': {
|
7879
7888
|
name: 'Kpi ',
|
7880
7889
|
label: 'KPI',
|
@@ -8341,6 +8350,23 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
8341
8350
|
highchartsRenderer.suboptions["negative_number_format"],
|
8342
8351
|
highchartsRenderer.suboptions["legends"],
|
8343
8352
|
]
|
8353
|
+
},
|
8354
|
+
{
|
8355
|
+
type: 'smart-kpi',
|
8356
|
+
hidden: true,
|
8357
|
+
name: highchartsRenderer.chartsTypesInfo['smart-kpi'].name,
|
8358
|
+
class: 'google-visualization-charteditor-thumbs-kpi',
|
8359
|
+
render: () => { throw new Error('Smart KPI widget is not implemented yet'); },
|
8360
|
+
suboptions: [
|
8361
|
+
highchartsRenderer.suboptions["value"],
|
8362
|
+
highchartsRenderer.suboptions["range"],
|
8363
|
+
highchartsRenderer.suboptions["widget_library"],
|
8364
|
+
highchartsRenderer.suboptions["name"],
|
8365
|
+
highchartsRenderer.suboptions["table_options_transpose"],
|
8366
|
+
highchartsRenderer.suboptions["table_design_options"],
|
8367
|
+
highchartsRenderer.suboptions["negative_number_format"],
|
8368
|
+
highchartsRenderer.suboptions["legends"],
|
8369
|
+
]
|
8344
8370
|
}]
|
8345
8371
|
},
|
8346
8372
|
{
|