mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
perf: Implement Echarts treeshaking (#29874)
This commit is contained in:
committed by
GitHub
parent
db1d77cba2
commit
c220245414
@@ -16,8 +16,10 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { BarSeriesOption, EChartsOption } from 'echarts';
|
||||
import { CallbackDataParams } from 'echarts/types/src/util/types';
|
||||
import type { ComposeOption } from 'echarts/core';
|
||||
import type { BarSeriesOption } from 'echarts/charts';
|
||||
import type { GridComponentOption } from 'echarts/components';
|
||||
import type { CallbackDataParams } from 'echarts/types/src/util/types';
|
||||
import { isEmpty } from 'lodash';
|
||||
import {
|
||||
CategoricalColorNamespace,
|
||||
@@ -133,6 +135,8 @@ export default function transformProps(
|
||||
focusedSeries = index;
|
||||
};
|
||||
|
||||
type EChartsOption = ComposeOption<GridComponentOption | BarSeriesOption>;
|
||||
|
||||
const echartOptions: EChartsOption = {
|
||||
grid: {
|
||||
...defaultGrid,
|
||||
|
||||
Reference in New Issue
Block a user