Every line of 'chartjs height' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
60 height: function height() { 61 return helpers.dimensions(this.base).height; 62 },
177 setGraphHeight(height) { 178 this.root.getWrappedInstance().graph.setHeight(height); 179 }
270 setHeight(h) { 271 this.height = h; 272 return this; 273 }
210 getYAxisHeight: function getYAxisHeight(height, padding) { 211 return height - padding * variables.DEFAULT_PADDING_MULTIPLE_TIMES; 212 },
19 function computeHeight(graphs: Position[][]) { 20 let maxHeight = 0; 21 for (const graph of graphs) { 22 for (const position of graph) { 23 if (position.y > maxHeight) { 24 maxHeight = position.y; 25 } 26 } 27 } 28 return maxHeight + 10; 29 }
56 get height() { 57 let height = 0; 58 this.list.forEach(item => { 59 height = Math.max(height, item.height); 60 }); 61 return height; 62 }
45 function canvasHeight(canvas) { return canvas.height; }
3 function initChart(canvas, width, height, F2) { 4 const data = [ 5 { year: '2001', population: 41.8 }, 6 { year: '2002', population: 25.8 }, 7 { year: '2003', population: 31.7 }, 8 { year: '2004', population: 46 }, 9 { year: '2005', population: 28 } 10 ]; 11 12 chart = new F2.Chart({ 13 el: canvas, 14 width, 15 height 16 }); 17 chart.source(data); 18 chart.coord('polar'); 19 chart.legend({ 20 position: 'right' 21 }); 22 chart.axis(false); 23 chart.interval().position('year*population') 24 .color('year') 25 .style({ 26 lineWidth: 1, 27 stroke: '#fff' 28 }); 29 chart.render(); 30 return chart; 31 }
155 get graphAreaHeight() { 156 return this.stageSize.graphAreaHeight || 0; 157 }