mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
* Prettier all the JS files * Add GitHub Action to autoformat code pushed to master * Fix eslint violation due to formatting. * Remove GitHub actions for styling * Add restyled.io config
28 lines
784 B
JavaScript
28 lines
784 B
JavaScript
import Plotly from "plotly.js/lib/core";
|
|
import bar from "plotly.js/lib/bar";
|
|
import pie from "plotly.js/lib/pie";
|
|
import histogram from "plotly.js/lib/histogram";
|
|
import box from "plotly.js/lib/box";
|
|
import heatmap from "plotly.js/lib/heatmap";
|
|
|
|
import prepareData from "./prepareData";
|
|
import prepareLayout from "./prepareLayout";
|
|
import updateData from "./updateData";
|
|
import applyLayoutFixes from "./applyLayoutFixes";
|
|
import { prepareCustomChartData, createCustomChartRenderer } from "./customChartUtils";
|
|
|
|
Plotly.register([bar, pie, histogram, box, heatmap]);
|
|
Plotly.setPlotConfig({
|
|
modeBarButtonsToRemove: ["sendDataToCloud"],
|
|
});
|
|
|
|
export {
|
|
Plotly,
|
|
prepareData,
|
|
prepareLayout,
|
|
updateData,
|
|
applyLayoutFixes,
|
|
prepareCustomChartData,
|
|
createCustomChartRenderer,
|
|
};
|