@datarailsshared/dr_renderer 1.2.116 → 1.2.119

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.116",
3
+ "version": "1.2.119",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -807,14 +807,18 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
807
807
  };
808
808
  if (isNewAngular) {
809
809
  const isPieChart = chartOptions.chart && chartOptions.chart.type === 'pie';
810
+ const x = isPieChart ? 0 :
811
+ chartOptions.yAxis.title.text || chartOptions.yAxis.title.autoylabel ? -60 : -40;
812
+ const y = isPieChart ? 27 :
813
+ chartOptions.xAxis.title.text || chartOptions.xAxis.title.autoxlabel ? 65 : 43;
810
814
  chartOptions.drilldown.breadcrumbs = {
811
815
  formatter: () => '< Back',
812
816
  showFullPath: false,
813
817
  position: {
814
818
  align: 'left',
815
819
  verticalAlign: 'bottom',
816
- x: isPieChart ? 0 : -80,
817
- y: isPieChart ? 27 : 60,
820
+ x: x,
821
+ y: y,
818
822
  },
819
823
  floating: true,
820
824
  buttonTheme: {
@@ -823,7 +827,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
823
827
  'stroke-width': 1,
824
828
  stroke: '#85889c',
825
829
  r: 3,
826
- padding: 7,
830
+ padding: 3,
827
831
  states: {
828
832
  hover: {
829
833
  fill: '#eef3f6',
@@ -4296,7 +4300,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
4296
4300
  filter.values[i] = highchartsRenderer.returnRawDataValue(filter.type, filter.values[i], filter.format, filter.name);
4297
4301
  }
4298
4302
  }
4299
- filter.value_to_show = filter.values.join(',');
4303
+ filter.value_to_show = filter.values.join(', ');
4300
4304
  } else if (filter.values && filter.values.label) {
4301
4305
  filter.value_to_show = filter.values.label;
4302
4306
  } else {
@@ -4320,6 +4324,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
4320
4324
  return '[blank]';
4321
4325
  }
4322
4326
 
4327
+ const parsedToUnix = moment_lib(value).unix();
4328
+ if (typeof (value) != 'number' && parsedToUnix) {
4329
+ value = parsedToUnix;
4330
+ }
4331
+
4323
4332
  if (typeof (value) != 'number') {
4324
4333
  const drAdditionalField = _.find($.pivotUtilities.additionalFieldsList, {key: value});
4325
4334
  if (drAdditionalField && drAdditionalField.key)
@@ -7576,6 +7585,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7576
7585
  for (let i = 0; i < rowKey.length; i++) {
7577
7586
  let filter = lodash.find(filters, {name: widget.rows[i].name});
7578
7587
  if (filter) {
7588
+ filter.is_excluded = false;
7579
7589
  filter.values = widget.rows[i].type === 'Date' ?
7580
7590
  highchartsRenderer.createDateTypeFromValue(rowKey[i], widget.rows[i].format) :
7581
7591
  [rowKey[i]];
@@ -7586,6 +7596,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7586
7596
  for (let i = 0; i < colKey.length; i++) {
7587
7597
  let filter = lodash.find(filters, {name: widget.cols[i].name});
7588
7598
  if (filter) {
7599
+ filter.is_excluded = false;
7589
7600
  filter.values = widget.cols[i].type === 'Date' ?
7590
7601
  highchartsRenderer.createDateTypeFromValue(colKey[i], widget.cols[i].format) :
7591
7602
  [colKey[i]];