@datarailsshared/dr_renderer 1.5.196 → 1.5.202

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.5.196",
3
+ "version": "1.5.202",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -292,7 +292,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
292
292
  let formatted_value = $.pivotUtilities.getFormattedNumber(y, aggr, opts);
293
293
  let wrappedFormattedValue = highchartsRenderer.getSpanWrapper(formatted_value);
294
294
 
295
- const category_text = tooltipOptions.show_x_axis ? `<b>${cols[0] || this.key}</b>` : '';
295
+ const category_text = tooltipOptions.show_x_axis ? `<b>${this.key}</b>` : '';
296
296
  const series_text = tooltipOptions.show_data_series
297
297
  ? `<br/><span style="color: ${this.series.color};">\u200E${this.series.name}</span>: `
298
298
  : '';
@@ -1873,7 +1873,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1873
1873
  }
1874
1874
 
1875
1875
  highchartsRenderer.getVariantSeries = function (series, delta_column_options, pivotData, colors) {
1876
- const varianceColor = delta_column_options.color || colors[7] || highchartsRenderer.variance_color || Highcharts.getOptions().colors[7];
1876
+ const varianceColor = delta_column_options.color || (colors && colors[7]) || highchartsRenderer.variance_color || Highcharts.getOptions().colors[7];
1877
1877
  series.name = delta_column_options.name.replace('_', '');
1878
1878
  series.initialName = series.name;
1879
1879
  series.color = varianceColor;