Dashticz - latest beta - Howto change font-size x-axis and legend graph
Posted: Thursday 13 January 2022 10:39
Goodday,
Really loving the new graph possibilities. Finetuned a lot of stuff
Now I would like to change font-size of the x-axis and also the font of the legend underneath. I have a rather small and full ipad so efficient use of space is priority
this is my CONFiG.js
this is my custom.css
The "font-size: 9px;" with or without !important doest effect x-axis and legend
Also, is there an option to change the large rectangular blocks for small square ones?
this is how the legend looks now;
Really loving the new graph possibilities. Finetuned a lot of stuff
Now I would like to change font-size of the x-axis and also the font of the legend underneath. I have a rather small and full ipad so efficient use of space is priority
this is my CONFiG.js
Code: Select all
blocks['my_graph'] = {
title: 'Avg temp',
devices: [13, 95, 97, 99, 98],
graph: 'line',
graphTypes: ['l','l','te','te','te'],
lineTension: 0.4,
width: 8,
height: '125px',
legend: {
te_13:"now",
te_95:"avg",
te_97:"set",
l_99:"din",
l_98:"AC on"
},
lineFill: [false,false,false, true, true],
datasetColors: ['grey','red','orange','green','rgba(44,130,201,0.5)'],
debug: false
}
Code: Select all
.dt_block[data-id='my_graph'] { /* graph temp*/
padding-top: 0px !important;
padding-bottom: 0px !important;
}
.graphheader,
.graphbuttons {
display: none;
}
Also, is there an option to change the large rectangular blocks for small square ones?
this is how the legend looks now;