|
@@ -372,6 +372,7 @@ sendButton.addEventListener("click", function () {
|
|
|
|
|
|
sendButtonClickHandler();
|
|
|
inputField.value = ''
|
|
|
+ unit_value_box.style.display = "none"
|
|
|
chartTypeBtn.style.display = "none";
|
|
|
});
|
|
|
|
|
@@ -942,11 +943,12 @@ function generateBarChart(key, dataArray) {
|
|
|
// label 換行
|
|
|
let label = categoryAxis.renderer.labels.template;
|
|
|
label.wrap = true;
|
|
|
- if (dataArray.length > 5) {
|
|
|
+ if (dataArray.length > 8) {
|
|
|
console.log('資料長度5')
|
|
|
- label.maxWidth = 60;
|
|
|
- } else if (dataArray.length < 7) {
|
|
|
- label.maxWidth = 70;
|
|
|
+ label.maxWidth = 50;
|
|
|
+ }
|
|
|
+ else if (dataArray.length < 7) {
|
|
|
+ label.maxWidth = 80;
|
|
|
} else {
|
|
|
label.maxWidth = 100;
|
|
|
console.log('資料長度<5')
|