-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Treemap new trace type #4185
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
Merged
Merged
Treemap new trace type #4185
Changes from 7 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
ec6a9de
bar textpad const
archmoj 52ded31
refactor base_plot files
archmoj 320f81a
changes to sunburst attributes - add percentages - add colorscale and…
archmoj 06d93ae
prep to add treemap to the lib
archmoj 6cc8590
treemap mocks
archmoj 6a595b6
treemap jasmine tests
archmoj 671e864
treemap code
archmoj 648167d
correct current path when there is no parent
archmoj 6dad958
various attribute revisions
archmoj cceee49
drop stroke-linejoin
archmoj f3d38b8
revisit pathbar draw as well as transition
archmoj 088b0e0
revert sunburst hoverinfo defaults
archmoj e23a577
move attachFxHandlers to fx.js
archmoj eb54f24
pass hover and transition options to fx
archmoj 0e3185f
expand setSliceCursor logic to handle treemap and pathbar cases
archmoj fdd69e7
drop stroke-linejoin again
archmoj a7b6074
use constant _hoverd.marker.line.width - improve a treemap mock and u…
archmoj 4c85360
correct transition of text inside pathbar namely when side is bottom
archmoj 65c0e02
display percent of root on leaf when it is an entry
archmoj ca4b385
some refRect clean up and rename interpolator functions in sunburst a…
archmoj 0012fa1
make the opacity logic slightly more user-friendly by applying leaf.o…
archmoj 544977e
thanks to a typo leading to apply a better easing option suitable for…
archmoj 13e0449
dont use sunburst naming in treemap
archmoj 57dec38
move getTransform function to Lib and use it in bar and treemap
archmoj 65f0213
correct exit case of zoom out when maxdepth is set - avoid overlaps a…
archmoj ad24987
when exiting with maxdepth try to use parent if that is visible on th…
archmoj 36fb510
early exit out of maxdepth elements for better transitions and avoid …
archmoj 284bf6d
add constant zero fillet - could expose that in next version
archmoj 4e2c328
add default tests of treemap and sunburst
archmoj 0cf5bf6
remove the case that never happens now
archmoj 2405ba4
revisit pathbar divider default
archmoj 19c7a61
[wip] add test for sunburst tween edge cases
etpinard 4e3b7f3
address various treemap transition case e.g. maxdepth, tweening and p…
archmoj e5181ac
texttemplate and other fixes for treemap and sunburst
archmoj e9c0202
add calc test for count branches and leaves
archmoj e4bc91e
treemap drop leaf.opacity
archmoj a54ca9c
better description regarding the position of pathbar also move the ga…
archmoj d7b06a1
change divider to edgeshape
archmoj c91f9db
revisit ancestors draw - avoid overlaps - end pathbar with edgeshape
archmoj ceb13f7
tween and animate text for new points on pathbar from their parent
archmoj 1270d67
draw new points of pathbar below parents (to avoid text overlay) - im…
archmoj 35ea4b3
correct current path function - reuse listPath in helpers i.e. to hav…
archmoj 1de80d9
add mock to test with and without values - and pathbar fade with depth
archmoj e7e22c6
texttemplate and hovertemplate fixes
archmoj 6130f96
rename key to
archmoj e3a8e91
check for falsy 0 numbers when searching for level and ids
archmoj 14674d6
handle hover edge cases
archmoj 01c5f68
use onPathbar everywhere referring to points on pathbar - this make l…
archmoj 4c7a092
revisit marker opacities: no opacity with colorscale, now having
archmoj 1860826
improve sunburst texttemplate tests - drop the comment for a fixed tr…
archmoj d2b07b5
improve mocks to show various percentage values and colorscale using …
archmoj 1fdf574
correct displaying percentages
archmoj 3004a9a
fix more percentage edge cases - handle branchvalues remainder
archmoj 4d790a1
correct texttemplate and hover
archmoj 1c6e47b
dont touch pt.parent
archmoj e339bf5
Avoid using random ids in recording position of empty root
archmoj 1309bfd
improve treemap jasmine tests
archmoj 217c0f4
revisit sunburst and treemap percentages
archmoj 8416883
rework working with parent references in hover and plot
archmoj c918da9
Reference fixups
archmoj 7d67c7a
try to make parent getter more consistent by using pt.data.data.pid i…
archmoj f8cef49
add tolerance to tween tests
etpinard 3c12bf6
remove unnecessary check for NaNs
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Copyright 2012-2019, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = require('../src/traces/treemap'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ | |
'use strict'; | ||
|
||
module.exports = { | ||
TEXTPAD: 3, // padding in pixels around text | ||
eventDataKeys: [] | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.