@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
38 lines (34 loc) • 748 B
text/typescript
// (C) 2007-2018 GoodData Corporation
import cloneDeep = require("lodash/cloneDeep");
import { MAX_POINT_WIDTH } from "./commonConfiguration";
const BAR_TEMPLATE = {
chart: {
type: "bar",
},
plotOptions: {
bar: {
maxPointWidth: MAX_POINT_WIDTH,
dataLabels: {
enabled: true,
padding: 2,
},
},
series: {
states: {
hover: {
enabled: false,
},
},
},
},
yAxis: [
{
stackLabels: {
enabled: false,
},
},
],
};
export function getBarConfiguration() {
return cloneDeep(BAR_TEMPLATE);
}