Hub
Pricing About
NodeNode / Visualizer

Decision Tree View (JavaScript)

ViewsJavaScript
Drag & drop
Like

A plot of the provided decision tree using a JavaScript based library. The view can be accessed either via the "interactive view" action on the executed node or in a KNIME Server web portal page.

The view shows a decision tree consisting of a number of nodes. The class label and the class counts displayed inside the nodes correspond to those of the training data. This especially means that the shown frequencies do not correspond to the rows used for selection (unless you use the full training dataset for selection).

The configuration of the node lets you choose the number of rows to be used for selection and to enable certain controls, which are then available in the view. This includes the possibility to set a title. Enabling or disabling these controls via the configuration dialog might not seem useful at first glance but has benefits when used in a web portal/wizard execution where the end user has no access to the workflow itself.

Additionally a static SVG image can be rendered, which is then made available at the first output port.

Note, this node is currently under development. Future versions of the node might have more or changed functionality.

The node supports custom CSS styling. You can simply put CSS rules into a single string and set it as a flow variable 'customCSS' in the node configuration dialog. You will find the list of available classes and their description on our documentation page .

Node details

Input ports
  1. Type: PMML
    Decision Tree
    Decision tree to display.
  2. Type: Table
    Selection Data
    Data which should be run through the decision tree.
Output ports
  1. Type: Image
    Image
    SVG image rendered by the JavaScript implementation of the decision tree plot.
  2. Type: Table
    Input data and view selection
    Data table containing the input data appended with a column, that represents the selection made in the decision tree view.

Extension

The Decision Tree View (JavaScript) node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits