@datarailsshared/dr_renderer 1.2.340 → 1.2.341

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.340",
3
+ "version": "1.2.341",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -1243,14 +1243,16 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1243
1243
  i++;
1244
1244
  });
1245
1245
 
1246
- lodash.forEach(col_n_keys, (col_n_value, index) => {
1247
- if (lodash.isArray(col_n_value)) {
1248
- col_n_keys[index] = lodash.map(
1249
- lodash.filter(col_n_value, value => !!value),
1250
- value => lodash.replace(value, highchartsRenderer.DR_OTHERS_KEY, othersName)
1251
- );
1252
- }
1253
- });
1246
+ if (lodash.get(chartOptions, 'xAxis.categories')) {
1247
+ lodash.forEach(chartOptions.xAxis.categories, (col_n_value, index) => {
1248
+ if (lodash.isArray(col_n_value)) {
1249
+ chartOptions.xAxis.categories[index] = lodash.map(
1250
+ lodash.filter(col_n_value, value => !!value),
1251
+ value => lodash.replace(value, highchartsRenderer.DR_OTHERS_KEY, othersName)
1252
+ );
1253
+ }
1254
+ });
1255
+ }
1254
1256
 
1255
1257
  const ethalonSeries = chart_series[chart_series.length - 1];
1256
1258