Skip to content

Commit d5bb628

Browse files
committed
fix: add breakpoints
1 parent 1dd0366 commit d5bb628

File tree

3 files changed

+14
-37
lines changed

3 files changed

+14
-37
lines changed

packages/analytics/analytics-echarts/sandbox/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const data = computed<ExploreResultV4>(() => {
152152
}
153153
154154
.chart-container {
155-
// height: 400px;
155+
height: 400px;
156156
width: 100%;
157157
}
158158
}

packages/analytics/analytics-echarts/src/composables/useExploreResultToEChartTimeseries.ts

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ export default function useExploreResultToEChartTimeseries({
352352
yAxis: {
353353
type: 'value',
354354
axisLine: { show: true },
355-
splitLine: { show: true },
356355
name: 'Request count',
357356
nameGap: 50,
358357
nameLocation: 'middle',
@@ -362,7 +361,6 @@ export default function useExploreResultToEChartTimeseries({
362361
type: 'scroll',
363362
bottom: 0,
364363
left: 'center',
365-
itemGap: 8,
366364
},
367365
series,
368366
toolbox: { show: false },
@@ -381,28 +379,31 @@ export default function useExploreResultToEChartTimeseries({
381379
right: 0,
382380
},
383381
xAxis: {
384-
name: '',
382+
show: false,
385383
},
386384
yAxis: {
387-
name: '',
385+
show: false,
388386
},
389387
legend: { show: false },
390388
},
391389
},
392390
{
393-
query: { minHeight: 200 },
391+
query: { minHeight: 201 },
394392
option: {
395393
grid: {
396-
bottom: 45,
397-
top: 0,
398-
left: 0,
399-
right: 0,
394+
top: 25,
395+
left: 25,
396+
right: 25,
397+
bottom: 50,
398+
containLabel: true,
400399
},
401400
xAxis: {
402-
name: '@Timestamp per 5 minutes',
401+
name: '@timestamp per 5 minutes',
402+
show: true,
403403
},
404404
yAxis: {
405405
name: 'Request count',
406+
show: true,
406407
},
407408
legend: { show: true },
408409
},
@@ -411,34 +412,10 @@ export default function useExploreResultToEChartTimeseries({
411412
query: { maxWidth: 500 },
412413
option: {
413414
grid: {
414-
bottom: 45,
415-
top: 0,
416415
left: 0,
417-
right: 0,
418-
},
419-
xAxis: {
420-
name: '',
421416
},
422417
yAxis: {
423-
name: '',
424-
},
425-
},
426-
},
427-
{
428-
query: { minWidth: 501 },
429-
option: {
430-
grid: {
431-
top: 25,
432-
left: 25,
433-
right: 25,
434-
bottom: 50,
435-
containLabel: true,
436-
},
437-
xAxis: {
438-
name: '@timestamp per 5 minutes',
439-
},
440-
yAxis: {
441-
name: 'Request count',
418+
show: false,
442419
},
443420
},
444421
},

packages/analytics/dashboard-renderer/src/components/DashboardTile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ import '@kong-ui-public/analytics-metric-provider/dist/style.css'
155155
import SimpleChartRenderer from './SimpleChartRenderer.vue'
156156
import BarChartRenderer from './BarChartRenderer.vue'
157157
import { DEFAULT_TILE_HEIGHT, INJECT_QUERY_PROVIDER } from '../constants'
158-
import TimeseriesChartRenderer from './TimeseriesChartRenderer.vue'
158+
// import TimeseriesChartRenderer from './TimeseriesChartRenderer.vue'
159159
import AnalyticsEchartsRenderer from './AnalyticsEchartsRenderer.vue'
160160
import GoldenSignalsRenderer from './GoldenSignalsRenderer.vue'
161161
import { KUI_ICON_SIZE_20, KUI_SPACE_70 } from '@kong/design-tokens'

0 commit comments

Comments
 (0)