mirror of
https://github.com/getredash/redash.git
synced 2026-03-24 11:00:27 -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
27 lines
561 B
JavaScript
27 lines
561 B
JavaScript
import { merge } from "lodash";
|
|
import { registerVisualization } from "@/visualizations";
|
|
|
|
import Renderer from "./Renderer";
|
|
import Editor from "./Editor";
|
|
|
|
const DEFAULT_OPTIONS = {
|
|
column: "",
|
|
frequenciesColumn: "",
|
|
wordLengthLimit: { min: null, max: null },
|
|
wordCountLimit: { min: null, max: null },
|
|
};
|
|
|
|
export default function init() {
|
|
registerVisualization({
|
|
type: "WORD_CLOUD",
|
|
name: "Word Cloud",
|
|
getOptions: options => merge({}, DEFAULT_OPTIONS, options),
|
|
Renderer,
|
|
Editor,
|
|
|
|
defaultRows: 8,
|
|
});
|
|
}
|
|
|
|
init.init = true;
|