dvdkon opened a new pull request #13636:
URL: https://github.com/apache/incubator-echarts/pull/13636


   <!-- 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?
   Add option `customValues` to `axisTick` and `axisLabel`, which allow the 
user to specify tick/label positions.
   
   ### Fixed issues
   #13627 (my own issue)
   
   ## Details
   
   ### Before: What was the problem?
   
   See issue #13627 
   
   
   ### After: How is it fixed in this PR?
   
   The new option allows for completely custom tick/label positions, for 
example:
   ```js
   xAxis: {
        type: 'value',
        axisLabel: {
                customValues: [0, 4, 7, 8, 9]
        },
        axisTick: {
                alignWithLabel: true,
                customValues: [0, 0.5, 1, 1.5, 2, 8, 9]
        },
   }
   ```
   
   ![example](https://i.imgur.com/coHg3nW.png)
   
   
   
   ## Usage
   
   ### Are there any API changes?
   
   - [x] The API has been changed.
   
   In axis:
   - `axisTick.customValues: (string | number | Date)[]`
   - `axisLabel.customValues: (string | number | Date)[]`
   
   Array of axis values on which a tick/label will be present (automatic tick 
generation is disabled)
   
   ### Related test cases or examples to use the new APIs
   
   `test/axis-customTicks.html`


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to