financial-chart-made-simple
Version:
The package that allows you to build responsive financial charts styled your way. The chart functionality is similar to that on coinmarketcap.io.
14 lines (13 loc) • 612 B
JavaScript
import { ColorModeScript } from "@chakra-ui/react";
import * as React from "react";
import * as ReactDOM from "react-dom/client";
import { Chart } from "./components/Chart/chart";
import { BTCPrices } from "./utils/btcPrices";
export * from "./components/Chart/chart";
const container = document.getElementById("root");
if (!container)
throw new Error("Failed to find the root element");
const root = ReactDOM.createRoot(container);
root.render(React.createElement(React.StrictMode, null,
React.createElement(ColorModeScript, null),
React.createElement(Chart, { dataset: BTCPrices })));