@devexperts/dxcharts-lite
Version:
20 lines (19 loc) • 871 B
JavaScript
/*
* Copyright (C) 2019 - 2025 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { Chart } from './chart/chart';
import { generateCandlesDataTS } from './chart/utils/candles-generator-ts.utils';
const createChart =
/**
* Creates a new chart instance using ChartBootstrap class and returns it.
* @param {HTMLElement} el - The HTML element where the chart will be rendered.
* @param {PartialChartConfig} config - Optional configuration object for the chart.
* @returns {ChartBootstrap} - The chart instance.
*/
(el, config = {}) => {
const chart = new Chart(el, config);
return chart;
};
export { createChart, Chart, generateCandlesDataTS as generateCandlesData };