|
|
|
@ -5,6 +5,7 @@ import {
|
|
|
|
|
LinearScale,
|
|
|
|
|
CategoryScale,
|
|
|
|
|
PointElement,
|
|
|
|
|
LineElement,
|
|
|
|
|
Tooltip,
|
|
|
|
|
Title,
|
|
|
|
|
} from "chart.js";
|
|
|
|
@ -45,7 +46,14 @@ import { EditableSpan } from "./HistoricalCalendarPrices/EditableSpan.js";
|
|
|
|
|
import { EditableLookbackPeriodStart } from "./HistoricalCalendarPrices/EditableLookbackPeriodStart.js";
|
|
|
|
|
import { EditableLookbackPeriodEnd } from "./HistoricalCalendarPrices/EditableLookbackPeriodEnd.js";
|
|
|
|
|
|
|
|
|
|
ChartJS.register(LinearScale, CategoryScale, PointElement, Tooltip, Title);
|
|
|
|
|
ChartJS.register(
|
|
|
|
|
LinearScale,
|
|
|
|
|
CategoryScale,
|
|
|
|
|
PointElement,
|
|
|
|
|
LineElement,
|
|
|
|
|
Tooltip,
|
|
|
|
|
Title
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const handleInit = () => {
|
|
|
|
|
trpc.CalendarCharacteristicsForm.getAvailableUnderlyings
|
|
|
|
@ -292,6 +300,8 @@ export function HistoricalCalendarPrices() {
|
|
|
|
|
],
|
|
|
|
|
}}
|
|
|
|
|
options={{
|
|
|
|
|
showLine: true,
|
|
|
|
|
normalized: true,
|
|
|
|
|
scales: {
|
|
|
|
|
x: {
|
|
|
|
|
title: {
|
|
|
|
@ -317,9 +327,12 @@ export function HistoricalCalendarPrices() {
|
|
|
|
|
},
|
|
|
|
|
elements: {
|
|
|
|
|
point: {
|
|
|
|
|
radius: 1,
|
|
|
|
|
radius: 2,
|
|
|
|
|
borderWidth: 0,
|
|
|
|
|
},
|
|
|
|
|
line: {
|
|
|
|
|
borderWidth: 2,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: {
|
|
|
|
|
tooltip: {
|
|
|
|
|