Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

像highcharts那样的轴反转曲线? #624

Closed
hillwatter opened this issue Aug 28, 2014 · 2 comments
Closed

像highcharts那样的轴反转曲线? #624

hillwatter opened this issue Aug 28, 2014 · 2 comments

Comments

@hillwatter
Copy link

demo里面“标准折线图-横纵坐标互换”那个例子,我把x轴和y轴都改成数值的形式,画不出反转曲线了就。而highcharts是可以画这样的线的。
代码如下:
option = {
legend: {
data:['高度(km)与气温(°C)变化关系']
},
toolbox: {
show : true,
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
magicType : {show: true, type: ['line', 'bar']},
restore : {show: true},
saveAsImage : {show: true}
}
},
calculable : true,
tooltip : {
trigger: 'axis',
formatter: "Temperature :
{b}km : {c}°C"
},
xAxis : [
{
type : 'value',
axisLabel : {
formatter: '{value} °C'
}
}
],
yAxis : [
{
type : 'value',
axisLine : {onZero: false},
axisLabel : {
formatter: '{value} km'
},
boundaryGap : false,
data : [0,1,2,3,4,5,6,7,80]
}
],
series : [
{
name:'高度(km)与气温(°C)变化关系',
type:'line',
smooth:true,
itemStyle: {
normal: {
lineStyle: {
shadowColor : 'rgba(0,0,0,0.4)'
}
}
},
data:[15, -50, -56.5, -46.5, -22.1, -2.5, -27.7, -55.7, -76.5]
}
]
};

@kener
Copy link
Contributor

kener commented Aug 28, 2014

暂不支持双数值轴的折线

@kener
Copy link
Contributor

kener commented Aug 29, 2014

#331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants