You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "czphappy (via GitHub)" <gi...@apache.org> on 2023/02/06 02:27:09 UTC

[GitHub] [echarts] czphappy commented on issue #18239: [Bug] The first data point is not displayed.

czphappy commented on issue #18239:
URL: https://github.com/apache/echarts/issues/18239#issuecomment-1418408032

   yData is usually a string by default. No matter whether I set the type of the y axis to value or category, the first data is missing.
   
   
   echarts.registerTransform(ecStat.transform.regression);
   option = {
     dataset: [
       {
         source: [
           ['aa', '4862'],
           ['bb', '5294'],
           ['vv', '5934'],
           ['ff', '7171'],
           ['dd', '8964'],
         ]
       },
     ],
     title: {
       text: '1981 - 1998 gross domestic product GDP (trillion yuan)',
       subtext: 'By ecStat.regression',
       sublink: 'https://github.com/ecomfe/echarts-stat',
       left: 'center'
     },
     tooltip: {
       trigger: 'axis',
       axisPointer: {
         type: 'cross'
       }
     },
     xAxis: {
       type:'category',
       splitLine: {
         lineStyle: {
           type: 'dashed'
         }
       }
     },
     yAxis: {
       type:'value',
       splitLine: {
         lineStyle: {
           type: 'dashed'
         }
       }
     },
     series: [
       {
         name: 'scatter',
         type: 'scatter',
         datasetIndex: 0
       },
     ]
   };
   
   ![image](https://user-images.githubusercontent.com/31985427/216869287-7c104d00-148b-4c9f-8244-ed4650ba4ce8.png)
   


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org