Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hotfix for v2.2.7#142

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
minjk-bl merged 3 commits intovisualpython:devopsfromminjk-bl:devops
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletionsjs/m_apps/Profiling.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -151,8 +151,7 @@ define([

generateInstallCode() {
return [
'!pip install pandas-profiling',
'!pip install ipywidgets'
'!pip install pandas-profiling'
];
}

Expand Down
66 changes: 56 additions & 10 deletionsjs/m_visualize/Seaborn.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -200,15 +200,19 @@ define([
} else if (chartType == 'barplot') {
$(that.wrapSelector('#showValues')).closest('.sb-option').show();
if (that.state.setXY === false) {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
if (that.state.x !== '' && that.state.y !== '') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
}
if (that.state.hue !== '') {
$(that.wrapSelector('#sortHue')).closest('.sb-option').show();
}
}
} else if (chartType == 'countplot') {
$(that.wrapSelector('#showValues')).closest('.sb-option').show();
if (that.state.setXY === false) {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
if (that.state.x !== '' || that.state.y !== '') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
}
if (that.state.hue !== '') {
$(that.wrapSelector('#sortHue')).closest('.sb-option').show();
}
Expand All@@ -226,11 +230,6 @@ define([
$(that.wrapSelector('#x')).closest('.vp-ds-box').replaceWith('<select id="x"></select>');
$(that.wrapSelector('#y')).closest('.vp-ds-box').replaceWith('<select id="y"></select>');
$(that.wrapSelector('#hue')).closest('.vp-ds-box').replaceWith('<select id="hue"></select>');

// FIXME: hide sort values for barplot/countplot (as temporary)
if (that.state.chartType == 'barplot' || that.state.chartType == 'countplot') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
}
} else {
// set X Y indivisually
// disable data selection
Expand All@@ -250,7 +249,7 @@ define([
let dataSelectorHue = new DataSelector({ pageThis: that, id: 'hue' });
$(that.wrapSelector('#hue')).replaceWith(dataSelectorHue.toTagString());

// FIXME: hide sort values for barplot/countplot (as temporary)
// FIXME: hide sort values for barplot/countplot
if (that.state.chartType == 'barplot' || that.state.chartType == 'countplot') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').hide();
$(that.wrapSelector('#sortHue')).closest('.sb-option').hide();
Expand All@@ -259,6 +258,49 @@ define([
}
});

// change x, y
$(document).off('change', this.wrapSelector('#x'));
$(document).on('change', this.wrapSelector('#x'), function() {
let { chartType, y, setXY } = that.state;
let x = $(this).val();
if (setXY === false) {
if (chartType == 'barplot') {
if (x !== '' && y !== '') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
} else {
$(that.wrapSelector('#sortBy')).closest('.sb-option').hide();
}
} else if (chartType == 'countplot') {
if (x !== '' || y !== '') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
} else {
$(that.wrapSelector('#sortBy')).closest('.sb-option').hide();
}
}
}
});

$(document).off('change', this.wrapSelector('#y'));
$(document).on('change', this.wrapSelector('#y'), function() {
let { chartType, x, setXY } = that.state;
let y = $(this).val();
if (setXY === false) {
if (chartType == 'barplot') {
if (x !== '' && y !== '') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
} else {
$(that.wrapSelector('#sortBy')).closest('.sb-option').hide();
}
} else if (chartType == 'countplot') {
if (x !== '' || y !== '') {
$(that.wrapSelector('#sortBy')).closest('.sb-option').show();
} else {
$(that.wrapSelector('#sortBy')).closest('.sb-option').hide();
}
}
}
});

// change hue
$(document).off('change', this.wrapSelector('#hue'));
$(document).on('change', this.wrapSelector('#hue'), function() {
Expand DownExpand Up@@ -487,15 +529,19 @@ define([
} else if (this.state.chartType == 'barplot') {
$(page).find('#showValues').closest('.sb-option').show();
if (this.state.setXY === false) {
$(page).find('#sortBy').closest('.sb-option').show();
if (this.state.x !== '' && this.state.y !== '') {
$(page).find('#sortBy').closest('.sb-option').show();
}
if (this.state.hue !== '') {
$(page).find('#sortHue').closest('.sb-option').show();
}
}
} else if (this.state.chartType == 'countplot') {
$(page).find('#showValues').closest('.sb-option').show();
if (this.state.setXY === false) {
$(page).find('#sortBy').closest('.sb-option').show();
if (this.state.x !== '' || this.state.y !== '') {
$(page).find('#sortBy').closest('.sb-option').show();
}
if (this.state.hue !== '') {
$(page).find('#sortHue').closest('.sb-option').show();
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp