This file contains 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
// Remove an element with a specific class from the DOM | |
function removeElementsByClass(className){ | |
var elements = document.getElementsByClassName(className); | |
while(elements.length > 0){ | |
elements[0].parentNode.removeChild(elements[0]); | |
} | |
} | |
// Remove the curso-crosshair class which is the interactive layer | |
// If this layer is present a series of black boxes will be added |
This file contains 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
// Load Plotly - Requires jQuery (tick Dependencies above) | |
require.config({ | |
paths: { | |
'Plotly': 'https://cdn.plot.ly/plotly-latest.min' | |
} | |
}); | |
// Enter the columns you wish to plot. This is case sensitive! | |
var columnNames = ['yield', 'Time']; |
This file contains 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
// Load Plotly - Requires jQuery (tick Dependencies above) | |
require.config({ | |
paths: { | |
'Plotly': 'https://cdn.plot.ly/plotly-latest.min' | |
} | |
}); | |
// The columns containing the data to display | |
var colSelectionX = knimeDataTable.getColumn(0); |
This file contains 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
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec) throws Exception | |
{ | |
DataTableSpec inSpec = inData[0].getDataTableSpec(); | |
BufferedDataContainer buf = exec.createDataContainer(inSpec); | |
int column_index = inSpec.findColumnIndex(m_colSel.getStringValue()); | |
final int nrRows = inData[0].getRowCount(); | |
int count=0; | |
for (DataRow row : inData[0]) |