You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
518 B
JavaScript
26 lines
518 B
JavaScript
3 years ago
|
define([
|
||
|
'/common/hyperscript.js',
|
||
|
|
||
|
], function (h) {
|
||
|
var Charts = {};
|
||
|
|
||
|
Charts.columns = function (rows) {
|
||
|
return h('table.charts-css.column.show-heading', [
|
||
|
//h('caption', "Front-End Developer Salary"),
|
||
|
h('tbody', rows.map(function (n) {
|
||
|
return h('tr', h('td', {
|
||
|
style: '--size: ' + (n / 100),
|
||
|
}, n));
|
||
|
})),
|
||
|
]);
|
||
|
};
|
||
|
|
||
|
// table.charts-css.bar.reverse
|
||
|
// Charts.bars
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return Charts;
|
||
|
});
|