import { ChartProps } from '@superset-ui/core' ; import { WordCloudProps } from '../chart/WordCloud' ; import { WordCloudFormData } from '../types' ; export default function transformProps ( chartProps ) { const { width , height , formData , queriesData } = chartProps ; const { encoding , rotation } = formData as WordCloudFormData ; return { data : queriesData [ 0 ] . data , encoding , height , rotation , width , } ; }