是否可以仅在Zing折线图上设置x轴,并且仅显示x轴上的现有点?
感谢。
答案 0 :(得分:1)
我不确定您是否正在寻找隐藏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>