-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(axis): log scale improvements and options #1014
Conversation
- Set base of log scales to 10, 2 or e - Set custom min limit of log values, previously hardcoded to 1 - Allow domain to fit full domain of dataset, without crossing 0
1b72af4
to
7ef4e53
Compare
@@ -6,7 +6,7 @@ | |||
|
|||
import { $Values } from 'utility-types'; | |||
import { ComponentType } from 'react'; | |||
import React from 'react'; | |||
import { default as React_2 } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This usually happens when you are using JSX without importing React or when importing react as import * from React
but I've checked your PR and it doesn't seem to touch anything like that. I will investigate on it a bit
- test all limitLogScaleDomain variations - prevent negative domain padding
Codecov Report
@@ Coverage Diff @@
## master #1014 +/- ##
==========================================
- Coverage 72.78% 72.73% -0.05%
==========================================
Files 363 363
Lines 11211 11217 +6
Branches 2434 2447 +13
==========================================
- Hits 8160 8159 -1
- Misses 3037 3044 +7
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
api/charts.api.md
Outdated
xLogBase: LogBase; | ||
xLogMinLimit?: number; | ||
yLogBase: LogBase; | ||
yLogMinLimit?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can have multiple Y axis and "ideally" multiple yLogBase
what if we move these option within the Axis and/or within the xDomain props?
let's discuss it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK see a26fd2c
- move all log options together - fix x domain being different across other xScale getters - update log option wording
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
# [25.0.0](v24.6.0...v25.0.0) (2021-02-16) ### Bug Fixes * group legend items by label and color ([#999](#999)) ([5d32f23](5d32f23)) ### Features * **axis:** log scale improvements and options ([#1014](#1014)) ([0f52688](0f52688)) ### BREAKING CHANGES * The `LegendActionProps` and the `LegendColorPickerProps`, used to add actions and color picker through the legend now receive an array of `SeriesIdentifiers`
🎉 This PR is included in version 25.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This reverts commit 0f52688.
This reverts commit 0f52688.
## [25.0.1](v25.0.0...v25.0.1) (2021-02-17) ### Reverts * log scale improvements and options ([#1014](#1014)) ([2189f92](2189f92))
# [25.0.0](elastic/elastic-charts@v24.6.0...v25.0.0) (2021-02-16) ### Bug Fixes * group legend items by label and color ([opensearch-project#999](elastic/elastic-charts#999)) ([ce0bfba](elastic/elastic-charts@ce0bfba)) ### Features * **axis:** log scale improvements and options ([opensearch-project#1014](elastic/elastic-charts#1014)) ([8bac5e8](elastic/elastic-charts@8bac5e8)) ### BREAKING CHANGES * The `LegendActionProps` and the `LegendColorPickerProps`, used to add actions and color picker through the legend now receive an array of `SeriesIdentifiers`
## [25.0.1](elastic/elastic-charts@v25.0.0...v25.0.1) (2021-02-17) ### Reverts * log scale improvements and options ([opensearch-project#1014](elastic/elastic-charts#1014)) ([7aa1ce7](elastic/elastic-charts@7aa1ce7))
Summary
closes #916
The main features added in this PR are the following:
Common
,Binary
orNatural
)yMinLimit
No
yMinLimit
set, uses full domainyLogBase
Checklist
src/index.ts
(and stories only import from../src
except for test data & storybook)