GoodManWEN opened a new issue, #17194:
URL: https://github.com/apache/echarts/issues/17194

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1.How do you create the chart
   
   Building project under vite/vue3/typescript. Applying on-demand introduction 
after`npm install echarts --save`
   
   2.What's the chart option
   ```typescript
     let option: ECOption = option = {
       grid: [{
         left: '10%',
         right: '10%',
         top: '10%',
         height: '80%',
       }],
       xAxis: {
         data: [1,2,3,4,5]
       },
       yAxis: {
         scale: true,
         gridIndex: 0,
       },
       series: [
         {
           type: 'line',
           xAxisIndex: 0,
           yAxisIndex: 0,
           data: [5,4,3,2,1],
           markLine: {
             show: true,
             label: {
               show: true,
               position: 'start',
               color: '#777'
             },
             data: [{
               yAxis: 3.33,
             }],
           },
         }
       ]
     }
     myChart.setOption(option)
   ```
   
   
   
   
   ### Current Behavior
   
   If you use `import * as echarts from 'echarts'` then markline will be 
displayed correctly. Mark line disappeared after applying on-demand import 
components with everything else works just fine.
   
   
   
   ### Expected Behavior
   
   Id.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   full import code as follow
   ```typescript
   // 引入 echarts 核心模块,核心模块提供了 echarts 使用必须要的接口。
   import * as echarts from 'echarts/core';
   import {
     BarChart,
     // 系列类型的定义后缀都为 SeriesOption
     BarSeriesOption,
     LineChart,
     LineSeriesOption
   } from 'echarts/charts';
   import {
     TitleComponent,
     // 组件类型的定义后缀都为 ComponentOption
     TitleComponentOption,
     TooltipComponent,
     TooltipComponentOption,
     GridComponent,
     GridComponentOption,
     // 数据集组件
     DatasetComponent,
     DatasetComponentOption,
     // 内置数据转换器组件 (filter, sort)
     TransformComponent,
     LegendComponent,
     ToolboxComponent,
     BrushComponent,
     DataZoomComponent,
   } from 'echarts/components';
   import { LabelLayout, UniversalTransition } from 'echarts/features';
   import { CanvasRenderer } from 'echarts/renderers';
   
   // 通过 ComposeOption 来组合出一个只有必须组件和图表的 Option 类型
   type ECOption = echarts.ComposeOption<
     | BarSeriesOption
     | LineSeriesOption
     | TitleComponentOption
     | TooltipComponentOption
     | GridComponentOption
     | DatasetComponentOption
   >;
   
   // 注册必须的组件
   echarts.use([
     TitleComponent,
     TooltipComponent,
     GridComponent,
     DatasetComponent,
     TransformComponent,
     BarChart,
     LabelLayout,
     UniversalTransition,
     CanvasRenderer,
     LegendComponent,
     ToolboxComponent,
     BrushComponent,
     DataZoomComponent,
     LineChart,
   ]);
   ```
   Tried to introduce `markLineComponent`, but got a non-existent prompt
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to