8000 Optimize performance of setCategoryIndex by hy9be · Pull Request #1544 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Optimize performance of setCategoryIndex #1544

8000 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 13 commits into from
Apr 10, 2017
Merged
Prev Previous commit
Next Next commit
Fix another problem in getCategoryIndex
  • Loading branch information
hy9be committed Apr 8, 2017
commit ff043b458a6e6d95dc26399bc9f6a92486571880
2 changes: 1 addition & 1 deletion src/plots/cartesian/set_convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module.exports = function setConvert(ax, fullLayout) {
// allow numbers to be mapped to the linearized axis positions
var index;
if(ax._categoriesMap) {
index = ax._categoriesMap[v] ? ax._categoriesMap : undefined;
index = ax._categoriesMap[v];
if(index !== undefined) return index;
} else {
index = ax._categories.indexOf(v);
Expand Down
0