@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
54 lines (51 loc) • 1.18 kB
text/typescript
// (C) 2007-2018 GoodData Corporation
import cloneDeep = require("lodash/cloneDeep");
const BUBBLE_TEMPLATE = {
chart: {
type: "bubble",
},
plotOptions: {
bubble: {
stickyTracking: false,
marker: {
symbol: "circle",
radius: 5,
states: {
hover: {
enabled: true,
lineColor: "white",
},
},
},
states: {
hover: {
marker: {
enabled: false,
},
},
},
dataLabels: {
enabled: false, // TODO remove once FF for config panel is removed
allowOverlap: false,
},
},
},
xAxis: [
{
startOnTick: true,
},
],
series: {
states: {
hover: {
enabled: false,
},
},
},
legend: {
enabled: false,
},
};
export function getBubbleConfiguration() {
return cloneDeep(BUBBLE_TEMPLATE);
}