ParallelCoordinates.Axis

Syntax

Axis: Object;

Description

The Axis property determines template of chart axes settings.

Comments

Use JSON to set the property value and the getAxis method to get the property value.

The Axis property is used to auto create chart axes if no value is defined for the ParallelCoordinates.Axes property. Settings template is a JSON object whose fields are properties of the PCAxis class.

Example

To execute the example, create an HTML page and perform the following operations:

1.  Add a link to the CSS file named PP.css. Also add links to the following JS files:

2. Within the <body> tag place a block with the "area" identifier to store parallel coordinates chart.

3. Then within the <body> tag add a script that creates a parallel coordinates chart and has a specified template of settings for chart axes and lines:

// Set path to the icons folder
PP.ImagePath = '../../../../../build/img/';
// Define settings of the parallel coordinates chart
var options = {
        &quot;Axis&quot;: {
            // Color of the base line of the chart axis
            &quot;BaseStroke&quot;: &quot;#44CCCCCC&quot;,
            // Width of the axis base line
            &quot;BaseThickness&quot;: &quot;2&quot;,
            // Color of the filtering range
            &quot;RangeFill&quot;: &quot;#44CCCCCC&quot;,
            // Color of the filtering range outline
            &quot;RangeStroke&quot;: &quot;#99CCCCCC&quot;,
            // Width of the filtering range
            &quot;RangeThickness&quot;: &quot;8&quot;,
            // Minimum value of the filtering range
            &quot;RangeMinValue&quot;: &quot;0.9&quot;,
            // Maximum value of the filtering range
            &quot;RangeMaxValue&quot;: &quot;2.6&quot;,
            // Chart axis caption
            &quot;Header&quot;: {
                &quot;Style&quot;: {
                    &quot;Release&quot;: {
                        &quot;Font&quot;: {
                            &quot;Color&quot;: &quot;#ff462c&quot;,
                            &quot;IsBold&quot;: &quot;True&quot;,
                            &quot;Size&quot;: &quot;18&quot;
                        }
                    }
                }
            },
            // Axis label for the minimum value of the filtering range
            &quot;RangeMinLabel&quot;: {
                &quot;Style&quot;: {
                    &quot;Release&quot;: {
                        &quot;Font&quot;: {
                            &quot;Color&quot;: &quot;#000000&quot;
                        }
                    }
                }
            },
            // Axis label for the maximum value of the filtering range
            &quot;RangeMaxLabel&quot;: {
                &quot;Style&quot;: {
                    &quot;Release&quot;: {
                        &quot;Font&quot;: {
                            &quot;Color&quot;: &quot;#000000&quot;
                        }
                    }
                }
            }
        },
        // Chart legend
        &quot;Legends&quot;: {
            &quot;legend0&quot;: {
                &quot;Type&quot;: &quot;Intervals&quot;,
                &quot;Header&quot;: {}
            }
        },
        // Time line
        &quot;Timeline&quot;: {
            &quot;StepsNames&quot;: [&quot;2005&quot;, &quot;2006&quot;, &quot;2007&quot;, &quot;2008&quot;]
        },
        // Data mapping settings
        &quot;Visuals&quot;: {
            &quot;main&quot;: {
                &quot;PPType&quot;: &quot;PP.Ui.PCVisual&quot;,
                &quot;DataSource&quot;: &quot;ds0&quot;,
                &quot;Mappings&quot;: {
                    &quot;mapping0&quot;: {
                        &quot;Id&quot;: &quot;mapping0&quot;,
                        &quot;DimAttributeId&quot;: &quot;attr0&quot;,
                        &quot;Type&quot;: &quot;Transformer&quot;,
                        &quot;DataTransformer&quot;: {
                            &quot;PPType&quot;: &quot;PP.CoordinateTransformer&quot;
                        }
                    },
                    &quot;mapping1&quot;: {
                        &quot;Id&quot;: &quot;mapping1&quot;,
                        &quot;DimAttributeId&quot;: &quot;attr1&quot;,
                        &quot;Type&quot;: &quot;Transformer&quot;,
                        &quot;DataTransformer&quot;: {
                            &quot;PPType&quot;: &quot;PP.CoordinateTransformer&quot;
                        }
                    },
                    &quot;mapping2&quot;: {
                        &quot;Id&quot;: &quot;mapping2&quot;,
                        &quot;DimAttributeId&quot;: &quot;attr2&quot;,
                        &quot;Type&quot;: &quot;Transformer&quot;,
                        &quot;DataTransformer&quot;: {
                            &quot;PPType&quot;: &quot;PP.CoordinateTransformer&quot;
                        }
                    }
                }
            },
            &quot;color&quot;: {
                &quot;PPType&quot;: &quot;PP.ColorVisual&quot;,
                &quot;ColorMapping&quot;: {
                    &quot;Scale&quot;: {
                        &quot;TypeArguments&quot;: &quot;Brush&quot;,
                        &quot;Items&quot;: &quot;#99ff462c #99ebaf36 #99ffd900 #99b1ca40 #996a8535&quot;
                    },
                    &quot;Type&quot;: &quot;Scale&quot;
                }
            }
        },
        // Chart data source
        &quot;DataSources&quot;: {
            &quot;ds0&quot;: {
                &quot;Id&quot;: &quot;ds0&quot;,
                &quot;AttributesNames&quot;: {
                    &quot;attr0&quot;: &quot;The resident population (total, thousand.)",
                    "attr1": "Gross regional product (mln. rubles.)",
                    "attr2": "Retail trade turnover, bln. rubles.&quot;
                },
                &quot;ItemsNames&quot;: {
                    &quot;O38003400300034003200&quot;: &quot;Africa&quot;,
                    &quot;O38003400300033003800&quot;: &quot;Asia&quot;,
                    &quot;O3300310036003400370038003000&quot;: &quot;Europe&quot;,
                    &quot;O310039003200370038003000&quot;: &quot;North America&quot;,
                    &quot;O3300310036003400380030003000&quot;: &quot;South America&quot;,
                    &quot;O38003400300031003200&quot;: &quot;World&quot;,
                },
                &quot;Series&quot;: {
                    &quot;O38003400300034003200&quot;: {
                        &quot;attr0&quot;: {
                            &quot;Items&quot;: &quot;1.48190591 1.59584524 1.69484782 1.77443946&quot;
                        },
                        &quot;attr1&quot;: {
                            &quot;Items&quot;: &quot;109.48656 109.99307 111.31474 109.95764&quot;
                        },
                        &quot;attr2&quot;: {
                            &quot;Items&quot;: &quot;42.90528949 40.87774911 37.18942016 41.14330847&quot;
                        }
                    },
                    &quot;O38003400300033003800&quot;: {
                        &quot;attr0&quot;: {
                            &quot;Items&quot;: &quot;2.60307468 2.6364252 2.66619155 2.69506159&quot;
                        },
                        &quot;attr1&quot;: {
                            &quot;Items&quot;: &quot;101.82519 102.85029 94.18395 85.03809&quot;
                        },
                        &quot;attr2&quot;: {
                            &quot;Items&quot;: &quot;43.38438688 38.52309016 34.86914099 37.02317165&quot;
                        }
                    },
                    &quot;O3300310036003400370038003000&quot;: {
                        &quot;attr0&quot;: {
                            &quot;Items&quot;: &quot;-0.23692341 -0.18961622 -0.13965343 -0.07433788&quot;
                        },
                        &quot;attr1&quot;: {
                            &quot;Items&quot;: &quot;102.06544 99.21836 98.16013 98.75872&quot;
                        },
                        &quot;attr2&quot;: {
                            &quot;Items&quot;: &quot;1.66250417 1.39672431 1.49987782 2.52080851&quot;
                        }
                    },
                    &quot;O310039003200370038003000&quot;: {
                        &quot;attr0&quot;: {
                            &quot;Items&quot;: &quot;2.74184965 3.44912559 3.94439543 3.93249117&quot;
                        },
                        &quot;attr1&quot;: {
                            &quot;Items&quot;: &quot;118.15176 113.93954 113.0123 114.23096&quot;
                        },
                        &quot;attr2&quot;: {
                            &quot;Items&quot;: &quot;29.71075271 28.53453398 24.54912505 27.78798884&quot;
                        }
                    },
                    &quot;O3300310036003400380030003000&quot;: {
                        &quot;attr0&quot;: {
                            &quot;Items&quot;: &quot;1.47430971 1.34308393 1.22511846 1.14711313&quot;
                        },
                        &quot;attr1&quot;: {
                            &quot;Items&quot;: &quot;NULL NULL NULL NULL&quot;
                        },
                        &quot;attr2&quot;: {
                            &quot;Items&quot;: &quot;3.02967435 3.38699726 5.97802034 4.33109101&quot;
                        }
                    },
                    &quot;O38003400300031003200&quot;: {
                        &quot;attr0&quot;: {
                            &quot;Items&quot;: &quot;1.53168406 1.51072338 1.48751165 1.46045335&quot;
                        },
                        &quot;attr1&quot;: {
                            &quot;Items&quot;: &quot;120.09725 120.19888 120.2091 120.07056&quot;
                        },
                        &quot;attr2&quot;: {
                            &quot;Items&quot;: &quot;8.61129651 9.60846507 8.86245571 11.92132783&quot;
                        }
                    }
                }
            }
        }
    }
    // Specify the parent
options.ParentNode = document.getElementById(&quot;area&quot;);
// Set chart size
options.Width = 600;
options.Height = 400;
// Define settings for chart lines
options.Line = { 
    Thickness: 5 
};
var coord = new PP.Ui.ParallelCoordinates(options);

After executing the example the parallel coordinates chart is created with a specified template for settings of its axes and lines:

See also:

ParallelCoordinates