是否只能在Zing行图上具有X轴,并且仅在X轴上显示现有点?
谢谢。
我不确定您是否正在寻找隐藏y轴的线图?看到此图表后,我将更新答案。
var myConfig = {
type: 'line',
scaleY:{visible:false},
series: [
{
values: [35,42,67,89,25,34,67,85]
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: '100%',
width: '100%'
});
html, body {
height:100%;
width:100%;
margin:0;
padding:0;
}
#myChart {
height:100%;
width:100%;
min-height:150px;
}
.zc-ref {
display:none;
}
<!DOCTYPE html>
<html>
<head>
<!--Assets will be injected here on compile. Use the assets button above-->
<script src= "https://cdn.zingchart.com/zingchart.min.js"></script>
</head>
<body>
<div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
</body>
</html>