Skip to content

Commit

Permalink
#45 avoid hidding some large tooltips, adjust line width
Browse files Browse the repository at this point in the history
Signed-off-by: Long Zhang <[email protected]>
  • Loading branch information
gluckzhang committed Aug 13, 2024
1 parent 270a270 commit 2f8ad4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/infrawallet-backend/src/service/DatadogProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class DatadogProvider extends MetricProvider {
const tagSet = series.tagSet;

const metric: Metric = {
id: `${metricName} (${tagSet.length === 0 ? '*' : tagSet})`,
id: `${metricName} ${tagSet.length === 0 ? '' : tagSet}`,
provider: this.providerName,
name: metricName,
reports: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const ColumnsChartComponent: FC<ColumnsChartComponentProps> = ({
fixedHeightPaper: {
padding: '16px',
display: 'flex',
overflow: 'hidden',
flexDirection: 'column',
height: height ? height : 300,
},
Expand Down Expand Up @@ -114,6 +113,10 @@ export const ColumnsChartComponent: FC<ColumnsChartComponentProps> = ({
})}`;
},
},
fixed: {
enabled: true,
position: 'topRight',
},
},
legend: {
showForSingleSeries: true,
Expand Down Expand Up @@ -155,7 +158,7 @@ export const ColumnsChartComponent: FC<ColumnsChartComponentProps> = ({

if (metrics && showMetrics) {
metrics.forEach(metric => {
strokeWidth.push(5);
strokeWidth.push(3);
seriesResult.push(metric);
yaxisResult.push({
seriesName: [metric.name],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const PieChartComponent: FC<PieChartComponentProps> = ({ categories, seri
const useStyles = makeStyles({
fixedHeightPaper: {
paddingTop: '10px',
overflow: 'hidden',
height: height ? height : 300,
},
});
Expand Down

0 comments on commit 2f8ad4d

Please sign in to comment.