@datarailsshared/dr_renderer 1.2.215-dragons → 1.2.216-dragons

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.215-dragons",
3
+ "version": "1.2.216-dragons",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -1459,6 +1459,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1459
1459
  val = 0;
1460
1460
  }
1461
1461
 
1462
+ if (value.trend === 'decrease') {
1463
+ val = val * -1;
1464
+ }
1465
+
1462
1466
  const name = value.trend === 'total' ? value.formattedKey || value.key[0] : keys.join(highchartsRenderer.delimer);
1463
1467
  let color = '';
1464
1468
  if (value.trend !== 'total') {