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 2022/07/01 16:50:37 UTC

[GitHub] [echarts] allran opened a new issue, #17301: [Feature] How to set MarkArea1DDataItemOption data in markArea?

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

   ### What problem does this feature solve?
   
   The API like this:
   ```
   interface MarkAreaOption extends MarkerOption, MarkAreaStateOption, StatesOptionMixin<MarkAreaStateOption, StatesMixinBase> {
       mainType?: 'markArea';
       precision?: number;
       data?: (MarkArea1DDataItemOption | MarkArea2DDataItemOption)[];
   }
   ```
   
   This mean, I can use MarkArea1DDataItemOption to load data. But I don't find how to set it.  I use follow codes, and not running right:
   ```
   if (val_index == areaStartIndex) {
     x_d.push({xAxis: str1})
   } else {
     x_d.push([
       {xAxis: str1}, 
       {xAxis: str2}
     ])
   }
   ```
   
   Please tell me how to set it, thanks.
   
   ### What does the proposed API look like?
   
   If it is possible to complete the demo name ['**Distribution of Electricity**'],to use MarkArea1DDataItemOption and MarkArea2DDataItemOption load data, then the other person will kown how to use it, thanks.


-- 
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.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