Scatter Plot Chart Sample

Data Collection

{
  "metadata" : {
    "names" : ["rpm","torque","horsepower", "weight", "EngineType"],
    "types" : ["linear","linear", "linear","linear", "ordinal"]
  },
  "data": [
    [1,41600,3.5,79.91,0.8,0.03,"Piston"],
    [2,37800,3.5,79.65,1.3,0.06,"Piston"]
};

Configurations

{
        type: "scatter",
        charts : [
            {type: "scatter",
             x : "rpm",  
             y : "torque",
             color: "horsepower", 
             size : "weight", 
             maxLength: 30}], 
             
        width: 400,
        height: 200
}
                      
Property Value Description
title String Title of the table
x String cAttribute name for X-axis
maxLength int Maximum length of chart datatable
height px height of the chart
charts object Collection of charts
Property Value Description
type String Title of the table
y String Attribute name for Y-axis