mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
fix(dashboard): add tooltip for electricity chart
This commit is contained in:
parent
1d3913ccff
commit
7675d56104
1 changed files with 19 additions and 9 deletions
|
|
@ -31,6 +31,18 @@ export class ElectricityChartComponent implements OnInit {
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
|
axisPointer: {
|
||||||
|
type: 'line',
|
||||||
|
lineStyle: {
|
||||||
|
color: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
position: 'top',
|
||||||
|
backgroundColor: 'rgba(0, 255, 170, 0.35)',
|
||||||
|
borderColor: '#00f9a6',
|
||||||
|
borderWidth: 3,
|
||||||
|
formatter: '{c0} kWh',
|
||||||
|
extraCssText: 'box-shadow: 0px 2px 46px 0 rgba(0, 255, 170, 0.35); border-radius: 10px;padding: 5px 20px;',
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
|
|
@ -78,11 +90,15 @@ export class ElectricityChartComponent implements OnInit {
|
||||||
{
|
{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
smooth: true,
|
smooth: true,
|
||||||
symbol: 'none',
|
symbolSize: 20,
|
||||||
sampling: 'average',
|
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
color: '#2ec7fe',
|
opacity: 0,
|
||||||
|
},
|
||||||
|
emphasis: {
|
||||||
|
color: 'white',
|
||||||
|
borderWidth: 0,
|
||||||
|
opacity: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
|
|
@ -119,12 +135,6 @@ export class ElectricityChartComponent implements OnInit {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
smooth: true,
|
smooth: true,
|
||||||
symbol: 'none',
|
symbol: 'none',
|
||||||
sampling: 'average',
|
|
||||||
itemStyle: {
|
|
||||||
normal: {
|
|
||||||
color: '#2ec7fe',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
width: 6,
|
width: 6,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue