Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed clickable area issue of Bargraph and Piegraph in branch r20.10.11 ticket: VSD-58254 #493

Open
wants to merge 1 commit into
base: r20.10.11
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Graphs/BarGraph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
YTICK_LENGTH,
DEFAULT_MARGIN_LEFT,
NO_DATA_FOUND,
MIN_WIDTH,
} from '../../constants';
import xAxis from '../Components/utils/xAxis';
import yAxis from '../Components/utils/yAxis';
Expand Down Expand Up @@ -184,6 +185,7 @@ const BarGraph = (props) => {
<Bar
key={`barGraph-${index}`}
dataKey={item}
minPointSize={!stack ? MIN_WIDTH : 0}
onClick={(d) => {
if (stack) {
const value = d.value;
Expand Down
4 changes: 3 additions & 1 deletion Graphs/PieGraph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
} from 'recharts';

import {
LEGEND_PERCENTAGE
LEGEND_PERCENTAGE,
MIN_WIDTH,
} from './../../constants';
import { config } from './default.config';
import WithConfigHOC from '../../HOC/WithConfigHOC';
Expand Down Expand Up @@ -101,6 +102,7 @@ const PieGraph = (props) => {
<Pie
labelLine={false}
data={data}
minAngle={MIN_WIDTH}
innerRadius={pieInnerRadius * 100}
outerRadius={pieOuterRadius * 100}
dataKey={sliceColumn}
Expand Down
1 change: 1 addition & 0 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ export const FILTER_COLUMN_WIDTH = 250;
export const LIMIT = 100;
export const FOOTER_HEIGHT = 65;
export const ES_NUMBER_DATA_TYPES = ['long', 'integer', 'short', 'double', 'float'];
export const MIN_WIDTH = 10;