sql/core/src/main/resources/org/apache/spark/sql/execution/ui/static/spark-sql-viz.js
/* Helper function to convert attributes to numeric values. */
Helper function to convert attributes to numeric values.
Helper function to convert attributes to numeric values .
function toFloat(f) {
  if (f) {
    return parseFloat(f.toString().replace(/px$/, ""));
  } else {
    return f;
  }
}
function toFloat ( f ) { if ( f ) { return parseFloat ( f . toString ( ) . replace ( / px$ / , "" ) ) ; } else { return f ; } }
Helper function to convert attributes to numeric values.
Helper function to convert attributes to numeric values .