Logarithmic error scale
This commit is contained in:
@@ -113,8 +113,8 @@ const datasets = computed<ErrorDataset[]>(() => {
|
||||
min: 0,
|
||||
},
|
||||
y: {
|
||||
type: !epochErrorOnly ? 'linear' : 'logarithmic',
|
||||
stacked: true,
|
||||
beginAtZero: !props.isRegression,
|
||||
grid: {
|
||||
color: function (context) {
|
||||
if (context.tick.value == 0) {
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
ScatterController,
|
||||
LineController,
|
||||
BarController,
|
||||
LogarithmicScale,
|
||||
} from 'chart.js';
|
||||
import { ArrowDown, ArrowUp } from 'lucide-vue-next';
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
@@ -52,7 +53,8 @@ ChartJS.register(
|
||||
LineElement,
|
||||
ScatterController,
|
||||
LineController,
|
||||
BarController
|
||||
BarController,
|
||||
LogarithmicScale
|
||||
);
|
||||
ChartJS.defaults.font.size = 16;
|
||||
ChartJS.defaults.color = '#FFF';
|
||||
|
||||
Reference in New Issue
Block a user