Skip to content
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

[Experimental] Add support for y/y2 log scale #2678

Merged
merged 11 commits into from
Aug 26, 2019

Conversation

panthony
Copy link
Contributor

@panthony panthony commented Aug 12, 2019

Hello there,

I'm reintroducing this PR that I did a while ago, this is kind of experimental and will probably have shortcomings with some combinaisons (stacked charts, etc..)

But it works for simple cases and may be enough for most of people.

May be enough to closes #1360

@codecov-io
Copy link

Codecov Report

Merging #2678 into master will increase coverage by 0.18%.
The diff coverage is 95.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2678      +/-   ##
==========================================
+ Coverage   80.29%   80.47%   +0.18%     
==========================================
  Files          59       59              
  Lines        4537     4595      +58     
==========================================
+ Hits         3643     3698      +55     
- Misses        894      897       +3
Impacted Files Coverage Δ
src/config.js 95.83% <ø> (ø) ⬆️
src/api.axis.js 100% <100%> (ø) ⬆️
src/scale.js 97.27% <94.54%> (-2.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdf12d1...4e102b1. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Aug 12, 2019

Codecov Report

Merging #2678 into master will increase coverage by 0.17%.
The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2678      +/-   ##
==========================================
+ Coverage   81.01%   81.18%   +0.17%     
==========================================
  Files          59       59              
  Lines        4640     4699      +59     
==========================================
+ Hits         3759     3815      +56     
- Misses        881      884       +3
Impacted Files Coverage Δ
src/config.js 95.83% <ø> (ø) ⬆️
src/api.axis.js 100% <100%> (ø) ⬆️
src/domain.js 93.78% <100%> (+0.03%) ⬆️
src/scale.js 97.27% <94.54%> (-2.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bc2488...bdfbc2d. Read the comment docs.

@panthony panthony requested a review from kt3k August 26, 2019 09:54
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice feature to have! Thank you for the contribution!

LGTM

@kt3k kt3k merged commit cf5ae50 into c3js:master Aug 26, 2019
beninsocrata pushed a commit to socrata/c3 that referenced this pull request Oct 31, 2019
* add 'log' support for Y axis type

* add documentation for Y axis type

* rename var

* add API to update y Axis type

* add documentation for axis.types() API

* add very basic tests

* correct linter issue

* remove unused 'padding' variable

* use same scale as yAxis when converting pixels to axis values

* swap range/domain as parameter for getY

It's easier to reason with 'type', 'domain' then 'range' as the domain
is the 'input' of the scale whereas the range is the 'output'.

* add jsdoc for getY method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

X or Y-axis logscale
3 participants