Skip to content

Commit

Permalink
fix: echart style
Browse files Browse the repository at this point in the history
  • Loading branch information
xsteadybcgo committed Sep 3, 2021
1 parent 99a367f commit 65f84bb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pages/Projects/BandwidthMixChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,21 @@ const BandwidthMixChart: FC<{
},
xAxis: {
axisLine: {
onZero: false,
symbolOffset: [20, 20],
lineStyle: {
color: '#C5C7C4',
},
},
min: -1,
type: 'category',
data: mixChartData.timeline.slice().reverse(),
axisTick: {
alignWithLabel: true,
length: 8,
},
axisLabel: {
color: '#949593',
margin: 6,
lineHeight: 16,
interArrival: 20,
formatter: function (value: string) {
if (chartRange === rangeEnum['24hours']) return value.slice(6)
Expand All @@ -103,7 +109,7 @@ const BandwidthMixChart: FC<{
},
},
grid: {
right: '10',
right: '0',
left: '5',
bottom: '20',
},
Expand Down

0 comments on commit 65f84bb

Please sign in to comment.