弱弱的问句:xAxis type="time"情况 点如何标注其他样式
xAxis:[{type:'time',
min:new Date("2014-10-20 09:26:08"),
max:new Date("2014-10-22 14:26:08")
}],
series : [
{
name:'卖出价',
type:'line',
showAllSymbol:true,
data:[
[new Date("2014-10-20 11:46:08"),
{value:43,itemStyle:{normal: {
color: 'yellowgreen'
},
emphasis: {
color: 'red',
label : {
show: true,
position: 'inside',
textStyle : {
fontSize : '10'
}
}
}}}],
[new Date("2014-10-20 14:46:08"),45],
[new Date("2014-10-20 16:46:08"),65],
[new Date("2014-10-20 18:46:08"),74],
[new Date("2014-10-21 11:46:08"),77],
[new Date("2014-10-21 12:46:08"),79],
[new Date("2014-10-21 13:46:08"),82],
[new Date("2014-10-21 14:46:08"),90],
[new Date("2014-10-21 15:46:08"),92],
[new Date("2014-10-22 10:46:08"),57],
[new Date("2014-10-22 14:00:08"),43]
]
}]
如上是series 的设置,但是在页面只显示点,点的样式也还是默认样式,被设置其他样式点没有被描绘在图表上,页面连接线也断,他们成为一个各自点,没有连线,在文档中无看到对于xais seriesdata的叙述。http://echarts.baidu.com/doc/doc.html#SeriesData
可以通过markPoint 给数据 ,但是只能通过type 来指定 max ,min 位置,想指定其他点,不行,只能在两个坐标轴上面来跑,或者通过x : y 坐标来指定,数据点多,这x , y 如何来定位(就是x,y值是通过什么来确定描点x,y值)
格式你理解错了
data:[
{
value:[new Date("2014-10-20 11:46:08"),43],
itemStyle:{
normal: {color: 'yellowgreen'},
emphasis: {
color: 'red',
label : {
show: true,
position: 'inside',
textStyle : {
fontSize : '10'
}
}
}
}
},
[new Date("2014-10-20 14:46:08"),45],
[new Date("2014-10-20 16:46:08"),65],
噢 ,原来如此,xAxis type=“time” 标注value值 data里面 时间点也包括进去。