1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
| <script type="text/javascript">
var currency = 'USD';
var currencySymbol = '$';
var Chart = echarts.init(document.getElementById('price-history-content'));
var line_check = '';
//
if(line_check){
var option = {
title: {
text: ''
},
tooltip: {
trigger: 'axis',
formatter:'<span>{b0}</span><br>' + ($.inArray(currency, ["RUB","UAH","MXN","TRY","VND"]) != '-1' ? ('{c0} '+currencySymbol) : (currencySymbol+' {c0}'))
},
legend: {
data:['']
},
grid: {
left: '2%',
right: '4%',
top: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ["2018-08-28","2018-08-30","2018-09-05","2018-09-08","2018-09-09","2018-09-11","2018-09-13","2018-09-16","2018-09-19","2018-09-21","2018-09-22","2018-09-25","2018-09-29","2018-09-30","2018-10-02","2018-10-11","2018-10-13","2018-10-19","2018-11-09","2018-11-11","2018-11-12","2018-11-14","2018-11-15","2018-11-17","2018-11-18"],
axisLine:{
lineStyle:{
color:'rgba(128,128,128,.3)'
}
},
axisPointer:{
lineStyle:{
color:'rgba(128,128,128,.3)'
}
},
splitLine:{
show: true,
lineStyle:{
color:'rgba(128,128,128,.3)'
}
}
},
yAxis: {
type: 'value',
axisLine:{
lineStyle:{
color:'rgba(128,128,128,.3)'
}
},
splitLine:{
show: true,
lineStyle:{
color:'rgba(128,128,128,.3)'
}
}
},
series: [
{
name:'',//
type:'line',
step: 'middle',
data:["53.23","53.23","50.00","54.00","54.00","50.00","54.00","54.00","54.00","54.00","50.00","52.14","50.00","54.00","50.00","54.00","50.00","54.00","50.00","48.57","49.29","53.23","49.29","50.72","54.00"],
itemStyle : {
normal : {
color:'rgba(128,128,128,.3)',
borderColor:'#e963163',
borderWidth:'2',
lineStyle:{
color:'#e96163'
}
}
},
symbol: 'circle',
symbolSize:'2'
},
],.... |
Partager