Skip to main contentFreight Trust

Product

const data = [ { “product”: “Traditional”, “feature”: “Price”, “score”: 60 }, { “product”: “Traditional”, “feature”: “Elasticity”, “score”: 92 }, { “product”: “Traditional”, “feature”: “Availability”, “score”: 5 }, { “product”: “Traditional”, “feature”: “Performance”, “score”: 85 }, { “product”: “Traditional”, “feature”: “Resilient”, “score”: 60 }, { “product”: “Blockchain”, “feature”: “Price”, “score”: 70 }, { “product”: “Blockchain”, “feature”: “Elasticity”, “score”: 63 }, { “product”: “Blockchain”, “feature”: “Availability”, “score”: 78 }, { “product”: “Blockchain”, “feature”: “Performance”, “score”: 70 }, { “product”: “Blockchain”, “feature”: “Resilient”, “score”: 50 } ];

const options = { “title”: “Radar”, “radar”: { “axes”: { “angle”: “feature”, “value”: “score” } }, “data”: { “groupMapsTo”: “product” }, “height”: “400px” };

// Grab chart holder HTML element and initialize the chart const chartHolder = document.getElementById(“app”); new RadarChart(chartHolder, { data, options });