ZingChart 折线图,只有 x 轴,只有现有值
ZingChart line chart with x-axis only with only existing value
是否可以在 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>
是否可以在 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>