Skip to content

Commit

Permalink
add ts-ignore rules to charts.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
poojagunturu96 committed Dec 17, 2024
1 parent 3be5619 commit 6418238
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/charts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class MiddChart {
const yTickCallback = isHorizontalBars ? (tick: any) => labels[tick] : prefixTick;

const options: ChartOptions = {
// @ts-ignore
indexAxis: axis,
animation: {
duration: PREFERS_REDUCED_MOTION ? 0 : 1000
Expand All @@ -220,6 +221,7 @@ class MiddChart {
borderWidth: 1,
borderColor: '#ccc',
callbacks: {
// @ts-ignore
label: (context) => {
return `${context.dataset.label}: ${context.raw}${valueSuffix}`;
}
Expand Down Expand Up @@ -252,6 +254,7 @@ class MiddChart {

if (isAxisChart) {
options.scales = {
// @ts-ignore
x: {
title: {
display: Boolean(xLabel),
Expand Down

0 comments on commit 6418238

Please sign in to comment.