Files
redash/client/app/visualizations/chart/plotly/index.js
Arik Fraimovich 56d3be2248 Prettier all the Javascript code & GitHub Action (#4433)
* 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
2019-12-11 17:05:38 +02:00

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,
};