You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/11/07 03:09:53 UTC

[GitHub] [incubator-echarts] moonlitusun edited a comment on issue #11537: 如何使一个轴既是类目轴,又是数据轴

moonlitusun edited a comment on issue #11537: 如何使一个轴既是类目轴,又是数据轴
URL: https://github.com/apache/incubator-echarts/issues/11537#issuecomment-549719377
 
 
   例如:第一组数据为 y是类目轴 x是数据轴
   ```js
   y: {
   name: 价格
    type: 'category'
   data: [ 73, 74,75]
   }
   x: {
    name: 成交量
   type: value,
   data: [1000, 200, 3000]
   }
   ```
   这样可以汇出一条线,代表在某一价格的成交量为多少
   
   现在的问题是第二条线
   x为类目轴,y为数据轴
   ```js
   x: {
    type: category
   name: 时间
   data: [10:00, 11: 00]
   }
   
   y: {
   data: [73, 74]
   }
   ```
   这样就是另外一条线了,代表在某一时间的价格为多少
   
   这样如果单独画两条线没问题,但是想要把这两个价格线合成一根,就是当第一条线的类目轴,第二条线的数据轴,是否有可能
   @Ovilia 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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