@datarailsshared/dr_renderer 1.2.253 → 1.2.255

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.253",
3
+ "version": "1.2.255",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -3356,6 +3356,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3356
3356
  formatter: highchartsRenderer.defaultDataLabelFormatter(pivotData, opts),
3357
3357
  style: highchartsRenderer.getDataLabelsStyle(additionOptions),
3358
3358
  inside: false
3359
+ },
3360
+ events: {
3361
+ legendItemClick: () => {
3362
+ return false;
3363
+ }
3359
3364
  }
3360
3365
  }
3361
3366
  };
@@ -7256,13 +7261,15 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7256
7261
  [highchartsRenderer.CHART_TYPES.WATERFALL_WALKTHROUGH]: {
7257
7262
  name: 'Walkthrough Chart',
7258
7263
  label: 'Walkthrough Chart',
7259
- title: 'Describe and explain changes in your financial outcomes.',
7260
- titleInEditor: 'TODO: add text',
7261
- description: 'For example, describe the gaps between income and your gross profit.',
7264
+ title: 'Drag one or more fields to configure your x-axis.',
7265
+ description: 'The category is shown on the x-axis and should be between 2 to 10 columns.',
7266
+ titleInEditor: 'Waterfall walkthrough widget.',
7267
+ descriptionInEditor: 'This chart visualizes the cumulative effect of positive and negative changes on an initial value, ultimately showing the net value. You can change the trend of each item and add new totals columns using the Walkthrough options button.',
7262
7268
  axisName: 'Category',
7263
- startedMessage: 'TODO: add text',
7264
- axisTooltipTitle: 'TODO: add text',
7265
- legendTooltipTitle: 'TODO: add text',
7269
+ startedMessage: '',
7270
+ axisTooltipTitle: 'Drag one or more fields to configure your x-axis.',
7271
+ axisTooltipDescription: 'The category is shown on the x-axis and should be between 2 to 10 columns.',
7272
+ legendTooltipTitle: '',
7266
7273
  },
7267
7274
  'combo-chart': {
7268
7275
  name: 'Combo Chart ',
@@ -8429,7 +8436,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
8429
8436
  colFilter.value_to_show = labels.join(', ');
8430
8437
  filters.push(colFilter);
8431
8438
  } else if (widget.chart_type === highchartsRenderer.CHART_TYPES.WATERFALL_WALKTHROUGH) {
8432
- lodash.forEach(col_key, function (colKeyElement, index) {
8439
+ lodash.forEach(col_key, function (colKeyElement, index) {
8433
8440
  const field = lodash.get(widget, `cols[${ index }]`);
8434
8441
  if (field) {
8435
8442
  let filter = highchartsRenderer.createFilterObject(field);
@@ -9248,7 +9255,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
9248
9255
  highchartsRenderer.buildFilterValuesFromWalkthroughColKey = function(widget, field, filter, colKey) {
9249
9256
  const isTotal = lodash.isArray(colKey);
9250
9257
  colKey = isTotal ? colKey : [colKey];
9251
-
9258
+
9252
9259
  lodash.forEach(colKey, function (colValue) {
9253
9260
  let value = colValue;
9254
9261
  if (field.type === 'Date' && !isTotal) {
package/src/pivot.css CHANGED
@@ -420,7 +420,7 @@ table.pvtTable thead tr th.pvtTotalLabel {
420
420
  table.pvtTable.numbers-to-right tbody tr td.pvtVal,
421
421
  table.pvtTable.numbers-to-right tbody tr td.rowTotal.rowTotal,
422
422
  table.pvtTable.numbers-to-right tbody tr td.pvtGrandTotal {
423
- text-align: right !important;
423
+ text-align: right;
424
424
  padding-right: 9px;
425
425
  line-height: 15px;
426
426
  }