@datarailsshared/dr_renderer 1.2.105 → 1.2.108
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 +34 -2
package/package.json
CHANGED
|
@@ -334,7 +334,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
334
334
|
return value.options.widgetId === graphId;
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
|
|
338
338
|
if (!chart) return;
|
|
339
339
|
|
|
340
340
|
/*if(chart.title && chart.title.textStr){
|
|
@@ -599,7 +599,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
599
599
|
series_text = ': ';
|
|
600
600
|
}
|
|
601
601
|
let formatted_value_to_return = $.pivotUtilities.getFormattedNumber(y, null, opts);
|
|
602
|
-
if (aggr.value()
|
|
602
|
+
if (aggr.value()) {
|
|
603
603
|
formatted_value_to_return = $.pivotUtilities.getFormattedNumber(aggr.value(), aggr, opts);
|
|
604
604
|
}
|
|
605
605
|
|
|
@@ -4493,6 +4493,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
4493
4493
|
});
|
|
4494
4494
|
}
|
|
4495
4495
|
|
|
4496
|
+
field.category = lodash.map(field.category, category => highchartsRenderer.decodeFunc(category));
|
|
4497
|
+
|
|
4496
4498
|
if (field.usage_info && field.usage_info.data_info && field.usage_info.data_info.samples) {
|
|
4497
4499
|
let fieldSamples = [];
|
|
4498
4500
|
lodash.forEach(field.usage_info.data_info.samples, function(sample) {
|
|
@@ -5580,6 +5582,17 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5580
5582
|
default_value: ''
|
|
5581
5583
|
}]
|
|
5582
5584
|
},
|
|
5585
|
+
'description': {
|
|
5586
|
+
category_class: 'google-visualization-charteditor-mini-more',
|
|
5587
|
+
category_label: 'Description',
|
|
5588
|
+
category_type: 'description',
|
|
5589
|
+
elements: [{
|
|
5590
|
+
element_type: 'textarea',
|
|
5591
|
+
value_name: 'description',
|
|
5592
|
+
element_label: 'Widget Description',
|
|
5593
|
+
default_value: ''
|
|
5594
|
+
}]
|
|
5595
|
+
},
|
|
5583
5596
|
'chart': {
|
|
5584
5597
|
category_class: 'google-visualization-charteditor-mini-more',
|
|
5585
5598
|
category_label: 'Chart',
|
|
@@ -6300,6 +6313,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6300
6313
|
highchartsRenderer.suboptions["tooltips"],
|
|
6301
6314
|
highchartsRenderer.suboptions["label"],
|
|
6302
6315
|
highchartsRenderer.suboptions["subtitle"],
|
|
6316
|
+
highchartsRenderer.suboptions["description"],
|
|
6303
6317
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6304
6318
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6305
6319
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6323,6 +6337,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6323
6337
|
highchartsRenderer.suboptions["tooltips"],
|
|
6324
6338
|
highchartsRenderer.suboptions["label"],
|
|
6325
6339
|
highchartsRenderer.suboptions["subtitle"],
|
|
6340
|
+
highchartsRenderer.suboptions["description"],
|
|
6326
6341
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6327
6342
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6328
6343
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6345,6 +6360,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6345
6360
|
highchartsRenderer.suboptions["tooltips"],
|
|
6346
6361
|
highchartsRenderer.suboptions["label"],
|
|
6347
6362
|
highchartsRenderer.suboptions["subtitle"],
|
|
6363
|
+
highchartsRenderer.suboptions["description"],
|
|
6348
6364
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6349
6365
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6350
6366
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6373,6 +6389,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6373
6389
|
highchartsRenderer.suboptions["tooltips"],
|
|
6374
6390
|
highchartsRenderer.suboptions["label"],
|
|
6375
6391
|
highchartsRenderer.suboptions["subtitle"],
|
|
6392
|
+
highchartsRenderer.suboptions["description"],
|
|
6376
6393
|
highchartsRenderer.suboptions["table_options"],
|
|
6377
6394
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6378
6395
|
highchartsRenderer.suboptions["chart"],
|
|
@@ -6395,6 +6412,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6395
6412
|
highchartsRenderer.suboptions["tooltips"],
|
|
6396
6413
|
highchartsRenderer.suboptions["label_with_percentage"],
|
|
6397
6414
|
highchartsRenderer.suboptions["subtitle"],
|
|
6415
|
+
highchartsRenderer.suboptions["description"],
|
|
6398
6416
|
highchartsRenderer.suboptions["table_options"],
|
|
6399
6417
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6400
6418
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6422,6 +6440,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6422
6440
|
highchartsRenderer.suboptions["tooltips"],
|
|
6423
6441
|
highchartsRenderer.suboptions["label"],
|
|
6424
6442
|
highchartsRenderer.suboptions["subtitle"],
|
|
6443
|
+
highchartsRenderer.suboptions["description"],
|
|
6425
6444
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6426
6445
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6427
6446
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6444,6 +6463,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6444
6463
|
highchartsRenderer.suboptions["tooltips"],
|
|
6445
6464
|
highchartsRenderer.suboptions["label"],
|
|
6446
6465
|
highchartsRenderer.suboptions["subtitle"],
|
|
6466
|
+
highchartsRenderer.suboptions["description"],
|
|
6447
6467
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6448
6468
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6449
6469
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6464,6 +6484,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6464
6484
|
highchartsRenderer.suboptions["tooltips"],
|
|
6465
6485
|
highchartsRenderer.suboptions["label"],
|
|
6466
6486
|
highchartsRenderer.suboptions["subtitle"],
|
|
6487
|
+
highchartsRenderer.suboptions["description"],
|
|
6467
6488
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6468
6489
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6469
6490
|
highchartsRenderer.suboptions["negative_number_format"],
|
|
@@ -6492,6 +6513,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6492
6513
|
highchartsRenderer.suboptions["tooltips"],
|
|
6493
6514
|
highchartsRenderer.suboptions["label"],
|
|
6494
6515
|
highchartsRenderer.suboptions["subtitle"],
|
|
6516
|
+
highchartsRenderer.suboptions["description"],
|
|
6495
6517
|
highchartsRenderer.suboptions["table_options"],
|
|
6496
6518
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6497
6519
|
highchartsRenderer.suboptions["chart"],
|
|
@@ -6514,6 +6536,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6514
6536
|
highchartsRenderer.suboptions["tooltips"],
|
|
6515
6537
|
highchartsRenderer.suboptions["label_with_percentage"],
|
|
6516
6538
|
highchartsRenderer.suboptions["subtitle"],
|
|
6539
|
+
highchartsRenderer.suboptions["description"],
|
|
6517
6540
|
highchartsRenderer.suboptions["table_options"],
|
|
6518
6541
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6519
6542
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6541,6 +6564,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6541
6564
|
highchartsRenderer.suboptions["tooltips"],
|
|
6542
6565
|
highchartsRenderer.suboptions["label"],
|
|
6543
6566
|
highchartsRenderer.suboptions["subtitle"],
|
|
6567
|
+
highchartsRenderer.suboptions["description"],
|
|
6544
6568
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6545
6569
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6546
6570
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6563,6 +6587,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6563
6587
|
highchartsRenderer.suboptions["tooltips"],
|
|
6564
6588
|
highchartsRenderer.suboptions["label"],
|
|
6565
6589
|
highchartsRenderer.suboptions["subtitle"],
|
|
6590
|
+
highchartsRenderer.suboptions["description"],
|
|
6566
6591
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6567
6592
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6568
6593
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6590,6 +6615,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6590
6615
|
highchartsRenderer.suboptions["tooltips"],
|
|
6591
6616
|
highchartsRenderer.suboptions["label_pie"],
|
|
6592
6617
|
highchartsRenderer.suboptions["subtitle"],
|
|
6618
|
+
highchartsRenderer.suboptions["description"],
|
|
6593
6619
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6594
6620
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6595
6621
|
highchartsRenderer.suboptions["chart"],
|
|
@@ -6608,6 +6634,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6608
6634
|
highchartsRenderer.suboptions["tooltips"],
|
|
6609
6635
|
highchartsRenderer.suboptions["label_pie"],
|
|
6610
6636
|
highchartsRenderer.suboptions["subtitle"],
|
|
6637
|
+
highchartsRenderer.suboptions["description"],
|
|
6611
6638
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6612
6639
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6613
6640
|
highchartsRenderer.suboptions["chart"],
|
|
@@ -6637,6 +6664,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6637
6664
|
highchartsRenderer.suboptions["range"],
|
|
6638
6665
|
highchartsRenderer.suboptions["tooltips"],
|
|
6639
6666
|
highchartsRenderer.suboptions["subtitle"],
|
|
6667
|
+
highchartsRenderer.suboptions["description"],
|
|
6640
6668
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6641
6669
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6642
6670
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6655,6 +6683,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6655
6683
|
highchartsRenderer.suboptions["range"],
|
|
6656
6684
|
highchartsRenderer.suboptions["tooltips"],
|
|
6657
6685
|
highchartsRenderer.suboptions["subtitle"],
|
|
6686
|
+
highchartsRenderer.suboptions["description"],
|
|
6658
6687
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6659
6688
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6660
6689
|
highchartsRenderer.suboptions["chart_grid"],
|
|
@@ -6677,6 +6706,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6677
6706
|
highchartsRenderer.suboptions["default_show"],
|
|
6678
6707
|
highchartsRenderer.suboptions["value"],
|
|
6679
6708
|
highchartsRenderer.suboptions["range"],
|
|
6709
|
+
highchartsRenderer.suboptions["description"],
|
|
6680
6710
|
highchartsRenderer.suboptions["name"],
|
|
6681
6711
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6682
6712
|
highchartsRenderer.suboptions["table_design_options"],
|
|
@@ -6698,6 +6728,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6698
6728
|
suboptions: [
|
|
6699
6729
|
highchartsRenderer.suboptions["default_show"],
|
|
6700
6730
|
highchartsRenderer.suboptions["name"],
|
|
6731
|
+
highchartsRenderer.suboptions["description"],
|
|
6701
6732
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6702
6733
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6703
6734
|
highchartsRenderer.suboptions["negative_number_format"],
|
|
@@ -6715,6 +6746,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6715
6746
|
class: 'google-visualization-charteditor-thumbs-table',
|
|
6716
6747
|
render: highchartsRenderer.ptRenderBasicLine,
|
|
6717
6748
|
suboptions: [
|
|
6749
|
+
highchartsRenderer.suboptions["description"],
|
|
6718
6750
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
6719
6751
|
highchartsRenderer.suboptions["table_design_options"],
|
|
6720
6752
|
highchartsRenderer.suboptions["negative_number_format"],
|