@datarailsshared/dr_renderer 1.5.199 → 1.5.209
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 +1 -1
- package/src/highcharts_renderer.js +6 -6
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -124,7 +124,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Handles errors that occur during pivot renderer processing.
|
|
127
|
-
*
|
|
127
|
+
*
|
|
128
128
|
* @param {Error} err - The error that occurred during pivot rendering
|
|
129
129
|
* @param {boolean} onlyOptions - If true, logs the error and returns empty options object instead of throwing
|
|
130
130
|
* @param {Error} fallbackError - The fallback error to throw when onlyOptions is false and err is not a BaseRendererError
|
|
@@ -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>${
|
|
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
|
: '';
|
|
@@ -2974,7 +2974,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
2974
2974
|
zoomType: additionOptions && additionOptions.chart && additionOptions.chart.zoom_type ? additionOptions.chart.zoom_type : 'None',
|
|
2975
2975
|
events: {
|
|
2976
2976
|
'drilldown': function (e) {
|
|
2977
|
-
highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
2977
|
+
!highchartsRenderer.environment.preventDrilldownEventMutation && highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
2978
2978
|
if (drilldownFunc)
|
|
2979
2979
|
drilldownFunc(e, this, "drilldown");
|
|
2980
2980
|
|
|
@@ -3092,7 +3092,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3092
3092
|
zoomType: 'x',
|
|
3093
3093
|
events: {
|
|
3094
3094
|
'drilldown': function (e) {
|
|
3095
|
-
highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
3095
|
+
!highchartsRenderer.environment.preventDrilldownEventMutation && highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
3096
3096
|
if (drilldownFunc)
|
|
3097
3097
|
drilldownFunc(e, this, "drilldown");
|
|
3098
3098
|
|
|
@@ -5895,12 +5895,12 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5895
5895
|
if (opt.isUpdatingPointStylesOnClick) {
|
|
5896
5896
|
opt.drillDownListFunc = (e) => {
|
|
5897
5897
|
seriesPointStylesHelper.setSeriesPointStylesOnClick(e);
|
|
5898
|
-
highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
5898
|
+
!highchartsRenderer.environment.preventDrilldownEventMutation && highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
5899
5899
|
drillDownListFunc(e);
|
|
5900
5900
|
};
|
|
5901
5901
|
} else {
|
|
5902
5902
|
opt.drillDownListFunc = (e) => {
|
|
5903
|
-
highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
5903
|
+
!highchartsRenderer.environment.preventDrilldownEventMutation && highchartsRenderer.modifyEventPointForDrilldown(e);
|
|
5904
5904
|
drillDownListFunc(e);
|
|
5905
5905
|
};
|
|
5906
5906
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -75,5 +75,9 @@ export type EnvironmentOptions = {
|
|
|
75
75
|
* - Allow custom gauge goal title
|
|
76
76
|
*/
|
|
77
77
|
enableGaugeDynamicGoal?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* - Prevents reassignment of point.name & series.name to their initialName during drilldown avoiding conflicts between formatted and unformatted names
|
|
80
|
+
*/
|
|
81
|
+
preventDrilldownEventMutation?: boolean | undefined;
|
|
78
82
|
};
|
|
79
83
|
export { DataFormatter, options, RendererErrorCodes, BaseRendererError, TooMuchDataError, NoDataError, DataConflictError, GaugeConfigurationError, GenericRenderingError, GenericComputationalError, GraphTableRenderer, FREEZE_PANES_MODES };
|
package/src/index.js
CHANGED
|
@@ -23,6 +23,7 @@ const freezePanes = require('./pivot-table/freeze-panes');
|
|
|
23
23
|
* @property {boolean} [fiscal_year_back] - Fiscal year direction
|
|
24
24
|
* @property {boolean} [enableStackedPercentCharts] - Enable stacked percent charts
|
|
25
25
|
* @property {boolean} [enableGaugeDynamicGoal] - Allow custom gauge goal title
|
|
26
|
+
* @property {boolean} [preventDrilldownEventMutation] - Prevents reassignment of point.name & series.name to their initialName during drilldown avoiding conflicts between formatted and unformatted names
|
|
26
27
|
*/
|
|
27
28
|
|
|
28
29
|
let dr_render_factory = {};
|