mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
This commit is contained in:
parent
ee26f2a728
commit
7848c07a29
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ export function GaugeChartProvider(Private) {
|
|||
} else {
|
||||
svg.attr('height', height);
|
||||
const transformX = width / 2;
|
||||
const transformY = height / 2;
|
||||
const transformY = self.gaugeConfig.gaugeType === 'Arc' ? height / (2 * 0.75) : height / 2;
|
||||
g.attr('transform', `translate(${transformX}, ${transformY})`);
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ export function MeterGaugeProvider() {
|
|||
const isTooltip = this.gaugeChart.handler.visConfig.get('addTooltip');
|
||||
const maxAngle = this.gaugeConfig.maxAngle;
|
||||
const minAngle = this.gaugeConfig.minAngle;
|
||||
const angleFactor = this.gaugeConfig.gaugeType === 'Meter' ? 0.75 : 1;
|
||||
const angleFactor = this.gaugeConfig.gaugeType === 'Arc' ? 0.75 : 1;
|
||||
const maxRadius = (Math.min(width, height / angleFactor) / 2) * marginFactor;
|
||||
|
||||
const extendRange = this.gaugeConfig.extendRange;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue