chartjs zoom support + calculate macro

This commit is contained in:
Jan Prochazka
2022-01-02 19:01:14 +01:00
parent 866b8fdc25
commit 1c5fce1be1
6 changed files with 61 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
<script lang="ts" context="module">
import Chart from 'chart.js/auto';
import 'chartjs-adapter-moment';
import zoomPlugin from 'chartjs-plugin-zoom';
const getCurrentEditor = () => getActiveComponent('ChartCore');
@@ -15,6 +16,8 @@
onClick: () => getCurrentEditor().exportChart(),
testEnabled: () => getCurrentEditor() != null,
});
Chart.register(zoomPlugin);
</script>
<script lang="ts">