Skip to content

Commit

Permalink
chore: Add HighchartsBoost to area and bar chart components
Browse files Browse the repository at this point in the history
  • Loading branch information
pacholoamit committed Jun 22, 2024
1 parent e3ceb37 commit 473ad62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/area-chart.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import HighchartsReact from "highcharts-react-official";
import * as Highcharts from "highcharts/highstock";
import { Dispatch, SetStateAction, useEffect, useRef, useState } from "react";
import HighchartsReact from 'highcharts-react-official';
import * as Highcharts from 'highcharts/highstock';
import HighchartsBoost from 'highcharts/modules/boost';
import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';

import useSettings from "@/hooks/useSettings";
import { useMantineTheme } from "@mantine/core";
import { useViewportSize } from "@mantine/hooks";
import useSettings from '@/hooks/useSettings';
import { useMantineTheme } from '@mantine/core';
import { useViewportSize } from '@mantine/hooks';

HighchartsBoost(Highcharts);

export interface InitialAreaChartStateInput {
title: {
Expand Down
2 changes: 2 additions & 0 deletions src/components/bar-chart.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import * as Highcharts from "highcharts";
import HighchartsReact from "highcharts-react-official";
import HighchartsBoost from "highcharts/modules/boost";
import { Dispatch, SetStateAction, useEffect, useRef, useState } from "react";

import useSettings from "@/hooks/useSettings";
import { useMantineTheme } from "@mantine/core";
import { useViewportSize } from "@mantine/hooks";

HighchartsBoost(Highcharts);
export interface BarChartStatePropsInitialState extends Highcharts.Options {
custom?: {
title: string;
Expand Down

0 comments on commit 473ad62

Please sign in to comment.