Skip to content

Commit

Permalink
fix(legacy-plugin-chart-horizon): error on missing groupby (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and zhaoyongjie committed Nov 26, 2021
1 parent ac7dfad commit 8d45a17
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { extent as d3Extent } from 'd3-array';
import { ensureIsArray } from '@superset-ui/core';
import HorizonRow, { DEFAULT_COLORS } from './HorizonRow';
import './HorizonChart.css';

Expand Down Expand Up @@ -85,7 +86,7 @@ class HorizonChart extends React.PureComponent {
key={row.key}
width={width}
height={seriesHeight}
title={row.key.join(', ')}
title={ensureIsArray(row.key).join(', ')}
data={row.values}
bands={bands}
colors={colors}
Expand Down

0 comments on commit 8d45a17

Please sign in to comment.