jasonpaige opened a new pull request, #18376:
URL: https://github.com/apache/echarts/pull/18376

   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   This PR adds the ability to 'inverse' any of the axis on a radar chart
   
   
   ### Fixed issues
   
   https://github.com/apache/echarts/issues/18206
   
   
   ## Details
   
   ### Before: What was the problem?
   
   Previously a radar chart could look like so:
   
   <img width="500" alt="image" 
src="https://user-images.githubusercontent.com/314046/224830185-d08977d5-97ac-4c8d-8f48-4db451fb017f.png";>
   However, you may which the cost to actually reflect negatively, the more 
expensive it is.
   
   ### After: How does it behave after the fixing?
   
   <img width="457" alt="image" 
src="https://user-images.githubusercontent.com/314046/224830407-68ea033b-5d5a-4d87-9ea1-3d4fbe82fd28.png";>
   Now this single axis is inverted, where the cheaper the cost, the better it 
appears on the radar chart.
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [ ] This PR doesn't relate to document changes
   - [x] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   
   
   ## Misc
   
   ### Related test cases or examples to use the new APIs
   
   A test case has been added here: test/radar-inverse.html
   
   The API to inverse an indicator axis works by simply adding `inverse: true` 
like this:
   ```
   ...
   indicator: [
       { name: 'Speed'},
       { name: 'Reaction'},
       { name: 'Power'},
       { name: 'Cost £m', inverse: true, min: 4, max: 0},
       { name: 'Stamina'},
   ],
   ...
   ```
   


-- 
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-unsubscr...@echarts.apache.org

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


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

Reply via email to