Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix(plugin-chart-echarts): ci
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ committed Jul 22, 2021
1 parent 60fa4ba commit bb49811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { SuperChart, getChartTransformPropsRegistry } from '@superset-ui/core';
import { boolean, withKnobs, select } from '@storybook/addon-knobs';
import { withKnobs } from '@storybook/addon-knobs';
import { EchartsWaterfallChartPlugin } from '@superset-ui/plugin-chart-echarts';
import transformProps from '@superset-ui/plugin-chart-echarts/src/Waterfall/transformProps';
import data from './data';
Expand All @@ -24,8 +24,8 @@ export const Waterfall = ({ width, height }) => {
queriesData={[{ data }]}
formData={{
metric: `SUM(decomp_volume)`,
category: 'due_to_group',
breakdown: 'period',
breakdown: 'due_to_group',
category: 'period',
x_ticks_layout: '45°',
adhocFilters: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default function transformProps(chartProps: EchartsWaterfallChartProps):
else if (xTicksLayout === 'staggered') axisLabel = { rotate: -45 };
else axisLabel = { show: true };

let xAxisData = [];
let xAxisData: string[] = [];
if (breakdown) {
xAxisData = transformedData.map(row => {
if (row[breakdown] === TOTAL_MARK) {
Expand Down

0 comments on commit bb49811

Please sign in to comment.