You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/30 21:54:54 UTC

[GitHub] naderb opened a new issue #9309: Draw a 3D Surface with a constant X axis

naderb opened a new issue #9309: Draw a 3D Surface with a constant X axis
URL: https://github.com/apache/incubator-echarts/issues/9309
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   ### One-line summary 
   I am attempting to draw a flat vertical 3D Surface square with 4 data points, all with a constant X and
   I can not get anything to render if all of the X axis are the same.
   
   data:[
           [5, 0.01, 10.323],
           [5, 0.01, 10.802],
           [5, 0.2, 10.323],
           [5, 0.2, 10.802]
         ]
   
   If the 2nd and 4th data point contain a larger X axis however, the 3D surface I am attempting to plot renders perfectly.
    
   data:[
           [5, 0.01, 10.323],
           [5.00000001, 0.01, 10.802],
           [5, 0.2, 10.323],
           [5.00000001, 0.2, 10.802]
         ]
   
   How can I get this flat vertical 3D surface to display with a constant X axis?
   
   ### Version & Environment [版本及环境]
       "echarts": "^4.2.0-rc.2",
       "echarts-gl": "^1.1.1",
        "ngx-echarts": "^4.0.0",
   
   
   ### ECharts option [ECharts配置项]
   
   option = {
       tooltip: {},
       backgroundColor: '#fff',
       visualMap: {
           show: false,
           dimension: 2,
           min: -1,
           max: 1,
       },
         xAxis3D: {
           type: 'value',
           name: 'X'
         },
         yAxis3D: {
           type: 'value',
           name: 'Y',
         },
         zAxis3D: {
           type: 'value',
           name: 'Z',
           scale: 'true',
         },
       grid3D: {
           viewControl: {
               // projection: 'orthographic'
           }
       },
       series: [{
           type: 'surface',
           data:[
           [5, 0.01, 10.323],
           [5, 0.01, 10.802],
           [5, 0.2, 10.323],
           [5, 0.2, 10.802]
         ]
      }]
   }   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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