@datarailsshared/dr_renderer 1.2.120 → 1.2.121

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.120",
3
+ "version": "1.2.121",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -808,9 +808,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
808
808
  if (isNewAngular) {
809
809
  const isPieChart = chartOptions.chart && chartOptions.chart.type === 'pie';
810
810
  const x = isPieChart ? 0 :
811
- chartOptions.yAxis.title.text || chartOptions.yAxis.title.autoylabel ? -60 : -40;
811
+ chartOptions.yAxis && chartOptions.yAxis.title && (chartOptions.yAxis.title.text || chartOptions.yAxis.title.autoylabel) ? -60 : -40;
812
812
  const y = isPieChart ? 27 :
813
- chartOptions.xAxis.title.text || chartOptions.xAxis.title.autoxlabel ? 65 : 43;
813
+ chartOptions.xAxis && chartOptions.xAxis.title && (chartOptions.xAxis.title.text || chartOptions.xAxis.title.autoxlabel) ? 65 : 43;
814
814
  chartOptions.drilldown.breadcrumbs = {
815
815
  formatter: () => '< Back',
816
816
  showFullPath: false,